xref: /freebsd/lib/libc/tests/sys/Makefile (revision 9f4bf11e12c726b478e5fabf039fa1812288be49)
12f121787SEnji Cooper# $FreeBSD$
22f121787SEnji Cooper
3b3ef7604SEnji CooperPACKAGE=			tests
4b3ef7604SEnji Cooper
52f121787SEnji Cooper.include <bsd.own.mk>
62f121787SEnji Cooper
7f443c488SEnji CooperATF_TESTS_C+=			queue_test
8f443c488SEnji Cooper
92f121787SEnji Cooper# TODO: clone, lwp_create, lwp_ctl, posix_fadvise, recvmmsg,
102f121787SEnji Cooper# swapcontext
112f121787SEnji CooperNETBSD_ATF_TESTS_C+=		access_test
12640235e2SEnji CooperNETBSD_ATF_TESTS_C+=		bind_test
132f121787SEnji CooperNETBSD_ATF_TESTS_C+=		chroot_test
142f121787SEnji CooperNETBSD_ATF_TESTS_C+=		clock_gettime_test
153f8455b0SEric van GyzenNETBSD_ATF_TESTS_C+=		clock_nanosleep_test
162f121787SEnji CooperNETBSD_ATF_TESTS_C+=		connect_test
172f121787SEnji CooperNETBSD_ATF_TESTS_C+=		dup_test
182f121787SEnji CooperNETBSD_ATF_TESTS_C+=		fsync_test
192f121787SEnji CooperNETBSD_ATF_TESTS_C+=		getcontext_test
202f121787SEnji CooperNETBSD_ATF_TESTS_C+=		getgroups_test
212f121787SEnji CooperNETBSD_ATF_TESTS_C+=		getitimer_test
222f121787SEnji CooperNETBSD_ATF_TESTS_C+=		getlogin_test
232f121787SEnji CooperNETBSD_ATF_TESTS_C+=		getpid_test
242f121787SEnji CooperNETBSD_ATF_TESTS_C+=		getrusage_test
252f121787SEnji CooperNETBSD_ATF_TESTS_C+=		getsid_test
26640235e2SEnji CooperNETBSD_ATF_TESTS_C+=		getsockname_test
272f121787SEnji CooperNETBSD_ATF_TESTS_C+=		gettimeofday_test
282f121787SEnji CooperNETBSD_ATF_TESTS_C+=		issetugid_test
292f121787SEnji CooperNETBSD_ATF_TESTS_C+=		kevent_test
302f121787SEnji CooperNETBSD_ATF_TESTS_C+=		kill_test
312f121787SEnji CooperNETBSD_ATF_TESTS_C+=		link_test
322f121787SEnji CooperNETBSD_ATF_TESTS_C+=		listen_test
332f121787SEnji CooperNETBSD_ATF_TESTS_C+=		mincore_test
342f121787SEnji CooperNETBSD_ATF_TESTS_C+=		mkdir_test
352f121787SEnji CooperNETBSD_ATF_TESTS_C+=		mkfifo_test
362f121787SEnji CooperNETBSD_ATF_TESTS_C+=		mknod_test
372f121787SEnji CooperNETBSD_ATF_TESTS_C+=		mlock_test
382f121787SEnji CooperNETBSD_ATF_TESTS_C+=		mmap_test
392f121787SEnji CooperNETBSD_ATF_TESTS_C+=		mprotect_test
402f121787SEnji CooperNETBSD_ATF_TESTS_C+=		msgctl_test
412f121787SEnji CooperNETBSD_ATF_TESTS_C+=		msgget_test
422f121787SEnji CooperNETBSD_ATF_TESTS_C+=		msgrcv_test
432f121787SEnji CooperNETBSD_ATF_TESTS_C+=		msgsnd_test
442f121787SEnji CooperNETBSD_ATF_TESTS_C+=		msync_test
452f121787SEnji CooperNETBSD_ATF_TESTS_C+=		nanosleep_test
462f121787SEnji CooperNETBSD_ATF_TESTS_C+=		pipe_test
472f121787SEnji CooperNETBSD_ATF_TESTS_C+=		pipe2_test
482f121787SEnji CooperNETBSD_ATF_TESTS_C+=		poll_test
49640235e2SEnji CooperNETBSD_ATF_TESTS_C+=		posix_fallocate_test
502f121787SEnji CooperNETBSD_ATF_TESTS_C+=		revoke_test
512f121787SEnji CooperNETBSD_ATF_TESTS_C+=		select_test
522f121787SEnji CooperNETBSD_ATF_TESTS_C+=		setrlimit_test
532f121787SEnji CooperNETBSD_ATF_TESTS_C+=		setuid_test
542f121787SEnji CooperNETBSD_ATF_TESTS_C+=		sigaction_test
552f121787SEnji CooperNETBSD_ATF_TESTS_C+=		sigqueue_test
562f121787SEnji CooperNETBSD_ATF_TESTS_C+=		sigtimedwait_test
572f121787SEnji CooperNETBSD_ATF_TESTS_C+=		socketpair_test
582f121787SEnji CooperNETBSD_ATF_TESTS_C+=		stat_test
592f121787SEnji CooperNETBSD_ATF_TESTS_C+=		timer_create_test
602f121787SEnji CooperNETBSD_ATF_TESTS_C+=		truncate_test
612f121787SEnji CooperNETBSD_ATF_TESTS_C+=		ucontext_test
622f121787SEnji CooperNETBSD_ATF_TESTS_C+=		umask_test
632f121787SEnji CooperNETBSD_ATF_TESTS_C+=		unlink_test
64640235e2SEnji CooperNETBSD_ATF_TESTS_C+=		wait_test
65cdebaff8SEnji CooperNETBSD_ATF_TESTS_C+=		wait_noproc_test
66cdebaff8SEnji CooperNETBSD_ATF_TESTS_C+=		wait_noproc_wnohang_test
672f121787SEnji CooperNETBSD_ATF_TESTS_C+=		write_test
682f121787SEnji Cooper
69cdebaff8SEnji CooperCSTD?=				c99
70cdebaff8SEnji Cooper
71eacae6dcSBryan DreweryLIBADD.getpid_test+=		pthread
72eacae6dcSBryan DreweryLIBADD.timer_create_test+=	rt
732f121787SEnji Cooper
742f121787SEnji Cooper.include "../Makefile.netbsd-tests"
752f121787SEnji Cooper
76710542dfSBryan DrewerySRCS.mlock_test+=		mlock_helper.c
77710542dfSBryan DrewerySRCS.setrlimit_test+=		mlock_helper.c
78710542dfSBryan Drewery
792f121787SEnji Cooper.if ${COMPILER_TYPE} == "gcc"
802f121787SEnji CooperWARNS?=			3
812f121787SEnji Cooper.else
822f121787SEnji CooperWARNS?=			4
832f121787SEnji Cooper.endif
842f121787SEnji Cooper
85430f7286SEnji CooperFILESGROUPS+=		truncate_test_FILES
862f121787SEnji Cooper
872f121787SEnji Coopertruncate_test_FILES=	truncate_test.root_owned
882f121787SEnji Coopertruncate_test_FILESDIR=	${TESTSDIR}
892f121787SEnji Coopertruncate_test_FILESMODE= 0600
90*9f4bf11eSBryan Drewerytruncate_test_FILESOWN= root
912f121787SEnji Coopertruncate_test_FILESGRP= wheel
921f4bcc45SGlen Barbertruncate_test_FILESPACKAGE=	${PACKAGE}
932f121787SEnji Cooper
942f121787SEnji CooperCLEANFILES=	truncate_test.root_owned
952f121787SEnji Coopertruncate_test.root_owned:
96796a99fcSEd Maste	dd if=/dev/null bs=1 count=1 of=${.TARGET} status=none
972f121787SEnji Cooper
982f121787SEnji Cooper.include <bsd.test.mk>
99