xref: /freebsd/lib/libc/tests/sys/Makefile (revision edf8578117e8844e02c0121147f45e4609b30680)
1
2PACKAGE=			tests
3
4.include <bsd.own.mk>
5
6.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "riscv"
7ATF_TESTS_C+=			brk_test
8.endif
9ATF_TESTS_C+=			cpuset_test
10ATF_TESTS_C+=			queue_test
11ATF_TESTS_C+=			sendfile_test
12
13# TODO: clone, lwp_create, lwp_ctl, posix_fadvise, recvmmsg,
14# swapcontext
15NETBSD_ATF_TESTS_C+=		access_test
16NETBSD_ATF_TESTS_C+=		bind_test
17NETBSD_ATF_TESTS_C+=		chroot_test
18NETBSD_ATF_TESTS_C+=		clock_gettime_test
19NETBSD_ATF_TESTS_C+=		clock_nanosleep_test
20NETBSD_ATF_TESTS_C+=		connect_test
21NETBSD_ATF_TESTS_C+=		dup_test
22NETBSD_ATF_TESTS_C+=		fsync_test
23NETBSD_ATF_TESTS_C+=		getcontext_test
24NETBSD_ATF_TESTS_C+=		getgroups_test
25NETBSD_ATF_TESTS_C+=		getitimer_test
26NETBSD_ATF_TESTS_C+=		getlogin_test
27NETBSD_ATF_TESTS_C+=		getpid_test
28NETBSD_ATF_TESTS_C+=		getrusage_test
29NETBSD_ATF_TESTS_C+=		getsid_test
30NETBSD_ATF_TESTS_C+=		getsockname_test
31NETBSD_ATF_TESTS_C+=		gettimeofday_test
32NETBSD_ATF_TESTS_C+=		issetugid_test
33NETBSD_ATF_TESTS_C+=		kevent_test
34NETBSD_ATF_TESTS_C+=		kill_test
35NETBSD_ATF_TESTS_C+=		link_test
36NETBSD_ATF_TESTS_C+=		listen_test
37NETBSD_ATF_TESTS_C+=		mincore_test
38NETBSD_ATF_TESTS_C+=		mkdir_test
39NETBSD_ATF_TESTS_C+=		mkfifo_test
40NETBSD_ATF_TESTS_C+=		mknod_test
41NETBSD_ATF_TESTS_C+=		mlock_test
42NETBSD_ATF_TESTS_C+=		mmap_test
43NETBSD_ATF_TESTS_C+=		mprotect_test
44NETBSD_ATF_TESTS_C+=		msgctl_test
45NETBSD_ATF_TESTS_C+=		msgget_test
46NETBSD_ATF_TESTS_C+=		msgrcv_test
47NETBSD_ATF_TESTS_C+=		msgsnd_test
48NETBSD_ATF_TESTS_C+=		msync_test
49NETBSD_ATF_TESTS_C+=		nanosleep_test
50NETBSD_ATF_TESTS_C+=		pipe_test
51NETBSD_ATF_TESTS_C+=		pipe2_test
52NETBSD_ATF_TESTS_C+=		poll_test
53NETBSD_ATF_TESTS_C+=		posix_fallocate_test
54NETBSD_ATF_TESTS_C+=		revoke_test
55NETBSD_ATF_TESTS_C+=		select_test
56NETBSD_ATF_TESTS_C+=		setrlimit_test
57NETBSD_ATF_TESTS_C+=		setuid_test
58NETBSD_ATF_TESTS_C+=		sigaction_test
59NETBSD_ATF_TESTS_C+=		sigqueue_test
60NETBSD_ATF_TESTS_C+=		sigtimedwait_test
61NETBSD_ATF_TESTS_C+=		socketpair_test
62NETBSD_ATF_TESTS_C+=		stat_test
63NETBSD_ATF_TESTS_C+=		timer_create_test
64NETBSD_ATF_TESTS_C+=		truncate_test
65NETBSD_ATF_TESTS_C+=		ucontext_test
66NETBSD_ATF_TESTS_C+=		umask_test
67NETBSD_ATF_TESTS_C+=		unlink_test
68NETBSD_ATF_TESTS_C+=		wait_test
69NETBSD_ATF_TESTS_C+=		wait_noproc_test
70NETBSD_ATF_TESTS_C+=		wait_noproc_wnohang_test
71NETBSD_ATF_TESTS_C+=		write_test
72
73LIBADD.getpid_test+=		pthread
74LIBADD.timer_create_test+=	rt
75
76# Message queue IPC tests need to be executed serially since they variously
77# use global keys and exhaust global IPC limits.
78TEST_METADATA.msgctl_test+=	is_exclusive="true"
79TEST_METADATA.msgget_test+=	is_exclusive="true"
80TEST_METADATA.msgsnd_test+=	is_exclusive="true"
81TEST_METADATA.msgrcv_test+=	is_exclusive="true"
82
83.include "../Makefile.netbsd-tests"
84
85SRCS.mlock_test+=		mlock_helper.c
86SRCS.setrlimit_test+=		mlock_helper.c
87
88FILESGROUPS+=		truncate_test_FILES
89
90truncate_test_FILES=	truncate_test.root_owned
91truncate_test_FILESDIR=	${TESTSDIR}
92truncate_test_FILESMODE= 0600
93truncate_test_FILESOWN= root
94truncate_test_FILESGRP= wheel
95truncate_test_FILESPACKAGE=	${PACKAGE}
96
97CLEANFILES=	truncate_test.root_owned
98# The dd status=none option is non-standard. Only use it when this test succeeds
99# rather than require dd to be a bootstrap tool.
100DD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true
101DD=dd ${DD_NOSTATUS}
102truncate_test.root_owned:
103	${DD} if=/dev/null bs=1 count=1 of=${.TARGET}
104
105.include <bsd.test.mk>
106