3 /******************************************************************
5 ** FUNCTION NAME : main
8 int main( int argc, char * argv[] )
10 INT << "===[START]==========================================" << endl;
11 std::string appname( Pathname::basename( argv[0] ) );
17 cerr << "Usage: " << appname << "[OPTIONS] URL..." << endl;
18 cerr << " Load repos from URL to test system below /tmp/" << appname << "." << endl;
19 cerr << " --nc Do not clear an existing test system but reuse it." << endl;
23 Pathname mroot( "/tmp/"+appname );
24 if ( argc && argv[0] == std::string("--nc") )
31 filesystem::recursive_rmdir( mroot );
33 filesystem::assert_dir( mroot );
34 TestSetup test( mroot, Arch_x86_64 );
38 test.loadRepo( Url( argv[0] ) );
43 INT << "===[END]============================================" << endl << endl;
46 catch ( const Exception & exp )
49 cerr << exp << endl << exp.historyAsString();