/[escript]/branches/ROBW_XPLATFORM/escript/test/escript_UnitTest.cpp
ViewVC logotype

Contents of /branches/ROBW_XPLATFORM/escript/test/escript_UnitTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 638 - (show annotations)
Thu Mar 23 13:06:01 2006 UTC (17 years ago) by robwdcock
File size: 2164 byte(s)
+Unit tests unified into escript_UnitTest
+SConscript support for build_tests and run_tests

1 // escript_UnitTest.cpp : Defines the entry point for the console application.
2 //
3
4
5 #include <iostream>
6
7 // TODO : Can't we just use int main(int, char* []) on all platforms?
8 #ifdef MSVC
9 #include <tchar.h>
10 #else
11 #define _TCHAR char
12 #define _tmain main
13 #endif
14
15 #include "DataEmptyTestCase.h"
16 #include "DataConstantTestCase.h"
17 #include "DataTaggedTestCase.h"
18 #include "DataExpandedTestCase.h"
19 #include "DataFactoryTestCase.h"
20 #include "DataArrayTestCase.h"
21 #include "DataCachedTestCase.h"
22 #include "DataArrayViewTestCase.h"
23 #include "DataBlocks2DTestCase.h"
24 #include "DataVectorTestCase.h"
25 #include "TaipanTestCase.h"
26 #include "DataVariableTestCase.h"
27 #include "DataCTestCase.h"
28 #include "DataAlgorithmAdapterTestCase.h"
29 #include "FunctionSpaceTestCase.h"
30 #include "DataProfTestCase.h"
31 #include "DataTestCase.h"
32
33 #include "CppUnitTest/TestRunner.h"
34
35 using namespace CppUnitTest;
36
37 int _tmain(int argc, _TCHAR* argv[])
38 {
39 //
40 // object which runs all of the tests
41 TestRunner runner;
42 //
43 // add the RangeTestCase suite of tests to the runner
44 runner.addTest ("DataEmpty", DataEmptyTestCase::suite());
45 runner.addTest ("DataConstant", DataConstantTestCase::suite());
46 runner.addTest ("DataTagged", DataTaggedTestCase::suite());
47 runner.addTest ("DataExpanded", DataExpandedTestCase::suite());
48 runner.addTest ("DataFactory", DataFactoryTestCase::suite());
49 runner.addTest ("DataArray", DataArrayTestCase::suite());
50 runner.addTest ("DataCached", DataCachedTestCase::suite());
51 runner.addTest ("DataArrayView", DataArrayViewTestCase::suite());
52 runner.addTest ("DataBlocks2D", DataBlocks2DTestCase::suite());
53 runner.addTest ("DataVector", DataVectorTestCase::suite());
54 runner.addTest ("Taipan", TaipanTestCase::suite());
55 runner.addTest ("DataVariable", DataVariableTestCase::suite());
56 runner.addTest ("DataC", DataCTestCase::suite());
57 runner.addTest ("DataAlgorithmAdapter", DataAlgorithmAdapterTestCase::suite());
58 runner.addTest ("FunctionSpace", FunctionSpaceTestCase::suite());
59 runner.addTest ("DataProf", DataProfTestCase::suite());
60 runner.addTest ("Data", DataTestCase::suite());
61
62 // actually run the unit tests.
63 runner.run (argc, argv);
64 return 0;
65 }
66
67

  ViewVC Help
Powered by ViewVC 1.1.26