remove executable mode-bit from files
[ardour.git] / libs / pbd / test / testrunner.cc
1 #include <cppunit/CompilerOutputter.h>
2 #include <cppunit/extensions/TestFactoryRegistry.h>
3 #include <cppunit/TestResult.h>
4 #include <cppunit/TestResultCollector.h>
5 #include <cppunit/TestRunner.h>
6 #include <cppunit/BriefTestProgressListener.h>
7 #include "scalar_properties.h"
8
9 int
10 main ()
11 {
12         ScalarPropertiesTest::make_property_quarks ();
13         
14         CppUnit::TestResult testresult;
15
16         CppUnit::TestResultCollector collectedresults;
17         testresult.addListener (&collectedresults);
18         
19         CppUnit::BriefTestProgressListener progress;
20         testresult.addListener (&progress);
21         
22         CppUnit::TestRunner testrunner;
23         testrunner.addTest (CppUnit::TestFactoryRegistry::getRegistry ().makeTest ());
24         testrunner.run (testresult);
25         
26         CppUnit::CompilerOutputter compileroutputter (&collectedresults, std::cerr);
27         compileroutputter.write ();
28         
29         return collectedresults.wasSuccessful () ? 0 : 1;
30 }