summaryrefslogtreecommitdiffstats
path: root/src/usr/example/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/example/test')
-rw-r--r--src/usr/example/test/exampletest.C31
-rw-r--r--src/usr/example/test/exampletest.H10
-rw-r--r--src/usr/example/test/makefile4
3 files changed, 12 insertions, 33 deletions
diff --git a/src/usr/example/test/exampletest.C b/src/usr/example/test/exampletest.C
deleted file mode 100644
index a1cd84d51..000000000
--- a/src/usr/example/test/exampletest.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Note that this file will eventually be generated by the cxxtest perl
-// script. This is here just as reference right now.
-
-#include <kernel/console.H>
-#include <sys/mutex.h>
-#include <sys/vfs.h>
-#include <sys/task.h>
-#include <trace/interface.H>
-#include <example/example.H>
-#include "exampletest.H"
-
-//static mutex_t value = mutex_create();
-
-
-trace_desc_t *g_trac_test = NULL;
-TRAC_INIT(&g_trac_test, "EXAMPLE", 4096);
-
-extern "C"
-void _start(void*)
-{
- printk("Executing example test module.\n");
-
- ExampleTest *l_ex = new ExampleTest();
-
- l_ex->testExample1();
-
- delete l_ex;
-
- task_end();
-}
-
diff --git a/src/usr/example/test/exampletest.H b/src/usr/example/test/exampletest.H
index aba750c08..c45aaf4f7 100644
--- a/src/usr/example/test/exampletest.H
+++ b/src/usr/example/test/exampletest.H
@@ -23,6 +23,16 @@ public:
// Call functions and validate results
// TS_FAIL("Failed test call to example3 function");
}
+ void testExample4(void)
+ {
+ // Call functions and validate results
+ // TS_FAIL("Failed test call to example3 function");
+ }
+ void testExample5(void)
+ {
+ // Call functions and validate results
+ // TS_FAIL("Failed test call to example3 function");
+ }
};
diff --git a/src/usr/example/test/makefile b/src/usr/example/test/makefile
index 690c64045..0a17fb627 100644
--- a/src/usr/example/test/makefile
+++ b/src/usr/example/test/makefile
@@ -1,6 +1,6 @@
ROOTPATH = ../../../..
-MODULE = testexample
-OBJS = exampletest.o
+MODULE = testexample
+TESTS = *.H
include ${ROOTPATH}/config.mk
OpenPOWER on IntegriCloud