xref: /haiku/src/tests/system/libroot/posix/Jamfile (revision 1f52c921e27aa442370e1bd4adc021acf2b78b64)
1SubDir HAIKU_TOP src tests system libroot posix ;
2
3UsePrivateHeaders libroot system ;
4
5# filter warnings about strftime()-formats in locale_test
6TARGET_WARNING_C++FLAGS_$(TARGET_PACKAGING_ARCH)
7	on [ FGristFiles locale_test.o ] += -Wno-format ;
8
9# POSIX/libc tests
10SimpleTest abort_test : abort_test.cpp ;
11SimpleTest SyslogTest : SyslogTest.cpp ;
12SimpleTest brk_test : brk_test.c ;
13SimpleTest calloc_test : calloc_test.c ;
14SimpleTest <test>chmod : chmod.cpp ;
15SimpleTest clearenv : clearenv.cpp ;
16SimpleTest dirent_test : dirent_test.cpp ;
17SimpleTest flock_test : flock_test.cpp ;
18SimpleTest fseek_test : fseek_test.cpp ;
19SimpleTest getsubopt_test : getsubopt_test.cpp ;
20SimpleTest locale_test : locale_test.cpp ;
21SimpleTest memalign_test : memalign_test.cpp : [ TargetLibsupc++ ] ;
22SimpleTest mprotect_test : mprotect_test.cpp ;
23SimpleTest pthread_signal_test : pthread_signal_test.cpp ;
24SimpleTest realtime_sem_test1 : realtime_sem_test1.cpp ;
25SimpleTest seek_and_write_test : seek_and_write_test.cpp ;
26SimpleTest setpgid_test : setpgid_test.cpp ;
27SimpleTest setjmp_test : setjmp_test.c ;
28if $(TARGET_ARCH) = x86 {
29	SimpleTest setjmp_test2 : setjmp_test2.S ;
30} else {
31	echo "Skipping setjmp_test2.S test on non-x86" ;
32}
33SimpleTest signal_in_allocator_test : signal_in_allocator_test.cpp ;
34SimpleTest signal_in_allocator_test2 : signal_in_allocator_test2.cpp ;
35SimpleTest signal_test : signal_test.cpp ;
36SimpleTest sigsetjmp_test : sigsetjmp_test.c ;
37SimpleTest test_time : test_time.c ;
38#SimpleTest tls_concurrency_test : tls_concurrency_test.cpp ;
39SimpleTest tst-mktime : tst-mktime.c ;
40SimpleTest <test>truncate : truncate.cpp ;
41SimpleTest init_rld_after_fork_test : init_rld_after_fork_test.cpp ;
42SimpleTest user_thread_fork_test : user_thread_fork_test.cpp ;
43SimpleTest pthread_barrier_test : pthread_barrier_test.cpp ;
44SimpleTest posix_spawn_test : posix_spawn_test.cpp ;
45SimpleTest posix_spawn_redir_test : posix_spawn_redir_test.c ;
46SimpleTest posix_spawn_redir_err : posix_spawn_redir_err.c ;
47SimpleTest posix_spawn_pipe_test : posix_spawn_pipe_test.c ;
48SimpleTest posix_spawn_pipe_err : posix_spawn_pipe_err.c ;
49SimpleTest pthread_attr_stack_test : pthread_attr_stack_test.cpp ;
50
51# XSI tests
52SimpleTest xsi_msg_queue_test1 : xsi_msg_queue_test1.cpp ;
53SimpleTest xsi_sem_test1 : xsi_sem_test1.cpp ;
54
55# wide character tests
56SimpleTest fwide_test : fwide_test.c ;
57SimpleTest gnulib-test-btowc : gnulib-test-btowc.c ;
58SimpleTest gnulib-test-mbrtowc : gnulib-test-mbrtowc.c ;
59#SimpleTest gnulib-test-mbsnrtowcs : gnulib-test-mbsnrtowcs.c ;
60SimpleTest gnulib-test-mbsrtowcs : gnulib-test-mbsrtowcs.c ;
61SimpleTest gnulib-test-wcrtomb : gnulib-test-wcrtomb.c ;
62#SimpleTest gnulib-test-wcsnrtombs : gnulib-test-wcsnrtombs.c ;
63SimpleTest gnulib-test-wcsrtombs : gnulib-test-wcsrtombs.c ;
64SimpleTest mbtest : mbtest.c ;
65SimpleTest testmb : testmb.c ;
66SimpleTest tst-btowc : tst-btowc.c ;
67SimpleTest tst-fgetws : tst-fgetws.c ;
68SimpleTest tst-getwc : tst-getwc.c ;
69SimpleTest tst-mbrtowc : tst-mbrtowc.c ;
70SimpleTest tst-swprintf : tst-swprintf.c ;
71SimpleTest tst-swscanf : tst-swscanf.c ;
72SimpleTest tst-swscanf2 : tst-swscanf2.c ;
73SimpleTest tst-ungetwc1 : tst-ungetwc1.c ;
74SimpleTest tst-ungetwc2 : tst-ungetwc2.c ;
75SimpleTest tst-wcrtomb : tst-wcrtomb.c ;
76SimpleTest tst-wcsnlen : tst-wcsnlen.c ;
77SimpleTest tst-wcstof : tst-wcstof.c ;
78SimpleTest tst-wprintf : tst-wprintf.c ;
79SimpleTest tst-wprintf2 : tst-wprintf2.c ;
80SimpleTest tst-wscanf : tst-wscanf.c ;
81SimpleTest test_wcfuncs : test_wcfuncs.c ;
82SimpleTest test_wctype : test_wctype.c ;
83SimpleTest wcs_test : wcs_test.cpp ;
84
85UnitTestLib librootposixtest.so :
86	LibRootPosix.cpp
87
88	CryptTest.cpp
89
90	: be [ TargetLibstdc++ ] [ TargetLibsupc++ ]
91;
92
93SubInclude HAIKU_TOP src tests system libroot posix math ;
94SubInclude HAIKU_TOP src tests system libroot posix string ;
95