2019-08-18 23:15:58 +03:00
|
|
|
# $NetBSD: Makefile,v 1.8 2019/08/18 20:15:58 kamil Exp $
|
2012-03-17 21:15:28 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
TESTSDIR= ${TESTSBASE}/usr.bin/cc
|
|
|
|
|
2019-01-29 22:56:37 +03:00
|
|
|
ASAN_TESTS= #
|
|
|
|
ASAN_TESTS+= t_asan_double_free
|
|
|
|
ASAN_TESTS+= t_asan_global_buffer_overflow
|
|
|
|
ASAN_TESTS+= t_asan_heap_overflow
|
|
|
|
ASAN_TESTS+= t_asan_off_by_one
|
|
|
|
ASAN_TESTS+= t_asan_poison
|
|
|
|
ASAN_TESTS+= t_asan_uaf
|
|
|
|
|
2019-01-29 22:59:10 +03:00
|
|
|
UBSAN_TESTS= #
|
|
|
|
UBSAN_TESTS+= t_ubsan_int_add_overflow
|
|
|
|
UBSAN_TESTS+= t_ubsan_int_neg_overflow
|
|
|
|
UBSAN_TESTS+= t_ubsan_vla_out_of_bounds
|
|
|
|
UBSAN_TESTS+= t_ubsan_int_sub_overflow
|
|
|
|
UBSAN_TESTS+= t_ubsan_int_divzero
|
|
|
|
|
2018-04-05 02:51:35 +03:00
|
|
|
TESTS_SH= #
|
2019-01-29 22:56:37 +03:00
|
|
|
TESTS_SH+= $(ASAN_TESTS)
|
2019-01-29 22:59:10 +03:00
|
|
|
TESTS_SH+= $(UBSAN_TESTS)
|
2018-04-05 02:51:35 +03:00
|
|
|
TESTS_SH+= t_hello
|
2019-02-09 03:12:14 +03:00
|
|
|
TESTS_SH+= t_libgomp
|
2012-03-17 21:15:28 +04:00
|
|
|
|
2019-08-18 23:15:58 +03:00
|
|
|
TESTS_SH+= t_fuzzer_oom
|
|
|
|
TESTS_SH+= t_fuzzer_simple
|
|
|
|
TESTS_SH+= t_fuzzer_timeout
|
|
|
|
|
|
|
|
TESTS_SH+= t_msan_allocated_memory
|
|
|
|
TESTS_SH+= t_msan_check_mem
|
|
|
|
TESTS_SH+= t_msan_free
|
|
|
|
TESTS_SH+= t_msan_heap
|
|
|
|
TESTS_SH+= t_msan_partial_poison
|
|
|
|
TESTS_SH+= t_msan_poison
|
|
|
|
TESTS_SH+= t_msan_realloc
|
|
|
|
TESTS_SH+= t_msan_shadow
|
|
|
|
TESTS_SH+= t_msan_stack
|
|
|
|
TESTS_SH+= t_msan_unpoison
|
|
|
|
|
|
|
|
TESTS_SH+= t_tsan_data_race
|
|
|
|
TESTS_SH+= t_tsan_heap_use_after_free
|
|
|
|
TESTS_SH+= t_tsan_lock_order_inversion
|
|
|
|
TESTS_SH+= t_tsan_locked_mutex_destroy
|
|
|
|
TESTS_SH+= t_tsan_signal_errno
|
|
|
|
TESTS_SH+= t_tsan_thread_leak
|
|
|
|
|
2019-01-29 22:56:37 +03:00
|
|
|
.for test in ${ASAN_TESTS}
|
|
|
|
TESTS_SH_SRC_${test}= asan_common.subr ${test}.sh
|
|
|
|
.endfor
|
2019-01-29 22:59:10 +03:00
|
|
|
.for test in ${UBSAN_TESTS}
|
|
|
|
TESTS_SH_SRC_${test}= ubsan_common.subr ${test}.sh
|
|
|
|
.endfor
|
2019-01-29 22:56:37 +03:00
|
|
|
|
2012-03-17 21:15:28 +04:00
|
|
|
.include <bsd.test.mk>
|