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