1 1.68.2.1 thorpej # $NetBSD: Makefile,v 1.68.2.1 2020/12/14 16:01:38 thorpej Exp $ 2 1.1 christos 3 1.1 christos MKMAN= no 4 1.1 christos 5 1.1 christos .include <bsd.own.mk> 6 1.1 christos 7 1.7 jym .include "../arch/Makefile.exec_prot" 8 1.7 jym 9 1.1 christos TESTSDIR= ${TESTSBASE}/lib/libc/sys 10 1.1 christos 11 1.4 jruoho TESTS_C+= t_access 12 1.38 martin TESTS_C+= t_bind 13 1.4 jruoho TESTS_C+= t_chroot 14 1.13 jruoho TESTS_C+= t_clock_gettime 15 1.45 njoly TESTS_C+= t_clock_nanosleep 16 1.2 pgoyette TESTS_C+= t_clone 17 1.19 jruoho TESTS_C+= t_connect 18 1.4 jruoho TESTS_C+= t_dup 19 1.68.2.1 thorpej TESTS_C+= t_eventfd 20 1.51 kamil TESTS_C+= t_fork 21 1.4 jruoho TESTS_C+= t_fsync 22 1.63 thorpej TESTS_C+= t_futex_ops 23 1.63 thorpej TESTS_C+= t_futex_robust 24 1.5 jruoho TESTS_C+= t_getcontext 25 1.4 jruoho TESTS_C+= t_getgroups 26 1.4 jruoho TESTS_C+= t_getitimer 27 1.4 jruoho TESTS_C+= t_getlogin 28 1.4 jruoho TESTS_C+= t_getpid 29 1.67 riastrad TESTS_C+= t_getrandom 30 1.4 jruoho TESTS_C+= t_getrusage 31 1.4 jruoho TESTS_C+= t_getsid 32 1.43 njoly TESTS_C+= t_getsockname 33 1.4 jruoho TESTS_C+= t_gettimeofday 34 1.4 jruoho TESTS_C+= t_issetugid 35 1.20 christos TESTS_C+= t_kevent 36 1.4 jruoho TESTS_C+= t_kill 37 1.4 jruoho TESTS_C+= t_link 38 1.19 jruoho TESTS_C+= t_listen 39 1.21 jruoho TESTS_C+= t_lwp_ctl 40 1.23 martin TESTS_C+= t_lwp_create 41 1.36 christos TESTS_C+= t_minherit 42 1.4 jruoho TESTS_C+= t_mincore 43 1.12 jruoho TESTS_C+= t_mkdir 44 1.4 jruoho TESTS_C+= t_mkfifo 45 1.4 jruoho TESTS_C+= t_mknod 46 1.22 jruoho TESTS_C+= t_mlock 47 1.4 jruoho TESTS_C+= t_mmap 48 1.4 jruoho TESTS_C+= t_mprotect 49 1.18 jruoho TESTS_C+= t_msgctl 50 1.18 jruoho TESTS_C+= t_msgget 51 1.18 jruoho TESTS_C+= t_msgrcv 52 1.18 jruoho TESTS_C+= t_msgsnd 53 1.4 jruoho TESTS_C+= t_msync 54 1.4 jruoho TESTS_C+= t_nanosleep 55 1.11 jruoho TESTS_C+= t_pipe 56 1.17 christos TESTS_C+= t_pipe2 57 1.4 jruoho TESTS_C+= t_poll 58 1.66 kamil TESTS_C+= t_pollts 59 1.37 christos TESTS_C+= t_posix_fallocate 60 1.66 kamil TESTS_C+= t_ppoll 61 1.49 kamil TESTS_C+= t_ptrace 62 1.61 kamil TESTS_C+= t_ptrace_sigchld 63 1.49 kamil TESTS_C+= t_ptrace_wait 64 1.49 kamil TESTS_C+= t_ptrace_wait3 65 1.49 kamil TESTS_C+= t_ptrace_wait4 66 1.49 kamil TESTS_C+= t_ptrace_wait6 67 1.49 kamil TESTS_C+= t_ptrace_waitid 68 1.49 kamil TESTS_C+= t_ptrace_waitpid 69 1.26 christos TESTS_C+= t_recvmmsg 70 1.4 jruoho TESTS_C+= t_revoke 71 1.4 jruoho TESTS_C+= t_select 72 1.53 christos TESTS_C+= t_sendmmsg 73 1.53 christos TESTS_C+= t_sendrecv 74 1.4 jruoho TESTS_C+= t_setrlimit 75 1.4 jruoho TESTS_C+= t_setuid 76 1.16 jruoho TESTS_C+= t_sigaction 77 1.64 ryo TESTS_C+= t_sigaltstack 78 1.3 pgoyette TESTS_C+= t_sigqueue 79 1.32 martin TESTS_C+= t_sigtimedwait 80 1.19 jruoho TESTS_C+= t_socketpair 81 1.28 manu TESTS_C+= t_swapcontext 82 1.4 jruoho TESTS_C+= t_stat 83 1.52 martin TESTS_C+= t_syscall 84 1.4 jruoho TESTS_C+= t_timer_create 85 1.4 jruoho TESTS_C+= t_truncate 86 1.15 jruoho TESTS_C+= t_ucontext 87 1.4 jruoho TESTS_C+= t_umask 88 1.4 jruoho TESTS_C+= t_unlink 89 1.51 kamil TESTS_C+= t_vfork 90 1.42 christos TESTS_C+= t_wait 91 1.44 kamil TESTS_C+= t_wait_noproc 92 1.44 kamil TESTS_C+= t_wait_noproc_wnohang 93 1.14 jruoho TESTS_C+= t_write 94 1.4 jruoho 95 1.62 christos SRCS.t_mprotect= t_mprotect.c ${SRCS_EXEC_PROT} t_mprotect_helper.c 96 1.7 jym 97 1.68.2.1 thorpej LDADD.t_eventfd+= -lpthread 98 1.4 jruoho LDADD.t_getpid+= -lpthread 99 1.27 christos 100 1.61 kamil LDADD.t_ptrace_sigchld+= -pthread -lm 101 1.61 kamil 102 1.57 mgorny LDADD.t_ptrace_wait+= -pthread -lm -lelf 103 1.57 mgorny LDADD.t_ptrace_wait3+= -pthread -lm -lelf 104 1.57 mgorny LDADD.t_ptrace_wait4+= -pthread -lm -lelf 105 1.57 mgorny LDADD.t_ptrace_wait6+= -pthread -lm -lelf 106 1.57 mgorny LDADD.t_ptrace_waitid+= -pthread -lm -lelf 107 1.57 mgorny LDADD.t_ptrace_waitpid+= -pthread -lm -lelf 108 1.54 kamil 109 1.39 matt .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE) 110 1.40 christos CPPFLAGS.t_posix_fadvise.c += -D_KERNTYPES 111 1.27 christos TESTS_C+= t_posix_fadvise 112 1.60 christos LDADD.t_posix_fadvise+= ${LIBRUMPBASE} 113 1.27 christos .endif 114 1.4 jruoho 115 1.63 thorpej CPPFLAGS.t_futex_ops.c += -I${.CURDIR}/../../../../lib 116 1.63 thorpej CPPFLAGS.t_futex_robust.c += -I${.CURDIR}/../../../../lib 117 1.63 thorpej 118 1.49 kamil CPPFLAGS.t_lwp_create.c += -D_KERNTYPES 119 1.65 rin CPPFLAGS.t_ptrace_sigchld.c += -D__TEST_FENV 120 1.55 kamil CPPFLAGS.t_ptrace_wait.c += -D_KERNTYPES -D__TEST_FENV 121 1.55 kamil CPPFLAGS.t_ptrace_wait3.c += -D_KERNTYPES -D__TEST_FENV 122 1.55 kamil CPPFLAGS.t_ptrace_wait4.c += -D_KERNTYPES -D__TEST_FENV 123 1.55 kamil CPPFLAGS.t_ptrace_wait6.c += -D_KERNTYPES -D__TEST_FENV 124 1.55 kamil CPPFLAGS.t_ptrace_waitid.c += -D_KERNTYPES -D__TEST_FENV 125 1.55 kamil CPPFLAGS.t_ptrace_waitpid.c += -D_KERNTYPES -D__TEST_FENV 126 1.50 kamil CPPFLAGS.t_ucontext.c += -D_KERNTYPES 127 1.41 christos 128 1.58 kamil .if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes" 129 1.58 kamil CPPFLAGS.t_ptrace_wait.c += -DENABLE_TESTS 130 1.58 kamil CPPFLAGS.t_ptrace_wait3.c += -DENABLE_TESTS 131 1.58 kamil CPPFLAGS.t_ptrace_wait4.c += -DENABLE_TESTS 132 1.58 kamil CPPFLAGS.t_ptrace_wait6.c += -DENABLE_TESTS 133 1.58 kamil CPPFLAGS.t_ptrace_waitid.c += -DENABLE_TESTS 134 1.58 kamil CPPFLAGS.t_ptrace_waitpid.c += -DENABLE_TESTS 135 1.58 kamil .endif 136 1.58 kamil 137 1.46 christos FILES= truncate_test.root_owned 138 1.47 pgoyette FILESBUILD= yes 139 1.48 martin FILESDIR_truncate_test.root_owned= ${TESTSDIR} 140 1.48 martin FILESMODE_truncate_test.root_owned= 0600 141 1.48 martin FILESOWNER_truncate_test.root_owned= root 142 1.48 martin FILESGRP_truncate_test.root_owned= wheel 143 1.46 christos 144 1.46 christos CLEANFILES= truncate_test.root_owned 145 1.46 christos truncate_test.root_owned: 146 1.46 christos dd if=/dev/null bs=1 count=1 of=${.TARGET} 147 1.46 christos 148 1.4 jruoho WARNS= 4 149 1.1 christos 150 1.68 mrg CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} \ 151 1.68 mrg ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-error=deprecated :} 152 1.68 mrg 153 1.1 christos .include <bsd.test.mk> 154