5fac621ca91070c41b3d23904b702028be7da111
7 #include "TestScalarJunit.h"
8 #include "TestIntegerJunit.h"
18 /*----------------------------------------------------------------------*\
20 \*---------------------------------------------------------------------*/
22 /*--------------------------------------*\
24 \*-------------------------------------*/
26 // Already in cppTest+.h
27 //extern bool runTestConsole(string titre, Test::Suite& test);
28 //extern bool runTestHtml(string titre, Test::Suite& test);
30 /*--------------------------------------*\
32 \*-------------------------------------*/
34 static bool testInteger(void);
35 static bool testALL(void);
37 /*----------------------------------------------------------------------*\
39 \*---------------------------------------------------------------------*/
41 /*--------------------------------------*\
43 \*-------------------------------------*/
47 // bool isOk = testInteger();
48 bool isOk
= testALL();
50 cout
<< "\nisOK = " << isOk
<< endl
;
52 return isOk
? EXIT_SUCCESS
: EXIT_FAILURE
;
55 /*--------------------------------------*\
57 \*-------------------------------------*/
63 testSuite
.add(auto_ptr
<Suite
>(new TestScalarJunit()));
64 testSuite
.add(auto_ptr
<Suite
>(new TestIntegerJunit()));
66 return runTestHtml("TestALL_HTML", testSuite
);
67 //return runTestConsole("TestALL_Console", testSuite);
70 bool testInteger(void)
72 TestIntegerJunit
* ptrTest
= new TestIntegerJunit();
74 //return runTestHtml("TestIntegerJunit", *ptrTest);
75 return runTestConsole("TestIntegerJunit", *ptrTest
);
78 /*----------------------------------------------------------------------*\
80 \*---------------------------------------------------------------------*/