From e604f02230c3decedbdd56a3cfef66b0709b74dc Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Tue, 10 May 2011 17:20:10 -0500 Subject: Base cxxtest class and some examples. Change-Id: I8ff2fdffe8be34f5ece9a5e4b2f5d07a4bc73d73 Reviewed-on: http://gfwr801.rchland.ibm.com:8080/gerrit/71 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning --- src/usr/example/test/exampletest.H | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/usr/example/test/exampletest.H (limited to 'src/usr/example/test/exampletest.H') diff --git a/src/usr/example/test/exampletest.H b/src/usr/example/test/exampletest.H new file mode 100644 index 000000000..aba750c08 --- /dev/null +++ b/src/usr/example/test/exampletest.H @@ -0,0 +1,28 @@ +#include +#include + +class ExampleTest: public CxxTest::TestSuite +{ +public: + void testExample1(void) + { + uint64_t l_rc = 0; + l_rc = example1_function(); + if(l_rc) + { + TS_FAIL("Call to example1_function1 failed!"); + } + } + void testExample2(void) + { + // Call functions and validate results + // TS_FAIL("Failed test call to example2 function"); + } + void testExample3(void) + { + // Call functions and validate results + // TS_FAIL("Failed test call to example3 function"); + } + +}; + -- cgit v1.2.3