X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_OMP%2Fsrc%2Fcpp%2Ftest%2FmainTest.cpp;fp=WCudaMSE%2FStudent_OMP%2Fsrc%2Fcpp%2Ftest%2FmainTest.cpp;h=44e59ae6823fd497da9f20101130b4450e3c12dc;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_OMP/src/cpp/test/mainTest.cpp b/WCudaMSE/Student_OMP/src/cpp/test/mainTest.cpp new file mode 100755 index 0000000..44e59ae --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/test/mainTest.cpp @@ -0,0 +1,68 @@ +#include +#include + +#include "cppTest+.h" + +#include "TestHello.h" +#include "TestPi.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainTest(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static bool testALL(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainTest(void) + { + bool isOk = testALL(); + + cout << "\n-------------------------------------------------" << endl; + cout << "End Main : isOk = " << isOk << endl; + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +bool testALL(void) + { + Test::Suite testSuite; + + testSuite.add(std::auto_ptr < Test::Suite > (new TestHello())); + testSuite.add(std::auto_ptr < Test::Suite > (new TestPi())); + + return runTestHtml("TestALL_HTML", testSuite); + //return runTestConsole("TestALL_Console", testSuite); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +