2 #include <cppunit/extensions/TestFactoryRegistry.h>
3 #include <cppunit/ui/text/TestRunner.h>
5 using CppUnit::TestFactoryRegistry;
6 using CppUnit::TextUi::TestRunner;
9 int main(int argc, char **argv) {
11 bool headless = false;
12 if (argc > 1 && std::strcmp(argv[1], "--headless") == 0) {
18 TestFactoryRegistry ®istry = TestFactoryRegistry::getRegistry();
19 runner.addTest(registry.makeTest());
22 TestFactoryRegistry ®istry = TestFactoryRegistry::getRegistry("headed");
23 runner.addTest(registry.makeTest());