7 #include "StringTools.h"
10 #include "TestHello.h"
11 #include "TestSaucisson.h"
12 #include "TestProduitScalaire.h"
13 #include "TestHistogramme.h"
14 #include "TestMonteCarlo.h"
22 /*----------------------------------------------------------------------*\
24 \*---------------------------------------------------------------------*/
26 /*--------------------------------------*\
28 \*-------------------------------------*/
30 /*--------------------------------------*\
32 \*-------------------------------------*/
34 static bool testALL();
36 /*--------------------------------------*\
38 \*-------------------------------------*/
42 /*----------------------------------------------------------------------*\
44 \*---------------------------------------------------------------------*/
46 /*--------------------------------------*\
48 \*-------------------------------------*/
52 bool isOk
= testALL();
54 cout
<< "\nisOK = " << isOk
<< endl
;
56 return isOk
? EXIT_SUCCESS
: EXIT_FAILURE
;
59 /*--------------------------------------*\
61 \*-------------------------------------*/
65 int deviceId
= Device::getDeviceId();
69 testSuite
.add(std::auto_ptr
<Suite
>(new TestHello(deviceId
)));
70 testSuite
.add(std::auto_ptr
<Suite
>(new TestSaucisson(deviceId
)));
71 testSuite
.add(std::auto_ptr
<Suite
>(new TestProduitScalaire(deviceId
)));
72 testSuite
.add(std::auto_ptr
<Suite
>(new TestHistogramme(deviceId
)));
73 testSuite
.add(std::auto_ptr
<Suite
>(new TestMonteCarlo(deviceId
)));
75 string titre
= "deviceId_" + StringTools::toString(deviceId
);
77 return runTestHtml(titre
, testSuite
); // Attention: html create in working directory!!
78 //return runTestConsole(titre, testSuite);
81 /*----------------------------------------------------------------------*\
83 \*---------------------------------------------------------------------*/