32 #ifdef CEPS_USE_CXXTEST
34 #include <cxxtest/GlobalFixture.h>
35 #include <cxxtest/TestSuite.h>
44 #define TS_ASSERT_RUNS(...) TS_ASSERT_THROWS_NOTHING (__VA_ARGS__)
45 #define TS_ASSERT_STOPS(...) TS_ASSERT_THROWS_ANYTHING (__VA_ARGS__)
48 class CepsGlobalFixture :
public CxxTest::GlobalFixture
90 std::ifstream f1(file1);
91 std::ifstream f2(file2);
93 if (f1.fail() or f2.fail() or f1.tellg() != f2.tellg())
96 f1.seekg(0,std::ifstream::beg);
97 f2.seekg(0,std::ifstream::beg);
98 return std::equal(std::istreambuf_iterator<char>(f1.rdbuf()),
99 std::istreambuf_iterator<char>(),
100 std::istreambuf_iterator<char>(f2.rdbuf()));
103 static CepsGlobalFixture cepsInitialize;
std::basic_string< CepsChar > CepsString
C++ format string.
Flags * flags
Global variable, used in every application.
Management of run options.
void enableTesting()
Enables testing (CepsException for errors do not cause abort)
CepsUInt initialize(int argc, char *argv[])
Initializes parallel environment.