/[svn]/linuxsampler/trunk/src/testcases/linuxsamplertest.cpp
ViewVC logotype

Contents of /linuxsampler/trunk/src/testcases/linuxsamplertest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 57 - (show annotations) (download)
Sun May 2 17:45:43 2004 UTC (19 years, 11 months ago) by schoenebeck
File size: 1136 byte(s)
* src/common/Thread.cpp: method StartThread() now blocks until thread
  actually runs, mlockall() will only be applied for realtime threads
* libtoolized liblinuxsampler
* initiated automatic unit tests against the LinuxSampler codebase
  (see src/testcases): already added a couple of tests for the Thread and
  Mutex classes, you have to explicitly compile the unit tests by running
  'make testcases' (you need to have cppunit installed though) and then you
  can run the console version of the test runner by calling
  'src/testcases/linuxsamplertest'
* src/Sampler.h: added API documentation

1 // Unit Test Runner for LinuxSampler (text only version)
2 // -----------------------------------------------------
3 //
4 // This console application is used to run all written tests against current
5 // LinuxSampler codebase. Progress of the test runs and and the final result
6 // will be printed out as simple text on console.
7 //
8 // The test runner is not compiled by default (means by just running 'make'
9 // or 'make all'), you have to compile it explicitly by running
10 // 'make testcases' in the toplever directory or 'make linuxsamplertest' in
11 // this source directory. Note: you need to have cppunit installed on your
12 // system to be able to compile the unit tests.
13 //
14 // This file usually doesn't have to be changed, especially not for adding
15 // new tests !
16
17 #include <cppunit/extensions/TestFactoryRegistry.h>
18 #include <cppunit/ui/text/TestRunner.h>
19
20 int main( int argc, char **argv) {
21 CppUnit::TextUi::TestRunner runner;
22 CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
23 runner.addTest( registry.makeTest() );
24 bool wasSuccessful = runner.run( "", false );
25 return wasSuccessful;
26 }

  ViewVC Help
Powered by ViewVC