1b3ef7604SEnji CooperPACKAGE= tests 2b3ef7604SEnji Cooper 32f121787SEnji Cooper.include <bsd.own.mk> 42f121787SEnji Cooper 5ea16e3e1SMark Johnston.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "riscv" 69f9c9b22SMark JohnstonATF_TESTS_C+= brk_test 7ea16e3e1SMark Johnston.endif 81fc42128SKyle EvansATF_TESTS_C+= cpuset_test 9*32fdcff8SKonstantin BelousovATF_TESTS_C+= errno_test 10f443c488SEnji CooperATF_TESTS_C+= queue_test 11b29e1426SEnji CooperATF_TESTS_C+= sendfile_test 12f443c488SEnji Cooper 132f121787SEnji Cooper# TODO: clone, lwp_create, lwp_ctl, posix_fadvise, recvmmsg, 142f121787SEnji Cooper# swapcontext 152f121787SEnji CooperNETBSD_ATF_TESTS_C+= access_test 16640235e2SEnji CooperNETBSD_ATF_TESTS_C+= bind_test 172f121787SEnji CooperNETBSD_ATF_TESTS_C+= chroot_test 182f121787SEnji CooperNETBSD_ATF_TESTS_C+= clock_gettime_test 193f8455b0SEric van GyzenNETBSD_ATF_TESTS_C+= clock_nanosleep_test 202f121787SEnji CooperNETBSD_ATF_TESTS_C+= connect_test 212f121787SEnji CooperNETBSD_ATF_TESTS_C+= dup_test 222f121787SEnji CooperNETBSD_ATF_TESTS_C+= fsync_test 232f121787SEnji CooperNETBSD_ATF_TESTS_C+= getcontext_test 242f121787SEnji CooperNETBSD_ATF_TESTS_C+= getgroups_test 252f121787SEnji CooperNETBSD_ATF_TESTS_C+= getitimer_test 262f121787SEnji CooperNETBSD_ATF_TESTS_C+= getlogin_test 272f121787SEnji CooperNETBSD_ATF_TESTS_C+= getpid_test 282f121787SEnji CooperNETBSD_ATF_TESTS_C+= getrusage_test 292f121787SEnji CooperNETBSD_ATF_TESTS_C+= getsid_test 30640235e2SEnji CooperNETBSD_ATF_TESTS_C+= getsockname_test 312f121787SEnji CooperNETBSD_ATF_TESTS_C+= gettimeofday_test 322f121787SEnji CooperNETBSD_ATF_TESTS_C+= issetugid_test 332f121787SEnji CooperNETBSD_ATF_TESTS_C+= kevent_test 342f121787SEnji CooperNETBSD_ATF_TESTS_C+= kill_test 352f121787SEnji CooperNETBSD_ATF_TESTS_C+= link_test 362f121787SEnji CooperNETBSD_ATF_TESTS_C+= listen_test 372f121787SEnji CooperNETBSD_ATF_TESTS_C+= mincore_test 382f121787SEnji CooperNETBSD_ATF_TESTS_C+= mkdir_test 392f121787SEnji CooperNETBSD_ATF_TESTS_C+= mkfifo_test 402f121787SEnji CooperNETBSD_ATF_TESTS_C+= mknod_test 412f121787SEnji CooperNETBSD_ATF_TESTS_C+= mlock_test 422f121787SEnji CooperNETBSD_ATF_TESTS_C+= mmap_test 432f121787SEnji CooperNETBSD_ATF_TESTS_C+= mprotect_test 442f121787SEnji CooperNETBSD_ATF_TESTS_C+= msgctl_test 452f121787SEnji CooperNETBSD_ATF_TESTS_C+= msgget_test 462f121787SEnji CooperNETBSD_ATF_TESTS_C+= msgrcv_test 472f121787SEnji CooperNETBSD_ATF_TESTS_C+= msgsnd_test 482f121787SEnji CooperNETBSD_ATF_TESTS_C+= msync_test 492f121787SEnji CooperNETBSD_ATF_TESTS_C+= nanosleep_test 502f121787SEnji CooperNETBSD_ATF_TESTS_C+= pipe_test 512f121787SEnji CooperNETBSD_ATF_TESTS_C+= pipe2_test 522f121787SEnji CooperNETBSD_ATF_TESTS_C+= poll_test 53640235e2SEnji CooperNETBSD_ATF_TESTS_C+= posix_fallocate_test 542f121787SEnji CooperNETBSD_ATF_TESTS_C+= revoke_test 552f121787SEnji CooperNETBSD_ATF_TESTS_C+= select_test 562f121787SEnji CooperNETBSD_ATF_TESTS_C+= setrlimit_test 572f121787SEnji CooperNETBSD_ATF_TESTS_C+= setuid_test 582f121787SEnji CooperNETBSD_ATF_TESTS_C+= sigaction_test 592f121787SEnji CooperNETBSD_ATF_TESTS_C+= sigqueue_test 602f121787SEnji CooperNETBSD_ATF_TESTS_C+= sigtimedwait_test 612f121787SEnji CooperNETBSD_ATF_TESTS_C+= socketpair_test 622f121787SEnji CooperNETBSD_ATF_TESTS_C+= stat_test 632f121787SEnji CooperNETBSD_ATF_TESTS_C+= timer_create_test 642f121787SEnji CooperNETBSD_ATF_TESTS_C+= truncate_test 652f121787SEnji CooperNETBSD_ATF_TESTS_C+= ucontext_test 662f121787SEnji CooperNETBSD_ATF_TESTS_C+= umask_test 672f121787SEnji CooperNETBSD_ATF_TESTS_C+= unlink_test 68640235e2SEnji CooperNETBSD_ATF_TESTS_C+= wait_test 69cdebaff8SEnji CooperNETBSD_ATF_TESTS_C+= wait_noproc_test 70cdebaff8SEnji CooperNETBSD_ATF_TESTS_C+= wait_noproc_wnohang_test 712f121787SEnji CooperNETBSD_ATF_TESTS_C+= write_test 722f121787SEnji Cooper 73eacae6dcSBryan DreweryLIBADD.getpid_test+= pthread 74eacae6dcSBryan DreweryLIBADD.timer_create_test+= rt 752f121787SEnji Cooper 76e1ccf64bSMark Johnston# Message queue IPC tests need to be executed serially since they variously 77e1ccf64bSMark Johnston# use global keys and exhaust global IPC limits. 78e1ccf64bSMark JohnstonTEST_METADATA.msgctl_test+= is_exclusive="true" 79e1ccf64bSMark JohnstonTEST_METADATA.msgget_test+= is_exclusive="true" 80e1ccf64bSMark JohnstonTEST_METADATA.msgsnd_test+= is_exclusive="true" 81e1ccf64bSMark JohnstonTEST_METADATA.msgrcv_test+= is_exclusive="true" 82e1ccf64bSMark Johnston 832f121787SEnji Cooper.include "../Makefile.netbsd-tests" 842f121787SEnji Cooper 85710542dfSBryan DrewerySRCS.mlock_test+= mlock_helper.c 86710542dfSBryan DrewerySRCS.setrlimit_test+= mlock_helper.c 87710542dfSBryan Drewery 88430f7286SEnji CooperFILESGROUPS+= truncate_test_FILES 892f121787SEnji Cooper 902f121787SEnji Coopertruncate_test_FILES= truncate_test.root_owned 912f121787SEnji Coopertruncate_test_FILESDIR= ${TESTSDIR} 922f121787SEnji Coopertruncate_test_FILESMODE= 0600 939f4bf11eSBryan Drewerytruncate_test_FILESOWN= root 942f121787SEnji Coopertruncate_test_FILESGRP= wheel 951f4bcc45SGlen Barbertruncate_test_FILESPACKAGE= ${PACKAGE} 962f121787SEnji Cooper 972f121787SEnji CooperCLEANFILES= truncate_test.root_owned 98652f26f9SAlex Richardson# The dd status=none option is non-standard. Only use it when this test succeeds 99652f26f9SAlex Richardson# rather than require dd to be a bootstrap tool. 100652f26f9SAlex RichardsonDD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true 101652f26f9SAlex RichardsonDD=dd ${DD_NOSTATUS} 1022f121787SEnji Coopertruncate_test.root_owned: 103652f26f9SAlex Richardson ${DD} if=/dev/null bs=1 count=1 of=${.TARGET} 1042f121787SEnji Cooper 1052f121787SEnji Cooper.include <bsd.test.mk> 106