Home | History | Annotate | Line # | Download | only in cc
      1 # $NetBSD: Makefile,v 1.10 2025/10/06 13:11:56 riastradh Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 TESTSDIR=	${TESTSBASE}/usr.bin/cc
      6 
      7 ASAN_TESTS=	#
      8 ASAN_TESTS+=	t_asan_double_free
      9 ASAN_TESTS+=	t_asan_global_buffer_overflow
     10 ASAN_TESTS+=	t_asan_heap_overflow
     11 ASAN_TESTS+=	t_asan_off_by_one
     12 ASAN_TESTS+=	t_asan_poison
     13 ASAN_TESTS+=	t_asan_uaf
     14 
     15 UBSAN_TESTS=	#
     16 UBSAN_TESTS+=	t_ubsan_int_add_overflow
     17 UBSAN_TESTS+=	t_ubsan_int_neg_overflow
     18 UBSAN_TESTS+=	t_ubsan_vla_out_of_bounds
     19 UBSAN_TESTS+=	t_ubsan_int_sub_overflow
     20 UBSAN_TESTS+=	t_ubsan_int_divzero
     21 
     22 TESTS_SH=	#
     23 TESTS_SH+=	$(ASAN_TESTS)
     24 TESTS_SH+=	$(UBSAN_TESTS)
     25 
     26 TESTS_SH+=	t_ctype_abuse
     27 TESTS_SH+=	t_hello
     28 TESTS_SH+=	t_libgomp
     29 TESTS_SH+=	t_pthread_abuse
     30 
     31 TESTS_SH+=	t_fuzzer_oom
     32 TESTS_SH+=	t_fuzzer_simple
     33 TESTS_SH+=	t_fuzzer_timeout
     34 
     35 TESTS_SH+=	t_msan_allocated_memory
     36 TESTS_SH+=	t_msan_check_mem
     37 TESTS_SH+=	t_msan_free
     38 TESTS_SH+=	t_msan_heap
     39 TESTS_SH+=	t_msan_partial_poison
     40 TESTS_SH+=	t_msan_poison
     41 TESTS_SH+=	t_msan_realloc
     42 TESTS_SH+=	t_msan_shadow
     43 TESTS_SH+=	t_msan_stack
     44 TESTS_SH+=	t_msan_unpoison
     45 
     46 TESTS_SH+=	t_tsan_data_race
     47 TESTS_SH+=	t_tsan_heap_use_after_free
     48 TESTS_SH+=	t_tsan_lock_order_inversion
     49 TESTS_SH+=	t_tsan_locked_mutex_destroy
     50 TESTS_SH+=	t_tsan_signal_errno
     51 TESTS_SH+=	t_tsan_thread_leak
     52 
     53 .for test in ${ASAN_TESTS}
     54 TESTS_SH_SRC_${test}=	asan_common.subr ${test}.sh
     55 .endfor
     56 .for test in ${UBSAN_TESTS}
     57 TESTS_SH_SRC_${test}=	ubsan_common.subr ${test}.sh
     58 .endfor
     59 
     60 .include <bsd.test.mk>
     61