1# $NetBSD: Makefile,v 1.8 2019/08/18 20:15:58 kamil 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) 25TESTS_SH+= t_hello 26TESTS_SH+= t_libgomp 27 28TESTS_SH+= t_fuzzer_oom 29TESTS_SH+= t_fuzzer_simple 30TESTS_SH+= t_fuzzer_timeout 31 32TESTS_SH+= t_msan_allocated_memory 33TESTS_SH+= t_msan_check_mem 34TESTS_SH+= t_msan_free 35TESTS_SH+= t_msan_heap 36TESTS_SH+= t_msan_partial_poison 37TESTS_SH+= t_msan_poison 38TESTS_SH+= t_msan_realloc 39TESTS_SH+= t_msan_shadow 40TESTS_SH+= t_msan_stack 41TESTS_SH+= t_msan_unpoison 42 43TESTS_SH+= t_tsan_data_race 44TESTS_SH+= t_tsan_heap_use_after_free 45TESTS_SH+= t_tsan_lock_order_inversion 46TESTS_SH+= t_tsan_locked_mutex_destroy 47TESTS_SH+= t_tsan_signal_errno 48TESTS_SH+= t_tsan_thread_leak 49 50.for test in ${ASAN_TESTS} 51TESTS_SH_SRC_${test}= asan_common.subr ${test}.sh 52.endfor 53.for test in ${UBSAN_TESTS} 54TESTS_SH_SRC_${test}= ubsan_common.subr ${test}.sh 55.endfor 56 57.include <bsd.test.mk> 58