Home | History | Annotate | Line # | Download | only in cc
      1 # $NetBSD: Makefile,v 1.9 2024/12/18 02:47:00 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 
     30 TESTS_SH+=	t_fuzzer_oom
     31 TESTS_SH+=	t_fuzzer_simple
     32 TESTS_SH+=	t_fuzzer_timeout
     33 
     34 TESTS_SH+=	t_msan_allocated_memory
     35 TESTS_SH+=	t_msan_check_mem
     36 TESTS_SH+=	t_msan_free
     37 TESTS_SH+=	t_msan_heap
     38 TESTS_SH+=	t_msan_partial_poison
     39 TESTS_SH+=	t_msan_poison
     40 TESTS_SH+=	t_msan_realloc
     41 TESTS_SH+=	t_msan_shadow
     42 TESTS_SH+=	t_msan_stack
     43 TESTS_SH+=	t_msan_unpoison
     44 
     45 TESTS_SH+=	t_tsan_data_race
     46 TESTS_SH+=	t_tsan_heap_use_after_free
     47 TESTS_SH+=	t_tsan_lock_order_inversion
     48 TESTS_SH+=	t_tsan_locked_mutex_destroy
     49 TESTS_SH+=	t_tsan_signal_errno
     50 TESTS_SH+=	t_tsan_thread_leak
     51 
     52 .for test in ${ASAN_TESTS}
     53 TESTS_SH_SRC_${test}=	asan_common.subr ${test}.sh
     54 .endfor
     55 .for test in ${UBSAN_TESTS}
     56 TESTS_SH_SRC_${test}=	ubsan_common.subr ${test}.sh
     57 .endfor
     58 
     59 .include <bsd.test.mk>
     60