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