xref: /freebsd/lib/libc/tests/string/Makefile (revision 12be6f12e87abc3e1edd3cc6cdc20334bdd63380)
1
2# ensure libc functions are tested, not clang's builtins
3CFLAGS+=	-fno-builtin
4
5ATF_TESTS_C+=		bcmp_test
6ATF_TESTS_C+=		ffs_test
7ATF_TESTS_C+=		ffsl_test
8ATF_TESTS_C+=		ffsll_test
9ATF_TESTS_C+=		fls_test
10ATF_TESTS_C+=		flsl_test
11ATF_TESTS_C+=		flsll_test
12ATF_TESTS_C+=		memccpy_test
13ATF_TESTS_C+=		memcmp_test
14ATF_TESTS_C+=		memrchr_test
15ATF_TESTS_C+=		memset_s_test
16ATF_TESTS_C+=		strncmp_test
17ATF_TESTS_C+=		stpncpy_test
18ATF_TESTS_C+=		strcmp2_test
19ATF_TESTS_C+=		strcspn_test
20ATF_TESTS_C+=		strerror2_test
21ATF_TESTS_C+=		strlcpy_test
22ATF_TESTS_C+=		strspn_test
23ATF_TESTS_C+=		strverscmp_test
24ATF_TESTS_C+=		strxfrm_test
25ATF_TESTS_C+=		timingsafe_bcmp_test
26ATF_TESTS_C+=		timingsafe_memcmp_test
27ATF_TESTS_C+=		wcscasecmp_test
28ATF_TESTS_C+=		wcscoll_test
29ATF_TESTS_C+=		wcsnlen_test
30
31# TODO: popcount, stresep
32
33NETBSD_ATF_TESTS_C+=	memchr_test
34NETBSD_ATF_TESTS_C+=	memcpy_test
35NETBSD_ATF_TESTS_C+=	memmem_test
36NETBSD_ATF_TESTS_C+=	memset_test
37NETBSD_ATF_TESTS_C+=	strcat_test
38NETBSD_ATF_TESTS_C+=	strchr_test
39NETBSD_ATF_TESTS_C+=	strchrnul_test
40NETBSD_ATF_TESTS_C+=	strcmp_test
41NETBSD_ATF_TESTS_C+=	strcpy_test
42NETBSD_ATF_TESTS_C+=	strerror_test
43NETBSD_ATF_TESTS_C+=	strlen_test
44NETBSD_ATF_TESTS_C+=	strpbrk_test
45NETBSD_ATF_TESTS_C+=	strrchr_test
46NETBSD_ATF_TESTS_C+=	swab_test
47
48SRCS.strcmp2_test=	strcmp_test.c
49SRCS.strerror2_test=	strerror_test.c
50
51.include "../Makefile.netbsd-tests"
52
53LIBADD.memchr_test+=	md
54LIBADD.memcpy_test+=	md
55
56.include <bsd.test.mk>
57