Home | History | Annotate | Line # | Download | only in kernel
Makefile revision 1.86
      1  1.86  riastrad # $NetBSD: Makefile,v 1.86 2025/02/28 16:08:19 riastradh Exp $
      2   1.1      jmmv 
      3   1.1      jmmv NOMAN=		# defined
      4   1.1      jmmv 
      5   1.1      jmmv .include <bsd.own.mk>
      6   1.1      jmmv 
      7   1.1      jmmv TESTSDIR=	${TESTSBASE}/kernel
      8   1.1      jmmv 
      9  1.43     kamil TESTS_SUBDIRS+=	kqueue
     10  1.83  riastrad TESTS_C+=	t_cloexec
     11  1.83  riastrad #TESTS_C+=	t_epoll
     12  1.85  riastrad TESTS_C+=	t_execregs
     13  1.73  christos TESTS_C+=	t_fcntl
     14  1.77       rjs .if ${MKRUMP} != "no"
     15  1.76  riastrad TESTS_C+=	t_fdrestart
     16  1.77       rjs .endif
     17  1.80  christos TESTS_C+=	t_kauth_pr_47598
     18  1.80  christos TESTS_C+=	t_ksem
     19  1.62  christos TESTS_C+=	t_lock
     20  1.31  pgoyette TESTS_C+=	t_lockf
     21  1.74  christos TESTS_C+=	t_memfd_create
     22  1.27  pgoyette TESTS_C+=	t_mqueue
     23  1.82       kre TESTS_C+=	t_nanosleep
     24  1.80  christos TESTS_C+=	t_open_pr_57260
     25  1.59     kamil TESTS_C+=	t_proccwd
     26  1.80  christos TESTS_C+=	t_pty
     27  1.80  christos TESTS_C+=	t_semtimedop
     28  1.78       pho TESTS_C+=	t_signal_and_sp
     29  1.28  pgoyette TESTS_C+=	t_sysv
     30  1.22  christos TESTS_C+=	t_subr_prf
     31  1.35      gson TESTS_C+=	t_sysctl
     32  1.49  christos TESTS_C+=	t_timeleft
     33  1.79       bad .if ${MKRUMP} != "no"
     34  1.79       bad TESTS_C+=	t_unmount
     35  1.79       bad .endif
     36  1.53     kamil TESTS_C+=	t_zombie
     37   1.1      jmmv 
     38  1.81   msaitoh TESTS_SH=	t_fexecve
     39  1.80  christos TESTS_SH+=	t_fpufork
     40  1.47  christos TESTS_SH+=	t_interp
     41  1.68    jruoho TESTS_SH+=	t_magic_symlinks
     42  1.67    jruoho TESTS_SH+=	t_nointerpreter
     43  1.60  christos TESTS_SH+=	t_origin
     44  1.50  christos TESTS_SH+=	t_procpath
     45  1.80  christos TESTS_SH+=	t_ps_strings
     46  1.70    martin .if ${MKRUMP} != "no"
     47  1.69  yamaguch TESTS_SH+=	t_simplehook
     48  1.70    martin .endif
     49  1.80  christos TESTS_SH+=	t_trapsignal
     50  1.80  christos TESTS_SH+=	t_umountstress
     51  1.81   msaitoh TESTS_SH+=	t_umount
     52  1.10  pgoyette 
     53  1.10  pgoyette BINDIR=		${TESTSDIR}
     54  1.83  riastrad PROGS+=		h_cloexec
     55  1.85  riastrad PROGS+=		h_execregs
     56  1.83  riastrad PROGS+=		h_fexecve
     57  1.80  christos PROGS+=		h_fpufork
     58  1.80  christos PROGS+=		h_getprocpath
     59  1.63  christos PROGS+=		h_ps_strings1
     60  1.10  pgoyette PROGS+=		h_ps_strings2
     61  1.48  christos PROGS+=		h_segv
     62  1.52  nakayama 
     63  1.52  nakayama SCRIPTSDIR=	${TESTSDIR}
     64  1.52  nakayama SCRIPTS=	h_interpreter.sh
     65   1.1      jmmv 
     66  1.76  riastrad LDADD.t_fdrestart+=	-lpthread
     67  1.76  riastrad LDADD.t_fdrestart+=	-lrumpnet_local
     68  1.76  riastrad LDADD.t_fdrestart+=	-lrumpnet_net
     69  1.76  riastrad LDADD.t_fdrestart+=	-lrumpnet_netinet
     70  1.76  riastrad LDADD.t_fdrestart+=	-lrumpnet
     71  1.76  riastrad LDADD.t_fdrestart+=	${LIBRUMPBASE}
     72  1.76  riastrad 
     73  1.29  nakayama LDADD.t_mqueue+= -lrt
     74  1.29  nakayama 
     75  1.79       bad LDADD.t_unmount+=	-lrumpfs_tmpfs
     76  1.79       bad LDADD.t_unmount+=	${LIBRUMPBASE}
     77  1.79       bad 
     78  1.26  christos 
     79  1.37      matt .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
     80  1.26  christos TESTS_SUBDIRS+=	tty
     81  1.26  christos 
     82  1.26  christos TESTS_C+=	t_extattrctl
     83  1.26  christos TESTS_C+=	t_filedesc
     84  1.26  christos TESTS_C+=	t_rnd
     85  1.66  christos LDADD.t_extattrctl+= ${LIBRUMPBASE}
     86  1.26  christos LDADD.t_filedesc+=  ${LDADD.t_rnd}
     87  1.66  christos LDADD.t_rnd+=  -lrumpdev_rnd -lrumpdev ${LIBRUMPBASE}
     88  1.26  christos 
     89  1.26  christos .endif
     90  1.26  christos 
     91  1.51  christos LDADD.t_timeleft+=	-lpthread
     92  1.51  christos 
     93  1.44     kamil CPPFLAGS+=	-D_KERNTYPES
     94  1.79       bad CPPFLAGS.t_unmount.c+=	-D_KMEMUSER -D__EXPOSE_MOUNT
     95   1.2     pooka 
     96  1.78       pho ARCH_INCS_DIR:=	${.PARSEDIR}/arch/${MACHINE_ARCH}
     97  1.78       pho .if exists(${ARCH_INCS_DIR}/stack_pointer.h)
     98  1.78       pho CPPFLAGS+=	-I${ARCH_INCS_DIR} -DHAVE_STACK_POINTER_H
     99  1.78       pho .endif
    100  1.78       pho 
    101   1.1      jmmv .PATH:			${NETBSDSRCDIR}/sys/kern
    102   1.1      jmmv TESTS_C+=		t_extent
    103   1.1      jmmv SRCS.t_extent=		t_extent.c subr_extent.c
    104  1.39  christos CPPFLAGS.t_extent.c=	-D_EXTENT_TESTING -D__POOL_EXPOSE -D_KERNTYPES
    105  1.39  christos CPPFLAGS.subr_extent.c=	-D_EXTENT_TESTING -D__POOL_EXPOSE -D_KERNTYPES
    106   1.1      jmmv 
    107  1.84  riastrad TESTS_C+=		t_time_arith
    108  1.84  riastrad SRCS.t_time_arith=	t_time_arith.c subr_time_arith.c
    109  1.84  riastrad CPPFLAGS.t_time_arith.c+=	-I${NETBSDSRCDIR}/sys -D_TIME_TESTING
    110  1.84  riastrad CPPFLAGS.subr_time_arith.c+=	-I${NETBSDSRCDIR}/sys -D_TIME_TESTING
    111  1.84  riastrad LDADD.t_time_arith+=	-lutil
    112  1.84  riastrad 
    113  1.22  christos t_subr_prf.c: gen_t_subr_prf ${NETBSDSRCDIR}/sys/kern/subr_prf.c
    114  1.22  christos 	${HOST_SH} ${.ALLSRC} ${.TARGET}
    115  1.61     kamil .if ${MKSANITIZER:Uno} == "yes"
    116  1.61     kamil 	# These symbols will be redefined by MKSANITIZER
    117  1.61     kamil 	${TOOL_SED} -i '/undef .*printf/d' ${.TARGET}
    118  1.61     kamil .endif
    119  1.61     kamil 
    120  1.36       tls CPPFLAGS.t_subr_prf.c=	-Wno-pointer-sign	# XXX platform vs kernel SHA2
    121  1.22  christos 
    122  1.58       mrg # Test explicitly tests failure modes.
    123  1.72     lukem CPPFLAGS.t_subr_prf.c+=	${CC_WNO_FORMAT_TRUNCATION}
    124  1.58       mrg 
    125  1.61     kamil SANITIZER_RENAME_CLASSES+=		t_subr_prf
    126  1.61     kamil SANITIZER_RENAME_FILES.t_subr_prf+=	t_subr_prf.c
    127  1.61     kamil SANITIZER_RENAME_SYMBOL.t_subr_prf+=	snprintf
    128  1.61     kamil SANITIZER_RENAME_SYMBOL.t_subr_prf+=	vsnprintf
    129  1.61     kamil SANITIZER_RENAME_SYMBOL.t_subr_prf+=	sprintf
    130  1.61     kamil SANITIZER_RENAME_SYMBOL.t_subr_prf+=	vsnprintf
    131  1.61     kamil SANITIZER_RENAME_SYMBOL.t_subr_prf+=	vasprintf
    132  1.61     kamil 
    133  1.22  christos CLEANFILES+=	t_subr_prf.c
    134  1.22  christos 
    135  1.54  riastrad LDADD.h_segv+=	-lm
    136  1.54  riastrad 
    137  1.85  riastrad .if exists(arch/${MACHINE_ARCH}/execregs.h)
    138  1.85  riastrad ARCHDIR:=		${.PARSEDIR}/arch/${MACHINE_ARCH}
    139  1.85  riastrad .PATH:			${ARCHDIR}
    140  1.85  riastrad CPPFLAGS.t_execregs.c+=	-I${ARCHDIR}
    141  1.86  riastrad CPPFLAGS.t_execregs.c+=	-I${.CURDIR}/../lib/libc/gen # isqemu.h
    142  1.85  riastrad CPPFLAGS.t_execregs.c+=	-DHAVE_EXECREGS_TEST
    143  1.85  riastrad SRCS.t_execregs+=	t_execregs.c
    144  1.85  riastrad SRCS.t_execregs+=	execregs.c
    145  1.85  riastrad LDFLAGS.h_execregs+=	-static -Wl,-e,execregs_start
    146  1.85  riastrad .else
    147  1.85  riastrad SRCS.h_execregs=	h_execregs_unimpl.c
    148  1.85  riastrad .endif
    149  1.85  riastrad 
    150   1.1      jmmv .include <bsd.test.mk>
    151