diff options
Diffstat (limited to 'src/DllPlugInTester/DllPlugInTesterTest.cpp')
| -rw-r--r-- | src/DllPlugInTester/DllPlugInTesterTest.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/DllPlugInTester/DllPlugInTesterTest.cpp b/src/DllPlugInTester/DllPlugInTesterTest.cpp new file mode 100644 index 0000000..e85d02b --- /dev/null +++ b/src/DllPlugInTester/DllPlugInTesterTest.cpp @@ -0,0 +1,16 @@ +#include <cppunit/CompilerOutputter.h> +#include <cppunit/extensions/TestFactoryRegistry.h> +#include <cppunit/ui/text/TestRunner.h> + + +int main(int argc, char* argv[]) +{ + CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest(); + CppUnit::TextUi::TestRunner runner; + runner.addTest( suite ); + runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(), + std::cerr ) ); + bool wasSucessful = runner.run(); + return wasSucessful ? 0 : 1; +} + |
