Commit 4bd117a7 authored by Philippe Gerum's avatar Philippe Gerum

testsuite/smokey: rename POSIX tests consistently

Running smokey --run=posix* will now run all tests for POSIX services.
parent 623f072b
......@@ -927,14 +927,14 @@ AC_CONFIG_FILES([ \
testsuite/smokey/sched-tp/Makefile \
testsuite/smokey/rtdm/Makefile \
testsuite/smokey/vdso-access/Makefile \
testsuite/smokey/cond-torture/Makefile \
testsuite/smokey/mutex-torture/Makefile \
testsuite/smokey/posix-cond/Makefile \
testsuite/smokey/posix-mutex/Makefile \
testsuite/smokey/posix-clock/Makefile \
testsuite/smokey/posix-fork/Makefile \
testsuite/smokey/xddp/Makefile \
testsuite/smokey/iddp/Makefile \
testsuite/smokey/bufp/Makefile \
testsuite/smokey/fork-exec/Makefile \
testsuite/smokey/sigdebug/Makefile \
testsuite/smokey/posix-clock/Makefile \
testsuite/clocktest/Makefile \
testsuite/xeno-test/Makefile \
testsuite/regression/Makefile \
......
......@@ -10,17 +10,17 @@ wrappers = $(XENO_POSIX_WRAPPERS)
SUBDIRS = \
arith \
bufp \
posix-clock \
cond-torture \
fork-exec \
iddp \
mutex-torture \
posix-clock \
posix-cond \
posix-fork \
posix-mutex \
rtdm \
sched-quota \
sched-tp \
sigdebug \
vdso-access \
xddp \
sigdebug
xddp
else
SUBDIRS =
wrappers =
......@@ -50,14 +50,14 @@ smokey_LDADD = \
DIST_SUBDIRS = \
arith \
bufp \
posix-clock \
cond-torture \
fork-exec \
iddp \
mutex-torture \
posix-clock \
posix-cond \
posix-fork \
posix-mutex \
rtdm \
sched-quota \
sched-tp \
sigdebug \
vdso-access \
xddp \
sigdebug
xddp
noinst_LIBRARIES = libcond-torture.a
noinst_LIBRARIES = libposix-cond.a
libcond_torture_a_SOURCES = cond-torture.c
libposix_cond_a_SOURCES = posix-cond.c
libcond_torture_a_CPPFLAGS = \
libposix_cond_a_CPPFLAGS = \
@XENO_USER_CFLAGS@ \
-I$(top_srcdir) \
-I$(top_srcdir)/include
......@@ -16,9 +16,9 @@
#include <pthread.h>
#include <smokey/smokey.h>
smokey_test_plugin(cond_torture,
smokey_test_plugin(posix_cond,
SMOKEY_NOARGS,
"Check POSIX condition variables"
"Check POSIX condition variable services"
);
#define NS_PER_MS (1000000)
......@@ -626,7 +626,7 @@ static void cond_destroy_whilewait(void)
check("cond_destroy", cond_destroy(&cond), 0);
}
int run_cond_torture(struct smokey_test *t, int argc, char *const argv[])
int run_posix_cond(struct smokey_test *t, int argc, char *const argv[])
{
struct sched_param sparam;
......@@ -644,7 +644,6 @@ int run_cond_torture(struct smokey_test *t, int argc, char *const argv[])
sig_norestart_double();
sig_restart_double();
cond_destroy_whilewait();
fprintf(stderr, "Test OK\n");
return 0;
}
noinst_LIBRARIES = libfork-exec.a
noinst_LIBRARIES = libposix-fork.a
libfork_exec_a_SOURCES = fork-exec.c
libposix_fork_a_SOURCES = posix-fork.c
CCLD = $(top_srcdir)/scripts/wrap-link.sh $(CC)
libfork_exec_a_CPPFLAGS = \
libposix_fork_a_CPPFLAGS = \
@XENO_USER_CFLAGS@ \
-I$(top_srcdir)/include
......@@ -14,9 +14,9 @@
#include <boilerplate/libc.h>
#include <smokey/smokey.h>
smokey_test_plugin(fork_exec,
smokey_test_plugin(posix_fork,
SMOKEY_NOARGS,
"Check fork->exec sequence."
"Check POSIX fork->exec sequence."
);
#ifdef HAVE_FORK
......@@ -35,7 +35,7 @@ smokey_test_plugin(fork_exec,
* We don't have to do much beyond firing such sequence fo testing: if
* Cobalt messes up, the kernel will certainly crash.
*/
static int run_fork_exec(struct smokey_test *t, int argc, char *const argv[])
static int run_posix_fork(struct smokey_test *t, int argc, char *const argv[])
{
struct timespec req;
......
noinst_LIBRARIES = libmutex-torture.a
noinst_LIBRARIES = libposix-mutex.a
libmutex_torture_a_SOURCES = mutex-torture.c
libposix_mutex_a_SOURCES = posix-mutex.c
libmutex_torture_a_CPPFLAGS = \
libposix_mutex_a_CPPFLAGS = \
@XENO_USER_CFLAGS@ \
-I$(top_srcdir) \
-I$(top_srcdir)/include
......@@ -21,9 +21,9 @@
#include "lib/cobalt/current.h"
#include <smokey/smokey.h>
smokey_test_plugin(mutex_torture,
smokey_test_plugin(posix_mutex,
SMOKEY_NOARGS,
"Check POSIX mutexes"
"Check POSIX mutex services"
);
#define MUTEX_CREATE 1
......@@ -550,7 +550,7 @@ static void pi_wait(void)
pthread_t waiter_tid;
#ifndef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
fprintf(stderr, "NOTE: pi_wait PTHREAD_PRIO_INHERIT: not supported\n");
smokey_note("PTHREAD_PRIO_INHERIT not supported");
return;
#endif
fprintf(stderr, "pi_wait\n");
......@@ -648,8 +648,7 @@ static void lock_stealing(void)
dispatch("lock_stealing mutex_destroy", MUTEX_DESTROY, 1, 0, &mutex);
if (trylock_result != 0)
fprintf(stderr,
"NOTE: lock_stealing mutex_trylock: not supported\n");
smokey_note("mutex_trylock not supported");
}
static void *victim(void *cookie)
......@@ -875,7 +874,7 @@ static void auto_switchback(void)
dispatch("auto_switchback mutex_destroy", MUTEX_DESTROY, 1, 0, &mutex);
}
int run_mutex_torture(struct smokey_test *t, int argc, char *const argv[])
int run_posix_mutex(struct smokey_test *t, int argc, char *const argv[])
{
struct sched_param sparam;
struct sigaction sa;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment