summaryrefslogtreecommitdiffstats
path: root/src/usr/example/test/exampletest.H
diff options
context:
space:
mode:
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