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