xref: /freebsd/lib/libc/tests/sys/Makefile (revision 249d5c7acc24cfb69d887afbb3237d8e5902c16d)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5TESTSDIR=		${TESTSBASE}/lib/libc/sys
6
7# TODO: clone, lwp_create, lwp_ctl, posix_fadvise, recvmmsg,
8# swapcontext
9NETBSD_ATF_TESTS_C+=		access_test
10NETBSD_ATF_TESTS_C+=		chroot_test
11NETBSD_ATF_TESTS_C+=		clock_gettime_test
12NETBSD_ATF_TESTS_C+=		connect_test
13NETBSD_ATF_TESTS_C+=		dup_test
14NETBSD_ATF_TESTS_C+=		fsync_test
15NETBSD_ATF_TESTS_C+=		getcontext_test
16NETBSD_ATF_TESTS_C+=		getgroups_test
17NETBSD_ATF_TESTS_C+=		getitimer_test
18NETBSD_ATF_TESTS_C+=		getlogin_test
19NETBSD_ATF_TESTS_C+=		getpid_test
20NETBSD_ATF_TESTS_C+=		getrusage_test
21NETBSD_ATF_TESTS_C+=		getsid_test
22NETBSD_ATF_TESTS_C+=		gettimeofday_test
23NETBSD_ATF_TESTS_C+=		issetugid_test
24NETBSD_ATF_TESTS_C+=		kevent_test
25NETBSD_ATF_TESTS_C+=		kill_test
26NETBSD_ATF_TESTS_C+=		link_test
27NETBSD_ATF_TESTS_C+=		listen_test
28NETBSD_ATF_TESTS_C+=		mincore_test
29NETBSD_ATF_TESTS_C+=		mkdir_test
30NETBSD_ATF_TESTS_C+=		mkfifo_test
31NETBSD_ATF_TESTS_C+=		mknod_test
32NETBSD_ATF_TESTS_C+=		mlock_test
33NETBSD_ATF_TESTS_C+=		mmap_test
34NETBSD_ATF_TESTS_C+=		mprotect_test
35NETBSD_ATF_TESTS_C+=		msgctl_test
36NETBSD_ATF_TESTS_C+=		msgget_test
37NETBSD_ATF_TESTS_C+=		msgrcv_test
38NETBSD_ATF_TESTS_C+=		msgsnd_test
39NETBSD_ATF_TESTS_C+=		msync_test
40NETBSD_ATF_TESTS_C+=		nanosleep_test
41NETBSD_ATF_TESTS_C+=		pipe_test
42NETBSD_ATF_TESTS_C+=		pipe2_test
43NETBSD_ATF_TESTS_C+=		poll_test
44NETBSD_ATF_TESTS_C+=		revoke_test
45NETBSD_ATF_TESTS_C+=		select_test
46NETBSD_ATF_TESTS_C+=		setrlimit_test
47NETBSD_ATF_TESTS_C+=		setuid_test
48NETBSD_ATF_TESTS_C+=		sigaction_test
49NETBSD_ATF_TESTS_C+=		sigqueue_test
50NETBSD_ATF_TESTS_C+=		sigtimedwait_test
51NETBSD_ATF_TESTS_C+=		socketpair_test
52NETBSD_ATF_TESTS_C+=		stat_test
53NETBSD_ATF_TESTS_C+=		timer_create_test
54NETBSD_ATF_TESTS_C+=		truncate_test
55NETBSD_ATF_TESTS_C+=		ucontext_test
56NETBSD_ATF_TESTS_C+=		umask_test
57NETBSD_ATF_TESTS_C+=		unlink_test
58NETBSD_ATF_TESTS_C+=		write_test
59
60DPADD.getpid_test+=	${LIBPTHREAD}
61LDADD.getpid_test+=	-lpthread
62DPADD.timer_create_test+=	${LIBRT}
63LDADD.timer_create_test+=	-lrt
64
65.include "../Makefile.netbsd-tests"
66
67.if ${COMPILER_TYPE} == "gcc"
68WARNS?=			3
69.else
70WARNS?=			4
71.endif
72
73FILESGROUPS=		FILES truncate_test_FILES
74
75truncate_test_FILES=	truncate_test.root_owned
76truncate_test_FILESDIR=	${TESTSDIR}
77truncate_test_FILESMODE= 0600
78truncate_test_FILESOWNER= root
79truncate_test_FILESGRP= wheel
80
81CLEANFILES=	truncate_test.root_owned
82truncate_test.root_owned:
83	dd if=/dev/null bs=1 count=1 of=${.TARGET}
84
85.include <bsd.test.mk>
86