freebsd-skq/lib/libc/tests/gen/Makefile
Enji Cooper fbf5b9f8a2 Integrate tools/regression/lib/libc/gen into the FreeBSD test suite
as lib/libc/tests/gen

The code in test-fnmatch that was used for generating:

- bin/sh/tests/builtins/case2.0
- bin/sh/tests/builtins/case3.0

has been left undisturbed. The target `make sh-tests` has been moved over
from tools/regression/lib/libc/gen/Makefile to
lib/libc/tests/gen/Makefile and made into a PHONY target

case2.0 and case3.0 test input generation isn't being done automatically.
This needs additional discussion.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-11-09 06:24:11 +00:00

85 lines
2.3 KiB
Makefile

# $FreeBSD$
.include <bsd.own.mk>
ATF_TESTS_C+= arc4random_test
ATF_TESTS_C+= fmtcheck2_test
ATF_TESTS_C+= fmtmsg_test
ATF_TESTS_C+= fnmatch2_test
ATF_TESTS_C+= fpclassify2_test
ATF_TESTS_C+= ftw_test
ATF_TESTS_C+= popen_test
ATF_TESTS_C+= posix_spawn_test
ATF_TESTS_C+= wordexp_test
# TODO: t_closefrom, t_cpuset, t_fmtcheck, t_randomid, t_sleep
# TODO: t_siginfo (fixes require further inspection)
# TODO: t_sethostname_test (consistently screws up the hostname)
NETBSD_ATF_TESTS_C= alarm_test
NETBSD_ATF_TESTS_C+= assert_test
NETBSD_ATF_TESTS_C+= basedirname_test
NETBSD_ATF_TESTS_C+= dir_test
NETBSD_ATF_TESTS_C+= floatunditf_test
NETBSD_ATF_TESTS_C+= fnmatch_test
NETBSD_ATF_TESTS_C+= fpclassify_test
NETBSD_ATF_TESTS_C+= fpsetmask_test
NETBSD_ATF_TESTS_C+= fpsetround_test
NETBSD_ATF_TESTS_C+= ftok_test
NETBSD_ATF_TESTS_C+= getcwd_test
NETBSD_ATF_TESTS_C+= getgrent_test
NETBSD_ATF_TESTS_C+= glob_test
NETBSD_ATF_TESTS_C+= humanize_number_test
NETBSD_ATF_TESTS_C+= isnan_test
NETBSD_ATF_TESTS_C+= nice_test
NETBSD_ATF_TESTS_C+= pause_test
NETBSD_ATF_TESTS_C+= raise_test
NETBSD_ATF_TESTS_C+= realpath_test
NETBSD_ATF_TESTS_C+= setdomainname_test
NETBSD_ATF_TESTS_C+= sethostname_test
NETBSD_ATF_TESTS_C+= sleep_test
NETBSD_ATF_TESTS_C+= syslog_test
NETBSD_ATF_TESTS_C+= time_test
NETBSD_ATF_TESTS_C+= ttyname_test
NETBSD_ATF_TESTS_C+= vis_test
.include "../Makefile.netbsd-tests"
LDADD.humanize_number_test+= -lutil
DPADD.humanize_number_test+= ${LIBUTIL}
LDADD.fpclassify_test+= -lm
DPADD.fpclassify_test+= ${LIBM}
LDADD.fpsetround_test+= -lm
DPADD.fpsetround_test+= ${LIBM}
LDADD.siginfo_test+= -lm
DPADD.siginfo_test+= ${LIBM}
LDADD.nice_test+= -lpthread
DPADD.nice_test+= ${LIBPTHREAD}
LDADD.syslog_test+= -lpthread
DPADD.syslog_test+= ${LIBPTHREAD}
CFLAGS+= -I${.CURDIR}
SRCS.fmtcheck2_test= fmtcheck_test.c
SRCS.fnmatch2_test= fnmatch_test.c
TESTS_SUBDIRS= execve
TESTS_SUBDIRS+= posix_spawn
# The old testcase name
TEST_FNMATCH= test-fnmatch
CLEANFILES+= ${GEN_SH_CASE_TESTCASES}
sh-tests: .PHONY
.for target in clean obj depend all
@cd ${.CURDIR} && ${MAKE} PROG=${TEST_FNMATCH} \
-DNO_SUBDIR ${target}
.endfor
@cd ${.OBJDIR} && ./${TEST_FNMATCH} -s 1 > \
${SRCTOP}/bin/sh/tests/builtins/case2.0
@cd ${.OBJDIR} && ./${TEST_FNMATCH} -s 2 > \
${SRCTOP}/bin/sh/tests/builtins/case3.0
.include <bsd.test.mk>