diff --git a/kern/conf/conf.kern b/kern/conf/conf.kern index 1fc3aa1..4b4fdaf 100644 --- a/kern/conf/conf.kern +++ b/kern/conf/conf.kern @@ -442,6 +442,7 @@ file test/threadlisttest.c file test/threadtest.c file test/tt3.c file test/synchtest.c +file test/rwtest.c file test/semunit.c file test/hmacunit.c file test/kmalloctest.c diff --git a/kern/include/kern/secret.h b/kern/include/kern/secret.h index 02d0335..16c3903 100644 --- a/kern/include/kern/secret.h +++ b/kern/include/kern/secret.h @@ -45,6 +45,6 @@ */ #undef SECRET_TESTING -#define SECRET "" +#define SECRET "TEST" #endif /* _SECRET_H_ */ diff --git a/kern/include/test.h b/kern/include/test.h index aebefbd..4f81a45 100644 --- a/kern/include/test.h +++ b/kern/include/test.h @@ -63,6 +63,8 @@ int locktest2(int, char **); int locktest3(int, char **); int cvtest(int, char **); int cvtest2(int, char **); +int cvtest3(int, char **); +int cvtest4(int, char **); int rwtest(int, char **); /* semaphore unit tests */ diff --git a/kern/main/menu.c b/kern/main/menu.c index 83f96db..4aeb5db 100644 --- a/kern/main/menu.c +++ b/kern/main/menu.c @@ -481,6 +481,8 @@ static const char *testmenu[] = { "[lt3] Lock test 3 (panics) (1) ", "[cvt1] CV test 1 (1) ", "[cvt2] CV test 2 (1) ", + "[cvt3] CV test 3 (panics) (1) ", + "[cvt4] CV test 4 (panics) (1) ", "[rwt1] RW lock test (1) ", #if OPT_SYNCHPROBS "[sp1] Whalemating test (1) ", @@ -617,6 +619,8 @@ static struct { { "lt3", locktest3 }, { "cvt1", cvtest }, { "cvt2", cvtest2 }, + { "cvt3", cvtest3 }, + { "cvt4", cvtest4 }, { "rwt1", rwtest }, #if OPT_SYNCHPROBS { "sp1", whalemating }, diff --git a/kern/test/rwtest.c b/kern/test/rwtest.c new file mode 100644 index 0000000..e3896d4 --- /dev/null +++ b/kern/test/rwtest.c @@ -0,0 +1,18 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +int rwtest(int nargs, char **args) { + (void)nargs; + (void)args; + + kprintf_n("rwt1 unimplemented\n"); + success(FAIL, SECRET, "rwt1"); + + return 0; +} diff --git a/kern/test/synchtest.c b/kern/test/synchtest.c index 627f30b..31a14b9 100644 --- a/kern/test/synchtest.c +++ b/kern/test/synchtest.c @@ -80,6 +80,7 @@ semtestthread(void *junk, unsigned long num) kprintf_n("Thread %2lu: ", num); for (i=0; i