forked from pmatos/boomerang
-
Notifications
You must be signed in to change notification settings - Fork 1
/
testAll.cpp
56 lines (47 loc) · 1.18 KB
/
testAll.cpp
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// SPDX-License-Identifier: BSD-3-Clause
/**
* \file
* \ingroup UnitTest
* \brief Command line test of all of Boomerang.
*/
/**
* \defgroup UnitTest Unit Testing
*/
/**
* \defgroup UnitTestStub Unit Testing Stubs
* \ingroup UnitTest
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "ExpTest.h"
#include "ProgTest.h"
#include "ProcTest.h"
#include "RtlTest.h"
#include "ParserTest.h"
#include "TypeTest.h"
#include "FrontSparcTest.h"
#include "FrontPentTest.h"
#include "CTest.h"
#include "StatementTest.h"
#include "CfgTest.h"
#include "DfaTest.h"
#include <cppunit/ui/text/TestRunner.h>
#include <cstdlib>
int main(int argc, char *argv[])
{
CppUnit::TextUi::TestRunner runner;
runner.addTest(ExpTest::suite());
runner.addTest(ProgTest::suite());
runner.addTest(ProcTest::suite());
runner.addTest(RtlTest::suite());
runner.addTest(ParserTest::suite());
runner.addTest(TypeTest::suite());
runner.addTest(FrontSparcTest::suite());
runner.addTest(FrontPentTest::suite());
runner.addTest(CTest::suite());
runner.addTest(StatementTest::suite());
runner.addTest(CfgTest::suite());
runner.addTest(DfaTest::suite());
return runner.run() ? EXIT_SUCCESS : EXIT_FAILURE;
}