ardour
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libs
pbd
test
testrunner.cc
Go to the documentation of this file.
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 <glibmm/thread.h>
8
#include "
scalar_properties.h
"
9
10
#include "
pbd/pbd.h
"
11
#include "
pbd/error.h
"
12
#include "
pbd/textreceiver.h
"
13
14
int
15
main
()
16
{
17
TextReceiver
text_receiver
(
"pbd_test"
);
18
19
if
(!
PBD::init
())
return
1;
20
21
text_receiver.
listen_to
(
PBD::error
);
22
text_receiver.
listen_to
(
PBD::info
);
23
text_receiver.
listen_to
(
PBD::fatal
);
24
text_receiver.
listen_to
(
PBD::warning
);
25
26
ScalarPropertiesTest::make_property_quarks
();
27
28
CppUnit::TestResult testresult;
29
30
CppUnit::TestResultCollector collectedresults;
31
testresult.addListener (&collectedresults);
32
33
CppUnit::BriefTestProgressListener progress;
34
testresult.addListener (&progress);
35
36
CppUnit::TestRunner testrunner;
37
testrunner.addTest (CppUnit::TestFactoryRegistry::getRegistry ().makeTest ());
38
testrunner.run (testresult);
39
40
CppUnit::CompilerOutputter compileroutputter (&collectedresults, std::cerr);
41
compileroutputter.write ();
42
43
PBD::cleanup
();
44
45
return
collectedresults.wasSuccessful () ? 0 : 1;
46
}
PBD::fatal
LIBPBD_API Transmitter fatal
scalar_properties.h
TextReceiver
Definition:
textreceiver.h:28
PBD::error
LIBPBD_API Transmitter error
PBD::warning
LIBPBD_API Transmitter warning
error.h
ScalarPropertiesTest::make_property_quarks
static void make_property_quarks()
Definition:
scalar_properties.cc:13
textreceiver.h
PBD::init
LIBPBD_API bool init()
Definition:
pbd.cc:66
PBD::info
LIBPBD_API Transmitter info
main
int main(int argc, char *argv[])
Definition:
testrunner.cc:19
Receiver::listen_to
void listen_to(Transmitter &)
Definition:
receiver.cc:51
pbd.h
PBD::cleanup
LIBPBD_API void cleanup()
Definition:
pbd.cc:107
text_receiver
TextReceiver text_receiver("ardour")
Generated on Sun May 24 2015 12:15:07 for ardour by
1.8.8