blob: 15d8cbc8c6978640ede993e10a7a05ffb2323785 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# $FreeBSD$
.include <bsd.own.mk>
ATF_TESTS_C+= heapsort_test
ATF_TESTS_C+= mergesort_test
ATF_TESTS_C+= qsort_test
.if ${COMPILER_FEATURES:Mc++11}
ATF_TESTS_CXX+= cxa_thread_atexit_test
ATF_TESTS_CXX+= cxa_thread_atexit_nothr_test
.endif
TESTSDIR= ${TESTSBASE}/lib/libc/stdlib
# TODO: t_getenv_thread, t_mi_vector_hash
NETBSD_ATF_TESTS_C+= abs_test
NETBSD_ATF_TESTS_C+= atoi_test
NETBSD_ATF_TESTS_C+= div_test
NETBSD_ATF_TESTS_C+= getenv_test
NETBSD_ATF_TESTS_C+= exit_test
NETBSD_ATF_TESTS_C+= hsearch_test
NETBSD_ATF_TESTS_C+= posix_memalign_test
NETBSD_ATF_TESTS_C+= random_test
NETBSD_ATF_TESTS_C+= strtod_test
NETBSD_ATF_TESTS_C+= strtol_test
NETBSD_ATF_TESTS_C+= system_test
# TODO: need to come up with a correct explanation of what the patch pho does
# with h_atexit
#ATF_TESTS_SH= atexit_test
NETBSD_ATF_TESTS_SH= getopt_test
.include "../Makefile.netbsd-tests"
BINDIR= ${TESTSDIR}
# TODO: see comment above
#PROGS+= h_atexit
PROGS+= h_getopt h_getopt_long
CFLAGS+= -I${.CURDIR}
CXXFLAGS.cxa_thread_atexit_test+= -std=c++11
CXXFLAGS.cxa_thread_atexit_nothr_test+= -std=c++11
DPADD.cxa_thread_atexit_test+= ${LIBPTHREAD}
LDADD.cxa_thread_atexit_test+= -lpthread
.for t in h_getopt h_getopt_long
CFLAGS.$t+= -I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests
LDFLAGS.$t+= -L${LIBNETBSD_OBJDIR}
DPADD.$t+= ${LIBNETBSD} ${LIBUTIL}
LDADD.$t+= -lnetbsd -lutil
.endfor
DPADD.strtod_test+= ${LIBM}
LDADD.strtod_test+= -lm
.include <bsd.test.mk>
|