~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to libs/pbd/test/testrunner.cc

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-8gsftrku6jnzhd7v
Tags: upstream-3.4~dfsg
ImportĀ upstreamĀ versionĀ 3.4~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}