File: unittest.cpp

package info (click to toggle)
pinball 0.3.20201218-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,452 kB
  • sloc: cpp: 15,230; makefile: 840; sh: 381; xml: 24
file content (35 lines) | stat: -rw-r--r-- 836 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/***************************************************************************
 Unit test runner
 ***************************************************************************/

#include "Private.h"
#include "TextureUtil.h"

#include <iostream>

#if EM_UNIT_TEST
#include <cppunit/ui/text/TestRunner.h>
#include "Private.h"
#include "SrcTest.h"
#include "BaseTest.h"
#endif

/** Main */
int main(int argc, char *argv[]) {
#if EM_UNIT_TEST
  CppUnit::TextUi::TestRunner runner;
  runner.addTest(EMathTest::suite());
	runner.addTest(LoaderTest::suite());
	runner.addTest(ScriptTest::suite());
	runner.addTest(StateBehaviorTest::suite());
	runner.addTest(ShapeTest::suite());
  runner.run();
#else
  cerr << "Unittest support not found, install cppunit and reconfigure!" << endl;
#endif
  return 0;
}

#if EM_USE_ALLEGRO
END_OF_MAIN();
#endif