1.include <bsd.own.mk> 2 3ATF_TESTS_C+= arc4random_test 4ATF_TESTS_C+= dir2_test 5ATF_TESTS_C+= dlopen_empty_test 6ATF_TESTS_C+= fmtcheck2_test 7ATF_TESTS_C+= fmtmsg_test 8ATF_TESTS_C+= fnmatch2_test 9ATF_TESTS_C+= fpclassify2_test 10ATF_TESTS_C+= ftw_test 11ATF_TESTS_C+= getentropy_test 12ATF_TESTS_C+= getmntinfo_test 13ATF_TESTS_C+= glob2_test 14ATF_TESTS_C+= makecontext_test 15ATF_TESTS_C+= popen_test 16ATF_TESTS_C+= posix_spawn_test 17ATF_TESTS_C+= realpath2_test 18ATF_TESTS_C+= sigsetops_test 19ATF_TESTS_C+= wordexp_test 20 21# TODO: t_closefrom, t_fmtcheck, t_randomid, 22# TODO: t_siginfo (fixes require further inspection) 23# TODO: t_sethostname_test (consistently screws up the hostname) 24 25FILESGROUPS+= posix_spawn_test_FILES 26 27posix_spawn_test_FILES= spawnp_enoexec.sh 28posix_spawn_test_FILESDIR= ${TESTSDIR} 29posix_spawn_test_FILESMODE= 0755 30posix_spawn_test_FILESOWN= root 31posix_spawn_test_FILESGRP= wheel 32posix_spawn_test_FILESPACKAGE= ${PACKAGE} 33 34CFLAGS+= -DTEST_LONG_DOUBLE 35 36# Define __HAVE_LONG_DOUBLE for architectures whose long double has greater 37# precision than their double. 38.if ${MACHINE_CPUARCH} == "aarch64" || \ 39 ${MACHINE_CPUARCH} == "amd64" || \ 40 ${MACHINE_CPUARCH} == "i386" || \ 41 ${MACHINE_CPUARCH} == "riscv" 42CFLAGS+= -D__HAVE_LONG_DOUBLE 43.endif 44 45NETBSD_ATF_TESTS_C= alarm_test 46NETBSD_ATF_TESTS_C+= assert_test 47NETBSD_ATF_TESTS_C+= basedirname_test 48NETBSD_ATF_TESTS_C+= cpuset_test 49NETBSD_ATF_TESTS_C+= dir_test 50NETBSD_ATF_TESTS_C+= floatunditf_test 51NETBSD_ATF_TESTS_C+= fnmatch_test 52NETBSD_ATF_TESTS_C+= fpclassify_test 53NETBSD_ATF_TESTS_C+= fpsetmask_test 54NETBSD_ATF_TESTS_C+= fpsetround_test 55NETBSD_ATF_TESTS_C+= ftok_test 56NETBSD_ATF_TESTS_C+= getcwd_test 57NETBSD_ATF_TESTS_C+= getgrent_test 58NETBSD_ATF_TESTS_C+= glob_test 59NETBSD_ATF_TESTS_C+= humanize_number_test 60NETBSD_ATF_TESTS_C+= isnan_test 61NETBSD_ATF_TESTS_C+= nice_test 62NETBSD_ATF_TESTS_C+= pause_test 63NETBSD_ATF_TESTS_C+= raise_test 64NETBSD_ATF_TESTS_C+= realpath_test 65NETBSD_ATF_TESTS_C+= setdomainname_test 66NETBSD_ATF_TESTS_C+= sethostname_test 67NETBSD_ATF_TESTS_C+= sleep_test 68NETBSD_ATF_TESTS_C+= syslog_test 69NETBSD_ATF_TESTS_C+= time_test 70NETBSD_ATF_TESTS_C+= ttyname_test 71NETBSD_ATF_TESTS_C+= vis_test 72 73.include "../Makefile.netbsd-tests" 74 75CFLAGS.getentropy_test+= -I${SRCTOP}/include 76LIBADD.getentropy_test+= c 77LIBADD.humanize_number_test+= util 78 79LIBADD.fpclassify_test+=m 80LIBADD.fpsetround_test+=m 81LIBADD.siginfo_test+= m 82 83LIBADD.nice_test+= pthread 84LIBADD.syslog_test+= pthread 85 86CFLAGS+= -I${.CURDIR} 87 88SRCS.fmtcheck2_test= fmtcheck_test.c 89SRCS.fnmatch2_test= fnmatch_test.c 90 91TEST_METADATA.setdomainname_test+= is_exclusive=true 92TESTS_SUBDIRS= execve 93TESTS_SUBDIRS+= posix_spawn 94 95# The old testcase name 96TEST_FNMATCH= test-fnmatch 97CLEANFILES+= ${GEN_SH_CASE_TESTCASES} 98sh-tests: .PHONY 99.for target in clean obj depend all 100 @cd ${.CURDIR} && ${MAKE} PROG=${TEST_FNMATCH} \ 101 -DNO_SUBDIR ${target} 102.endfor 103 @cd ${.OBJDIR} && ./${TEST_FNMATCH} -s 1 > \ 104 ${SRCTOP}/bin/sh/tests/builtins/case2.0 105 @cd ${.OBJDIR} && ./${TEST_FNMATCH} -s 2 > \ 106 ${SRCTOP}/bin/sh/tests/builtins/case3.0 107 108.include <bsd.test.mk> 109