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