diff options
Diffstat (limited to 'testsuites/psxtests/wscript')
-rw-r--r-- | testsuites/psxtests/wscript | 269 |
1 files changed, 269 insertions, 0 deletions
diff --git a/testsuites/psxtests/wscript b/testsuites/psxtests/wscript new file mode 100644 index 0000000000..a186ed359b --- /dev/null +++ b/testsuites/psxtests/wscript @@ -0,0 +1,269 @@ +def build(ctx): + srcnode = ctx.srcnode.abspath() + + def test(target, source, **kwarg): + + includes_merge = [] + if "includes" in kwarg: + includes_merge = kwarg["includes"] + del kwarg["includes"] + + ctx.rtems_test( + "sptests_%s" % target, + source, + includes = [ + "%s/testsuites/psxtests/include/" % srcnode, + ] + includes_merge, + features = "test_include src_include_score src_include_bsp src_include_bsp_common", + **kwarg + ) + + + ctx( + target = "test_psxtests_psxhdrs", + source = [ + "psxhdrs/devctl/posix_devctl.c", + "psxhdrs/pthread/pthread_attr_destroy.c", + "psxhdrs/pthread/pthread_attr_getdetachstate.c", + "psxhdrs/pthread/pthread_attr_getguardsize.c", + "psxhdrs/pthread/pthread_attr_getinheritsched.c", + "psxhdrs/pthread/pthread_attr_getschedparam.c", + "psxhdrs/pthread/pthread_attr_getschedpolicy.c", + "psxhdrs/pthread/pthread_attr_getscope.c", + "psxhdrs/pthread/pthread_attr_getstack.c", + "psxhdrs/pthread/pthread_attr_getstackaddr.c", + "psxhdrs/pthread/pthread_attr_getstacksize.c", + "psxhdrs/pthread/pthread_attr_init.c", + "psxhdrs/pthread/pthread_attr_setdetachstate.c", + "psxhdrs/pthread/pthread_attr_setguardsize.c", + "psxhdrs/pthread/pthread_attr_setinheritsched.c", + "psxhdrs/pthread/pthread_attr_setschedparam.c", + "psxhdrs/pthread/pthread_attr_setschedpolicy.c", + "psxhdrs/pthread/pthread_attr_setscope.c", + "psxhdrs/pthread/pthread_attr_setstack.c", + "psxhdrs/pthread/pthread_attr_setstackaddr.c", + "psxhdrs/pthread/pthread_attr_setstacksize.c", + "psxhdrs/pthread/pthread_cancel.c", + "psxhdrs/pthread/pthread_cleanup.c", + "psxhdrs/pthread/pthread_cond_broadcast.c", + "psxhdrs/pthread/pthread_cond_destroy.c", + "psxhdrs/pthread/pthread_cond_init.c", + "psxhdrs/pthread/pthread_cond_signal.c", + "psxhdrs/pthread/pthread_cond_timedwait.c", + "psxhdrs/pthread/pthread_cond_wait.c", + "psxhdrs/pthread/pthread_condattr_destroy.c", + "psxhdrs/pthread/pthread_condattr_getpshared.c", + "psxhdrs/pthread/pthread_condattr_init.c", + "psxhdrs/pthread/pthread_condattr_setpshared.c", + "psxhdrs/pthread/pthread_create.c", + "psxhdrs/pthread/pthread_detach.c", + "psxhdrs/pthread/pthread_equal.c", + "psxhdrs/pthread/pthread_exit.c", + "psxhdrs/pthread/pthread_getconcurrency.c", + "psxhdrs/pthread/pthread_getcpuclockid.c", + "psxhdrs/pthread/pthread_getschedparam.c", + "psxhdrs/pthread/pthread_getspecific.c", + "psxhdrs/pthread/pthread_join.c", + "psxhdrs/pthread/pthread_key_create.c", + "psxhdrs/pthread/pthread_key_delete.c", + "psxhdrs/pthread/pthread_mutex_destroy.c", + "psxhdrs/pthread/pthread_mutex_getprioceiling.c", + "psxhdrs/pthread/pthread_mutex_init.c", + "psxhdrs/pthread/pthread_mutex_lock.c", + "psxhdrs/pthread/pthread_mutex_setprioceiling.c", + "psxhdrs/pthread/pthread_mutex_timedlock.c", + "psxhdrs/pthread/pthread_mutex_trylock.c", + "psxhdrs/pthread/pthread_mutex_unlock.c", + "psxhdrs/pthread/pthread_mutexattr_destroy.c", + "psxhdrs/pthread/pthread_mutexattr_getprioceiling.c", + "psxhdrs/pthread/pthread_mutexattr_getprotocol.c", + "psxhdrs/pthread/pthread_mutexattr_getpshared.c", + "psxhdrs/pthread/pthread_mutexattr_init.c", + "psxhdrs/pthread/pthread_mutexattr_setprioceiling.c", + "psxhdrs/pthread/pthread_once.c", + "psxhdrs/pthread/pthread_mutexattr_setprotocol.c", + "psxhdrs/pthread/pthread_mutexattr_setpshared.c", + "psxhdrs/pthread/pthread_self.c", + "psxhdrs/pthread/pthread_setcancelstate.c", + "psxhdrs/pthread/pthread_setcanceltype.c", + "psxhdrs/pthread/pthread_setconcurrency.c", + "psxhdrs/pthread/pthread_setschedparam.c", + "psxhdrs/pthread/pthread_setspecific.c", + "psxhdrs/pthread/pthread_testcancel.c", + "psxhdrs/sched/sched_get_priority_max.c", + "psxhdrs/sched/sched_get_priority_min.c", + "psxhdrs/sched/sched_getparam.c", + "psxhdrs/sched/sched_getscheduler.c", + "psxhdrs/sched/sched_rr_get_interval.c", + "psxhdrs/sched/sched_setparam.c", + "psxhdrs/sched/sched_setscheduler.c", + "psxhdrs/sched/sched_yield.c", + "psxhdrs/signal/pthread_sigmask.c", + "psxhdrs/signal/raise.c", + "psxhdrs/signal/signal.c", + "psxhdrs/signal/sigpending.c", + "psxhdrs/signal/sigprocmask.c", + "psxhdrs/signal/sigsuspend.c", + "psxhdrs/signal/sigtimedwait.c", + "psxhdrs/signal/sigwait.c", + "psxhdrs/signal/sigwaitinfo.c", + "psxhdrs/sys/mman/mlock.c", + "psxhdrs/sys/mman/mlockall.c", + "psxhdrs/sys/mman/mmap.c", + "psxhdrs/sys/mman/mprotect.c", + "psxhdrs/sys/mman/msync.c", + "psxhdrs/sys/mman/munlock.c", + "psxhdrs/sys/mman/munlockall.c", + "psxhdrs/sys/mman/munmap.c", + "psxhdrs/sys/mman/posix_madvise.c", + "psxhdrs/sys/mman/shm_open.c", + "psxhdrs/sys/mman/shm_unlink.c", + "psxhdrs/sys/socket/accept.c", + "psxhdrs/sys/socket/bind.c", + "psxhdrs/sys/socket/connect.c", + "psxhdrs/sys/socket/getpeername.c", + "psxhdrs/sys/socket/getsockname.c", + "psxhdrs/sys/socket/getsockopt.c", + "psxhdrs/sys/socket/listen.c", + "psxhdrs/sys/socket/recv.c", + "psxhdrs/sys/socket/recvfrom.c", + "psxhdrs/sys/socket/recvmsg.c", + "psxhdrs/sys/socket/send.c", + "psxhdrs/sys/socket/sendmsg.c", + "psxhdrs/sys/socket/sendto.c", + "psxhdrs/sys/socket/setsockopt.c", + "psxhdrs/sys/socket/shutdown.c", + "psxhdrs/sys/socket/socket.c", + "psxhdrs/sys/socket/socketpair.c", + "psxhdrs/time/asctime.c", + "psxhdrs/time/asctime_r.c", + "psxhdrs/time/clock.c", + "psxhdrs/time/clock_getcpuclockid.c", + "psxhdrs/time/clock_getres.c", + "psxhdrs/time/clock_gettime.c", + "psxhdrs/time/clock_nanosleep.c", + "psxhdrs/time/clock_settime.c", + "psxhdrs/time/ctime.c", + "psxhdrs/time/ctime_r.c", + "psxhdrs/time/difftime.c", + "psxhdrs/time/gmtime.c", + "psxhdrs/time/gmtime_r.c", + "psxhdrs/time/localtime.c", + "psxhdrs/time/localtime_r.c", + "psxhdrs/time/mktime.c", + "psxhdrs/time/nanosleep.c", + "psxhdrs/time/strftime.c", + "psxhdrs/time/time.c", + "psxhdrs/time/timer_create.c", + "psxhdrs/time/timer_delete.c", + "psxhdrs/time/timer_getoverrun.c", + "psxhdrs/time/timer_gettime.c", + "psxhdrs/time/timer_settime.c", + "psxhdrs/unistd/alarm.c", + "psxhdrs/unistd/fdatasync.c", + "psxhdrs/unistd/fsync.c", + "psxhdrs/unistd/getegid.c", + "psxhdrs/unistd/geteuid.c", + "psxhdrs/unistd/getgid.c", + "psxhdrs/unistd/getgroups.c", + "psxhdrs/unistd/getlogin.c", + "psxhdrs/unistd/getlogin_r.c", + "psxhdrs/unistd/getpgrp.c", + "psxhdrs/unistd/getpid.c", + "psxhdrs/unistd/getppid.c", + "psxhdrs/unistd/getuid.c", + "psxhdrs/unistd/pause.c", + "psxhdrs/unistd/setgid.c", + "psxhdrs/unistd/setgroups.c", + "psxhdrs/unistd/setpgid.c", + "psxhdrs/unistd/setsid.c", + "psxhdrs/unistd/setuid.c", + "psxhdrs/unistd/sleep.c", + "psxhdrs/unistd/sync.c", + "psxhdrs/unistd/ualarm.c", + "psxhdrs/unistd/usleep.c", + ], + features = "c cstlib bld_include src_include", + ) + + + test("psx01", ["psx01/init.c", "psx01/task.c"]) + test("psx02", ["psx02/init.c", "psx02/task.c"]) + test("psx03", ["psx03/init.c", "psx03/task.c"]) + test("psx04", ["psx04/init.c", "psx04/task1.c", "psx04/task2.c", "psx04/task3.c"]) + test("psx05", ["psx05/init.c", "psx05/task.c", "psx05/task2.c", "psx05/task3.c"]) + test("psx06", ["psx06/init.c", "psx06/task.c", "psx06/task2.c"]) + test("psx07", ["psx07/init.c", "psx07/task.c"]) + test("psx08", ["psx08/init.c", "psx08/task1.c", "psx08/task2.c", "psx08/task3.c"]) + test("psx09", ["psx09/init.c"]) + test("psx10", ["psx10/init.c", "psx10/task.c", "psx10/task2.c", "psx10/task3.c"]) + test("psx11", ["psx11/init.c", "psx11/task.c"]) + test("psx12", ["psx12/init.c"]) + test("psx13", ["psx13/main.c", "psx13/test.c"]) + test("psx14", ["psx14/init.c"]) + test("psx15", ["psx15/init.c"]) + test("psx16", ["psx16/init.c"]) + test("psxaio01", ["psxaio01/init.c"]) + test("psxaio02", ["psxaio02/init.c"]) + test("psxaio03", ["psxaio03/init.c"]) + test("psxalarm01", ["psxalarm01/init.c"]) + test("psxautoinit01", ["psxautoinit01/init.c"]) + test("psxautoinit02", ["psxautoinit02/init.c"]) + test("psxbarrier01", ["psxbarrier01/main.c", "psxbarrier01/test.c"]) +# test("psxcancel", ["psxcancel/init.c"]) _pthread_cleanup_push + test("psxcancel01", ["psxcancel01/init.c"]) + test("psxchroot01", ["psxchroot01/main.c", "psxchroot01/test.c"]) + test("psxclassic01", ["psxclassic01/init.c"]) +# test("psxcleanup", ["psxcleanup/psxcleanup.c"]) _pthread_cleanup_push +# test("psxcleanup01", ["psxcleanup01/init.c"]) _pthread_cleanup_push + test("psxclock", ["psxclock/init.c"]) + test("psxcond01", ["psxcond01/init.c"]) + test("psxeintr_join", ["psxeintr_join/init.c"]) + test("psxenosys", ["psxenosys/init.c"]) +# test("psxfatal01", ["psxfatal_support/init.c"], includes=["%s/testsuites/psxtests/psxfatal01/" % srcnode]) +# test("psxfatal02", ["psxfatal_support/init.c"], includes=["%s/testsuites/psxtests/psxfatal02/" % srcnode]) + test("psxfchx01", ["psxfchx01/init.c"]) + test("psxfile01", ["psxfile01/main.c", "psxfile01/test.c", "psxfile01/test_cat.c", "psxfile01/test_extend.c", "psxfile01/test_write.c"]) + test("psxfile02", ["psxfile02/init.c"]) +#flockfile test("psxfilelock01", ["psxfilelock01/init.c"]) + test("psxgetrusage01", ["psxgetrusage01/init.c"], use="test_support_spin") + test("psxid01", ["psxid01/init.c"]) + test("psximfs01", ["psximfs01/init.c"]) + test("psximfs02", ["psximfs02/init.c"]) + test("psxintrcritical01", ["psxintrcritical01/init.c", "../sptests/spintrcritical_support/intrcritical.c"], includes=["%s/testsuites/sptests/spintrcritical_support/" % srcnode]) #XXX: relative path + test("psxitimer", ["psxitimer/init.c"]) + test("psxkey01", ["psxkey01/init.c"], use="test_support") + test("psxkey02", ["psxkey02/init.c"]) + test("psxkey03", ["psxkey03/init.c"]) + test("psxmount", ["psxmount/main.c", "psxmount/test.c"]) + test("psxmsgq01", ["psxmsgq01/init.c"], use="test_support") + test("psxmsgq02", ["psxmsgq02/init.c"], use="test_support") + test("psxmsgq03", ["psxmsgq03/init.c"]) + test("psxmsgq04", ["psxmsgq04/init.c"], use="test_support") + test("psxmutexattr01", ["psxmutexattr01/init.c"]) + test("psxobj01", ["psxobj01/init.c"], use="test_support") + test("psxpasswd01", ["psxpasswd01/init.c"]) + test("psxpasswd02", ["psxpasswd02/init.c"]) + test("psxpipe01", ["psxpipe01/init.c"]) + test("psxrdwrv", ["psxrdwrv/main.c", "psxrdwrv/test.c"]) + test("psxreaddir", ["psxreaddir/main.c", "psxreaddir/test.c"]) + test("psxrwlock01", ["psxrwlock01/main.c", "psxrwlock01/test.c"]) + test("psxsem01", ["psxsem01/init.c"], use="test_support") + test("psxsignal01", ["psxsignal01/init.c", "psxsignal01/task1.c"]) + test("psxsignal02", ["psxsignal02/init.c"]) + test("psxsignal03", ["psxsignal03/init.c"], defines=["USE_USER_SIGNALS_PROCESS"]) + test("psxsignal04", ["psxsignal03/init.c"], defines=["USE_REAL_TIME_SIGNALS_PROCESS"]) + test("psxsignal05", ["psxsignal05/init.c"]) + test("psxsignal06", ["psxsignal06/init.c"]) + test("psxspin01", ["psxspin01/main.c", "psxspin01/test.c"]) + test("psxstack01", ["psxstack01/init.c"]) + test("psxstack02", ["psxstack02/init.c"]) + test("psxstat", ["psxstat/main.c", "psxstat/test.c"]) + test("psxsysconf", ["psxsysconf/init.c"]) + test("psxtime", ["psxtime/main.c", "psxtime/test.c"]) + test("psxtimer01", ["psxtimer01/psxtimer.c"]) + test("psxtimer02", ["psxtimer02/psxtimer.c"]) + test("psxtimes01", ["psxtimes01/init.c"], use="test_support_spin") + test("psxualarm", ["psxualarm/init.c"]) + test("psxusleep", ["psxusleep/init.c"]) + |