summaryrefslogtreecommitdiffstats
path: root/src/usr/example/test/exampletest.H
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2011-05-10 17:20:10 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-05-16 16:51:41 -0500
commite604f02230c3decedbdd56a3cfef66b0709b74dc (patch)
tree85ebf5ba3dd090bd80d8651fdf4b4855a2022a30 /src/usr/example/test/exampletest.H
parentf25d156f4a222923d70563ba960858f4e42a80c8 (diff)
downloadblackbird-hostboot-e604f02230c3decedbdd56a3cfef66b0709b74dc.tar.gz
blackbird-hostboot-e604f02230c3decedbdd56a3cfef66b0709b74dc.zip
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 <wenning@us.ibm.com>
Diffstat (limited to 'src/usr/example/test/exampletest.H')
-rw-r--r--src/usr/example/test/exampletest.H28
1 files changed, 28 insertions, 0 deletions
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 <cxxtest/TestSuite.H>
+#include <example/example.H>
+
+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");
+ }
+
+};
+
OpenPOWER on IntegriCloud