xref: /freebsd/lib/libc/tests/gen/Makefile (revision 1f4bcc459a76b7aa664f3fd557684cd0ba6da352)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5PACKAGE=	tests
6FILESGROUPS=	TESTS
7TESTSPACKAGE=	${PACKAGE}
8
9ATF_TESTS_C+=		arc4random_test
10ATF_TESTS_C+=		fmtcheck2_test
11ATF_TESTS_C+=		fmtmsg_test
12ATF_TESTS_C+=		fnmatch2_test
13ATF_TESTS_C+=		fpclassify2_test
14ATF_TESTS_C+=		ftw_test
15ATF_TESTS_C+=		popen_test
16ATF_TESTS_C+=		posix_spawn_test
17ATF_TESTS_C+=		wordexp_test
18ATF_TESTS_C+=		dlopen_empty_test
19
20# TODO: t_closefrom, t_cpuset, t_fmtcheck, t_randomid, t_sleep
21# TODO: t_siginfo (fixes require further inspection)
22# TODO: t_sethostname_test (consistently screws up the hostname)
23
24NETBSD_ATF_TESTS_C=	alarm_test
25NETBSD_ATF_TESTS_C+=	assert_test
26NETBSD_ATF_TESTS_C+=	basedirname_test
27NETBSD_ATF_TESTS_C+=	dir_test
28NETBSD_ATF_TESTS_C+=	floatunditf_test
29NETBSD_ATF_TESTS_C+=	fnmatch_test
30NETBSD_ATF_TESTS_C+=	fpclassify_test
31NETBSD_ATF_TESTS_C+=	fpsetmask_test
32NETBSD_ATF_TESTS_C+=	fpsetround_test
33NETBSD_ATF_TESTS_C+=	ftok_test
34NETBSD_ATF_TESTS_C+=	getcwd_test
35NETBSD_ATF_TESTS_C+=	getgrent_test
36NETBSD_ATF_TESTS_C+=	glob_test
37NETBSD_ATF_TESTS_C+=	humanize_number_test
38NETBSD_ATF_TESTS_C+=	isnan_test
39NETBSD_ATF_TESTS_C+=	nice_test
40NETBSD_ATF_TESTS_C+=	pause_test
41NETBSD_ATF_TESTS_C+=	raise_test
42NETBSD_ATF_TESTS_C+=	realpath_test
43NETBSD_ATF_TESTS_C+=	setdomainname_test
44NETBSD_ATF_TESTS_C+=	sethostname_test
45NETBSD_ATF_TESTS_C+=	sleep_test
46NETBSD_ATF_TESTS_C+=	syslog_test
47NETBSD_ATF_TESTS_C+=	time_test
48NETBSD_ATF_TESTS_C+=	ttyname_test
49NETBSD_ATF_TESTS_C+=	vis_test
50
51.include "../Makefile.netbsd-tests"
52
53LIBADD.humanize_number_test+=	util
54
55LIBADD.fpclassify_test+=m
56LIBADD.fpsetround_test+=m
57LIBADD.siginfo_test+=	m
58
59LIBADD.nice_test+=	pthread
60LIBADD.syslog_test+=	pthread
61
62CFLAGS+=		-I${.CURDIR}
63
64SRCS.fmtcheck2_test=	fmtcheck_test.c
65SRCS.fnmatch2_test=	fnmatch_test.c
66
67TESTS_SUBDIRS=	execve
68TESTS_SUBDIRS+=	posix_spawn
69
70# The old testcase name
71TEST_FNMATCH=	test-fnmatch
72CLEANFILES+=		${GEN_SH_CASE_TESTCASES}
73sh-tests: .PHONY
74.for target in clean obj depend all
75	@cd ${.CURDIR} && ${MAKE} PROG=${TEST_FNMATCH} \
76	    -DNO_SUBDIR ${target}
77.endfor
78	@cd ${.OBJDIR} && ./${TEST_FNMATCH} -s 1 > \
79	    ${SRCTOP}/bin/sh/tests/builtins/case2.0
80	@cd ${.OBJDIR} && ./${TEST_FNMATCH} -s 2 > \
81	    ${SRCTOP}/bin/sh/tests/builtins/case3.0
82
83.include <bsd.test.mk>
84