xref: /haiku/src/tests/system/libroot/posix/Jamfile (revision 4c5e5d8b041c5aba6938e1ea0337e49a84497d1a)
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 ;
37SimpleTest tst-mktime : tst-mktime.c ;
38SimpleTest <test>truncate : truncate.cpp ;
39SimpleTest init_rld_after_fork_test : init_rld_after_fork_test.cpp ;
40SimpleTest user_thread_fork_test : user_thread_fork_test.cpp ;
41SimpleTest pthread_barrier_test : pthread_barrier_test.cpp ;
42SimpleTest posix_spawn_test : posix_spawn_test.cpp ;
43SimpleTest posix_spawn_redir_test : posix_spawn_redir_test.c ;
44SimpleTest posix_spawn_redir_err : posix_spawn_redir_err.c ;
45SimpleTest posix_spawn_pipe_test : posix_spawn_pipe_test.c ;
46SimpleTest posix_spawn_pipe_err : posix_spawn_pipe_err.c ;
47
48# XSI tests
49SimpleTest xsi_msg_queue_test1 : xsi_msg_queue_test1.cpp ;
50SimpleTest xsi_sem_test1 : xsi_sem_test1.cpp ;
51
52# wide character tests
53SimpleTest fwide_test : fwide_test.c ;
54SimpleTest gnulib-test-btowc : gnulib-test-btowc.c ;
55SimpleTest gnulib-test-mbrtowc : gnulib-test-mbrtowc.c ;
56#SimpleTest gnulib-test-mbsnrtowcs : gnulib-test-mbsnrtowcs.c ;
57SimpleTest gnulib-test-mbsrtowcs : gnulib-test-mbsrtowcs.c ;
58SimpleTest gnulib-test-wcrtomb : gnulib-test-wcrtomb.c ;
59#SimpleTest gnulib-test-wcsnrtombs : gnulib-test-wcsnrtombs.c ;
60SimpleTest gnulib-test-wcsrtombs : gnulib-test-wcsrtombs.c ;
61SimpleTest mbtest : mbtest.c ;
62SimpleTest testmb : testmb.c ;
63SimpleTest tst-btowc : tst-btowc.c ;
64SimpleTest tst-fgetws : tst-fgetws.c ;
65SimpleTest tst-getwc : tst-getwc.c ;
66SimpleTest tst-mbrtowc : tst-mbrtowc.c ;
67SimpleTest tst-swprintf : tst-swprintf.c ;
68SimpleTest tst-swscanf : tst-swscanf.c ;
69SimpleTest tst-swscanf2 : tst-swscanf2.c ;
70SimpleTest tst-ungetwc1 : tst-ungetwc1.c ;
71SimpleTest tst-ungetwc2 : tst-ungetwc2.c ;
72SimpleTest tst-wcrtomb : tst-wcrtomb.c ;
73SimpleTest tst-wcsnlen : tst-wcsnlen.c ;
74SimpleTest tst-wcstof : tst-wcstof.c ;
75SimpleTest tst-wprintf : tst-wprintf.c ;
76SimpleTest tst-wprintf2 : tst-wprintf2.c ;
77SimpleTest tst-wscanf : tst-wscanf.c ;
78SimpleTest test_wcfuncs : test_wcfuncs.c ;
79SimpleTest test_wctype : test_wctype.c ;
80SimpleTest wcs_test : wcs_test.cpp ;
81
82UnitTestLib librootposixtest.so :
83	LibRootPosix.cpp
84
85	CryptTest.cpp
86
87	: be [ TargetLibstdc++ ] [ TargetLibsupc++ ]
88;
89
90SubInclude HAIKU_TOP src tests system libroot posix math ;
91SubInclude HAIKU_TOP src tests system libroot posix string ;
92