File indexing completed on 2024-10-04 05:18:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include <cppunit/TestFixture.h>
0016 #include <cppunit/extensions/HelperMacros.h>
0017 #include <cppunit/TestResult.h>
0018 #include <cppunit/TestCaller.h>
0019 #include <cppunit/TestRunner.h>
0020 #include <cppunit/ui/text/TestRunner.h>
0021 #include <cppunit/TestResultCollector.h>
0022 #include <cppunit/TextTestProgressListener.h>
0023 #include <cppunit/CompilerOutputter.h>
0024 #include <cppunit/extensions/TestFactoryRegistry.h>
0025 #include <cppunit/CompilerOutputter.h>
0026
0027 #include <cppunit/BriefTestProgressListener.h>
0028
0029
0030
0031
0032
0033
0034
0035 int main(int argc, char* argv[]) {
0036 std::string testPath = (argc > 1) ? std::string(argv[1]) : "";
0037 CppUnit::TextUi::TestRunner runner;
0038 CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry();
0039 runner.addTest(registry.makeTest());
0040
0041
0042 CppUnit::BriefTestProgressListener progress;
0043 runner.eventManager().addListener(&progress);
0044 runner.run();
0045 }