summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests/sys/Makefile
blob: 89431bced322c564769368f27a44e2bb34c1b2de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# $FreeBSD$

.include <bsd.own.mk>

TESTSDIR=		${TESTSBASE}/lib/libc/sys

# TODO: clone, lwp_create, lwp_ctl, posix_fadvise, recvmmsg,
# swapcontext
NETBSD_ATF_TESTS_C+=		access_test
NETBSD_ATF_TESTS_C+=		chroot_test
NETBSD_ATF_TESTS_C+=		clock_gettime_test
NETBSD_ATF_TESTS_C+=		connect_test
NETBSD_ATF_TESTS_C+=		dup_test
NETBSD_ATF_TESTS_C+=		fsync_test
NETBSD_ATF_TESTS_C+=		getcontext_test
NETBSD_ATF_TESTS_C+=		getgroups_test
NETBSD_ATF_TESTS_C+=		getitimer_test
NETBSD_ATF_TESTS_C+=		getlogin_test
NETBSD_ATF_TESTS_C+=		getpid_test
NETBSD_ATF_TESTS_C+=		getrusage_test
NETBSD_ATF_TESTS_C+=		getsid_test
NETBSD_ATF_TESTS_C+=		gettimeofday_test
NETBSD_ATF_TESTS_C+=		issetugid_test
NETBSD_ATF_TESTS_C+=		kevent_test
NETBSD_ATF_TESTS_C+=		kill_test
NETBSD_ATF_TESTS_C+=		link_test
NETBSD_ATF_TESTS_C+=		listen_test
NETBSD_ATF_TESTS_C+=		mincore_test
NETBSD_ATF_TESTS_C+=		mkdir_test
NETBSD_ATF_TESTS_C+=		mkfifo_test
NETBSD_ATF_TESTS_C+=		mknod_test
NETBSD_ATF_TESTS_C+=		mlock_test
NETBSD_ATF_TESTS_C+=		mmap_test
NETBSD_ATF_TESTS_C+=		mprotect_test
NETBSD_ATF_TESTS_C+=		msgctl_test
NETBSD_ATF_TESTS_C+=		msgget_test
NETBSD_ATF_TESTS_C+=		msgrcv_test
NETBSD_ATF_TESTS_C+=		msgsnd_test
NETBSD_ATF_TESTS_C+=		msync_test
NETBSD_ATF_TESTS_C+=		nanosleep_test
NETBSD_ATF_TESTS_C+=		pipe_test
NETBSD_ATF_TESTS_C+=		pipe2_test
NETBSD_ATF_TESTS_C+=		poll_test
NETBSD_ATF_TESTS_C+=		revoke_test
NETBSD_ATF_TESTS_C+=		select_test
NETBSD_ATF_TESTS_C+=		setrlimit_test
NETBSD_ATF_TESTS_C+=		setuid_test
NETBSD_ATF_TESTS_C+=		sigaction_test
NETBSD_ATF_TESTS_C+=		sigqueue_test
NETBSD_ATF_TESTS_C+=		sigtimedwait_test
NETBSD_ATF_TESTS_C+=		socketpair_test
NETBSD_ATF_TESTS_C+=		stat_test
NETBSD_ATF_TESTS_C+=		timer_create_test
NETBSD_ATF_TESTS_C+=		truncate_test
NETBSD_ATF_TESTS_C+=		ucontext_test
NETBSD_ATF_TESTS_C+=		umask_test
NETBSD_ATF_TESTS_C+=		unlink_test
NETBSD_ATF_TESTS_C+=		write_test

DPADD.getpid_test+=	${LIBPTHREAD}
LDADD.getpid_test+=	-lpthread
DPADD.timer_create_test+=	${LIBRT}
LDADD.timer_create_test+=	-lrt

.include "../Makefile.netbsd-tests"

.if ${COMPILER_TYPE} == "gcc"
WARNS?=			3
.else
WARNS?=			4
.endif

FILESGROUPS=		FILES truncate_test_FILES

truncate_test_FILES=	truncate_test.root_owned
truncate_test_FILESDIR=	${TESTSDIR}
truncate_test_FILESMODE= 0600
truncate_test_FILESOWNER= root
truncate_test_FILESGRP= wheel

CLEANFILES=	truncate_test.root_owned
truncate_test.root_owned:
	dd if=/dev/null bs=1 count=1 of=${.TARGET}

.include <bsd.test.mk>
OpenPOWER on IntegriCloud