xref: /netbsd/tests/usr.bin/c++/Makefile (revision fdb6b69d)
1# $NetBSD: Makefile,v 1.12 2019/08/18 20:15:58 kamil Exp $
2
3.include <bsd.own.mk>
4
5TESTSDIR=	${TESTSBASE}/usr.bin/c++
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_call_once
26TESTS_SH+=	t_call_once2
27TESTS_SH+=	t_cxxruntime
28TESTS_SH+=	t_hello
29TESTS_SH+=	t_pthread_once
30TESTS_SH+=	t_static_destructor
31
32TESTS_SH+=	t_fuzzer_oom
33TESTS_SH+=	t_fuzzer_simple
34TESTS_SH+=	t_fuzzer_timeout
35
36TESTS_SH+=	t_msan_allocated_memory
37TESTS_SH+=	t_msan_check_mem
38TESTS_SH+=	t_msan_free
39TESTS_SH+=	t_msan_heap
40TESTS_SH+=	t_msan_partial_poison
41TESTS_SH+=	t_msan_poison
42TESTS_SH+=	t_msan_realloc
43TESTS_SH+=	t_msan_shadow
44TESTS_SH+=	t_msan_stack
45TESTS_SH+=	t_msan_unpoison
46
47TESTS_SH+=	t_tsan_data_race
48TESTS_SH+=	t_tsan_heap_use_after_free
49TESTS_SH+=	t_tsan_lock_order_inversion
50TESTS_SH+=	t_tsan_locked_mutex_destroy
51TESTS_SH+=	t_tsan_signal_errno
52TESTS_SH+=	t_tsan_thread_leak
53TESTS_SH+=	t_tsan_vptr_race
54
55.for test in ${ASAN_TESTS}
56TESTS_SH_SRC_${test}=	asan_common.subr ${test}.sh
57.endfor
58.for test in ${UBSAN_TESTS}
59TESTS_SH_SRC_${test}=	ubsan_common.subr ${test}.sh
60.endfor
61
62.include <bsd.test.mk>
63