Home | History | Annotate | Line # | Download | only in sys
Makefile revision 1.63
      1  1.63   thorpej # $NetBSD: Makefile,v 1.63 2020/04/26 18:53:33 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.51     kamil TESTS_C+=		t_fork
     20   1.4    jruoho TESTS_C+=		t_fsync
     21  1.63   thorpej TESTS_C+=		t_futex_ops
     22  1.63   thorpej TESTS_C+=		t_futex_robust
     23   1.5    jruoho TESTS_C+=		t_getcontext
     24   1.4    jruoho TESTS_C+=		t_getgroups
     25   1.4    jruoho TESTS_C+=		t_getitimer
     26   1.4    jruoho TESTS_C+=		t_getlogin
     27   1.4    jruoho TESTS_C+=		t_getpid
     28   1.4    jruoho TESTS_C+=		t_getrusage
     29   1.4    jruoho TESTS_C+=		t_getsid
     30  1.43     njoly TESTS_C+=		t_getsockname
     31   1.4    jruoho TESTS_C+=		t_gettimeofday
     32   1.4    jruoho TESTS_C+=		t_issetugid
     33  1.20  christos TESTS_C+=		t_kevent
     34   1.4    jruoho TESTS_C+=		t_kill
     35   1.4    jruoho TESTS_C+=		t_link
     36  1.19    jruoho TESTS_C+=		t_listen
     37  1.21    jruoho TESTS_C+=		t_lwp_ctl
     38  1.23    martin TESTS_C+=		t_lwp_create
     39  1.36  christos TESTS_C+=		t_minherit
     40   1.4    jruoho TESTS_C+=		t_mincore
     41  1.12    jruoho TESTS_C+=		t_mkdir
     42   1.4    jruoho TESTS_C+=		t_mkfifo
     43   1.4    jruoho TESTS_C+=		t_mknod
     44  1.22    jruoho TESTS_C+=		t_mlock
     45   1.4    jruoho TESTS_C+=		t_mmap
     46   1.4    jruoho TESTS_C+=		t_mprotect
     47  1.18    jruoho TESTS_C+=		t_msgctl
     48  1.18    jruoho TESTS_C+=		t_msgget
     49  1.18    jruoho TESTS_C+=		t_msgrcv
     50  1.18    jruoho TESTS_C+=		t_msgsnd
     51   1.4    jruoho TESTS_C+=		t_msync
     52   1.4    jruoho TESTS_C+=		t_nanosleep
     53  1.11    jruoho TESTS_C+=		t_pipe
     54  1.17  christos TESTS_C+=		t_pipe2
     55   1.4    jruoho TESTS_C+=		t_poll
     56  1.37  christos TESTS_C+=		t_posix_fallocate
     57  1.49     kamil TESTS_C+=		t_ptrace
     58  1.61     kamil TESTS_C+=		t_ptrace_sigchld
     59  1.49     kamil TESTS_C+=		t_ptrace_wait
     60  1.49     kamil TESTS_C+=		t_ptrace_wait3
     61  1.49     kamil TESTS_C+=		t_ptrace_wait4
     62  1.49     kamil TESTS_C+=		t_ptrace_wait6
     63  1.49     kamil TESTS_C+=		t_ptrace_waitid
     64  1.49     kamil TESTS_C+=		t_ptrace_waitpid
     65  1.26  christos TESTS_C+=		t_recvmmsg
     66   1.4    jruoho TESTS_C+=		t_revoke
     67   1.4    jruoho TESTS_C+=		t_select
     68  1.53  christos TESTS_C+=		t_sendmmsg
     69  1.53  christos TESTS_C+=		t_sendrecv
     70   1.4    jruoho TESTS_C+=		t_setrlimit
     71   1.4    jruoho TESTS_C+=		t_setuid
     72  1.16    jruoho TESTS_C+=		t_sigaction
     73   1.3  pgoyette TESTS_C+=		t_sigqueue
     74  1.32    martin TESTS_C+=		t_sigtimedwait
     75  1.19    jruoho TESTS_C+=		t_socketpair
     76  1.28      manu TESTS_C+=		t_swapcontext
     77   1.4    jruoho TESTS_C+=		t_stat
     78  1.52    martin TESTS_C+=		t_syscall
     79   1.4    jruoho TESTS_C+=		t_timer_create
     80   1.4    jruoho TESTS_C+=		t_truncate
     81  1.15    jruoho TESTS_C+=		t_ucontext
     82   1.4    jruoho TESTS_C+=		t_umask
     83   1.4    jruoho TESTS_C+=		t_unlink
     84  1.51     kamil TESTS_C+=		t_vfork
     85  1.42  christos TESTS_C+=		t_wait
     86  1.44     kamil TESTS_C+=		t_wait_noproc
     87  1.44     kamil TESTS_C+=		t_wait_noproc_wnohang
     88  1.14    jruoho TESTS_C+=		t_write
     89   1.4    jruoho 
     90  1.62  christos SRCS.t_mprotect=	t_mprotect.c ${SRCS_EXEC_PROT} t_mprotect_helper.c
     91   1.7       jym 
     92   1.4    jruoho LDADD.t_getpid+=        -lpthread
     93  1.27  christos 
     94  1.61     kamil LDADD.t_ptrace_sigchld+=	-pthread -lm
     95  1.61     kamil 
     96  1.57    mgorny LDADD.t_ptrace_wait+=		-pthread -lm -lelf
     97  1.57    mgorny LDADD.t_ptrace_wait3+=		-pthread -lm -lelf
     98  1.57    mgorny LDADD.t_ptrace_wait4+=		-pthread -lm -lelf
     99  1.57    mgorny LDADD.t_ptrace_wait6+=		-pthread -lm -lelf
    100  1.57    mgorny LDADD.t_ptrace_waitid+=		-pthread -lm -lelf
    101  1.57    mgorny LDADD.t_ptrace_waitpid+=	-pthread -lm -lelf
    102  1.54     kamil 
    103  1.39      matt .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
    104  1.40  christos CPPFLAGS.t_posix_fadvise.c += -D_KERNTYPES
    105  1.27  christos TESTS_C+=		t_posix_fadvise
    106  1.60  christos LDADD.t_posix_fadvise+= ${LIBRUMPBASE}
    107  1.27  christos .endif
    108   1.4    jruoho 
    109  1.63   thorpej CPPFLAGS.t_futex_ops.c		+= -I${.CURDIR}/../../../../lib
    110  1.63   thorpej CPPFLAGS.t_futex_robust.c	+= -I${.CURDIR}/../../../../lib
    111  1.63   thorpej 
    112  1.49     kamil CPPFLAGS.t_lwp_create.c		+= -D_KERNTYPES
    113  1.55     kamil CPPFLAGS.t_ptrace_wait.c	+= -D_KERNTYPES -D__TEST_FENV
    114  1.55     kamil CPPFLAGS.t_ptrace_wait3.c	+= -D_KERNTYPES -D__TEST_FENV
    115  1.55     kamil CPPFLAGS.t_ptrace_wait4.c	+= -D_KERNTYPES -D__TEST_FENV
    116  1.55     kamil CPPFLAGS.t_ptrace_wait6.c	+= -D_KERNTYPES -D__TEST_FENV
    117  1.55     kamil CPPFLAGS.t_ptrace_waitid.c	+= -D_KERNTYPES -D__TEST_FENV
    118  1.55     kamil CPPFLAGS.t_ptrace_waitpid.c	+= -D_KERNTYPES -D__TEST_FENV
    119  1.50     kamil CPPFLAGS.t_ucontext.c		+= -D_KERNTYPES
    120  1.41  christos 
    121  1.58     kamil .if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes"
    122  1.58     kamil CPPFLAGS.t_ptrace_wait.c	+= -DENABLE_TESTS
    123  1.58     kamil CPPFLAGS.t_ptrace_wait3.c	+= -DENABLE_TESTS
    124  1.58     kamil CPPFLAGS.t_ptrace_wait4.c	+= -DENABLE_TESTS
    125  1.58     kamil CPPFLAGS.t_ptrace_wait6.c	+= -DENABLE_TESTS
    126  1.58     kamil CPPFLAGS.t_ptrace_waitid.c	+= -DENABLE_TESTS
    127  1.58     kamil CPPFLAGS.t_ptrace_waitpid.c	+= -DENABLE_TESTS
    128  1.58     kamil .endif
    129  1.58     kamil 
    130  1.46  christos FILES=		truncate_test.root_owned
    131  1.47  pgoyette FILESBUILD=	yes
    132  1.48    martin FILESDIR_truncate_test.root_owned=	${TESTSDIR}
    133  1.48    martin FILESMODE_truncate_test.root_owned=	0600
    134  1.48    martin FILESOWNER_truncate_test.root_owned=	root
    135  1.48    martin FILESGRP_truncate_test.root_owned=	wheel
    136  1.46  christos 
    137  1.46  christos CLEANFILES=   truncate_test.root_owned
    138  1.46  christos truncate_test.root_owned:
    139  1.46  christos 	dd if=/dev/null bs=1 count=1 of=${.TARGET}
    140  1.46  christos 
    141   1.4    jruoho WARNS=			4
    142   1.1  christos 
    143   1.1  christos .include <bsd.test.mk>
    144