Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_OMP / src / cpp / test / mainTest.cpp
1 #include <stdlib.h>
2 #include <iostream>
3
4 #include "cppTest+.h"
5
6 #include "TestHello.h"
7 #include "TestPi.h"
8
9 using std::cout;
10 using std::endl;
11
12 /*----------------------------------------------------------------------*\
13 |* Declaration *|
14 \*---------------------------------------------------------------------*/
15
16 /*--------------------------------------*\
17 |* Imported *|
18 \*-------------------------------------*/
19
20 /*--------------------------------------*\
21 |* Public *|
22 \*-------------------------------------*/
23
24 int mainTest(void);
25
26 /*--------------------------------------*\
27 |* Private *|
28 \*-------------------------------------*/
29
30 static bool testALL(void);
31
32 /*----------------------------------------------------------------------*\
33 |* Implementation *|
34 \*---------------------------------------------------------------------*/
35
36 /*--------------------------------------*\
37 |* Public *|
38 \*-------------------------------------*/
39
40 int mainTest(void)
41 {
42 bool isOk = testALL();
43
44 cout << "\n-------------------------------------------------" << endl;
45 cout << "End Main : isOk = " << isOk << endl;
46
47 return isOk ? EXIT_SUCCESS : EXIT_FAILURE;
48 }
49
50 /*--------------------------------------*\
51 |* Private *|
52 \*-------------------------------------*/
53
54 bool testALL(void)
55 {
56 Test::Suite testSuite;
57
58 testSuite.add(std::auto_ptr < Test::Suite > (new TestHello()));
59 testSuite.add(std::auto_ptr < Test::Suite > (new TestPi()));
60
61 return runTestHtml("TestALL_HTML", testSuite);
62 //return runTestConsole("TestALL_Console", testSuite);
63 }
64
65 /*----------------------------------------------------------------------*\
66 |* End *|
67 \*---------------------------------------------------------------------*/
68