Definition at line 50 of file mainCoreTest.cpp. References DoTestSuite(), Impala::Core::Test::gColorSegmentationSuite, Impala::Core::Test::gDumpSmallSuite, Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::Core::Test::gInvWiccestSuite, Impala::Core::Test::gMatNorm2DistSuite, Impala::Core::Test::gWatershedMarkersSuite, Impala::Core::Test::gWatershedSuite, Impala::Core::Test::gWeibullSuite, ILOG_ERROR, ILOG_INFO, ILOG_VAR, Impala::CmdOptions::Initialise(), Impala::Core::ImageSet::MakeImageSet(), Impala::CmdOptions::ParseArgs(), and Impala::Core::Test::TestImage::SetImageSet(). Referenced by main(). 00051 { 00052 CmdOptions& options = CmdOptions::GetInstance(); 00053 options.Initialise(false, false, true); 00054 std::string usageStr = "manual|auto\n\n"; 00055 usageStr += " manual tests requires inspection of test output\n"; 00056 usageStr += " auto tests does automatic test on output\n\n"; 00057 if (! options.ParseArgs(argc, argv, usageStr, 1)) 00058 return 1; 00059 00060 ILOG_VAR(Samples.mainCoreTest); 00061 00062 TestImage::SetImageSet(Impala::Core::ImageSet::MakeImageSet("test.txt")); 00063 00064 int e = 0; 00065 if (options.GetArg(0) == std::string("auto")) 00066 { 00067 e += DoTestSuite("MatNorm2Dist suite", gMatNorm2DistSuite); 00068 e += DoTestSuite("Weibull suite", gWeibullSuite); 00069 e += DoTestSuite("Watershed suite", gWatershedSuite); 00070 e += DoTestSuite("WatershedMarkers suite", gWatershedMarkersSuite); 00071 e += DoTestSuite("InvWiccest suite", gInvWiccestSuite); 00072 e += DoTestSuite("ColorSegmentation suite", gColorSegmentationSuite); 00073 } 00074 else 00075 { 00076 e += DoTestSuite("DumpSmall suite", gDumpSmallSuite); 00077 } 00078 if (e == 0) 00079 { 00080 ILOG_INFO("All OK."); 00081 } 00082 else 00083 { 00084 ILOG_ERROR(e << " test suites failed."); 00085 } 00086 00087 return 0; 00088 }
Here is the call graph for this function:
|