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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 221 - (show annotations)
Thu Nov 24 11:23:33 2005 UTC (15 years, 2 months ago) by phornby
File size: 2160 byte(s)
Builds on Linux. Changes to path names in top level
SConstruct will break the windows build. I've done my best
to not change anything else that would break windows, but
something might have slipped past.

Please check the finley_UnitTests.cpp, bruce_UnitTests.cpp and
escript_UnitTest.cpp (look at the TODO).


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 "DataArrayViewTestCase.h"
22 #include "DataBlocks2DTestCase.h"
23 #include "DataVectorTestCase.h"
24 #include "TaipanTestCase.h"
25 #include "DataVariableTestCase.h"
26 #include "DataCTestCase.h"
27 #include "DataAlgorithmAdapterTestCase.h"
28 #include "FunctionSpaceTestCase.h"
29 #include "DataProfTestCase.h"
30 #include "DataTestCase.h"
31
32 #include "CppUnitTest/TestRunner.h"
33
34 using namespace CppUnitTest;
35
36 int _tmain(int argc, _TCHAR* argv[])
37 {
38 //
39 // object which runs all of the tests
40 TestRunner runner;
41 //
42 // add the RangeTestCase suite of tests to the runner
43 runner.addTest ("DataEmpty", DataEmptyTestCase::suite());
44 runner.addTest ("DataConstant", DataConstantTestCase::suite());
45 runner.addTest ("DataTagged", DataTaggedTestCase::suite());
46 runner.addTest ("DataExpanded", DataExpandedTestCase::suite());
47 runner.addTest ("DataFactory", DataFactoryTestCase::suite());
48 runner.addTest ("DataArray", DataArrayTestCase::suite());
49 // TODO: put this back RW runner.addTest ("DataArrayView", DataArrayViewTestCase::suite());
50 runner.addTest ("DataBlocks2D", DataBlocks2DTestCase::suite());
51 runner.addTest ("DataVector", DataVectorTestCase::suite());
52 runner.addTest ("Taipan", TaipanTestCase::suite());
53 runner.addTest ("DataVariable", DataVariableTestCase::suite());
54 runner.addTest ("DataC", DataCTestCase::suite());
55 runner.addTest ("DataAlgorithmAdapter", DataAlgorithmAdapterTestCase::suite());
56 runner.addTest ("FunctionSpace", FunctionSpaceTestCase::suite());
57 runner.addTest ("DataProf", DataProfTestCase::suite());
58 runner.addTest ("Data", DataTestCase::suite());
59
60 // actually run the unit tests.
61 runner.run (argc, argv);
62 return 0;
63 }
64

  ViewVC Help
Powered by ViewVC 1.1.26