Commit | Line | Data |
---|---|---|
01956342 | 1 | AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common |
f5ab766e | 2 | |
03c5782e MJ |
3 | TEST_EXTENSIONS = .tap |
4 | TAP_LOG_DRIVER_FLAGS = --merge --comments | |
5 | TAP_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ | |
78d75878 | 6 | $(top_srcdir)/tests/utils/tap-driver.sh |
074c3a1b | 7 | |
03c5782e MJ |
8 | noinst_PROGRAMS = test_urcu_fork.tap \ |
9 | rcutorture_urcu_membarrier \ | |
f5ab766e MD |
10 | rcutorture_urcu_signal \ |
11 | rcutorture_urcu_mb \ | |
12 | rcutorture_urcu_bp \ | |
13 | rcutorture_urcu_qsbr | |
14 | ||
15 | noinst_HEADERS = rcutorture.h | |
16 | ||
6893800a MJ |
17 | URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la |
18 | URCU_LIB=$(top_builddir)/src/liburcu.la | |
19 | URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la | |
20 | URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la | |
21 | URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la | |
22 | URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la | |
23 | URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la | |
ad460058 | 24 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
f5ab766e | 25 | |
03c5782e MJ |
26 | test_urcu_fork_tap_SOURCES = test_urcu_fork.c |
27 | test_urcu_fork_tap_LDADD = $(URCU_LIB) $(TAP_LIB) | |
f5ab766e | 28 | |
03c5782e MJ |
29 | rcutorture_urcu_membarrier_SOURCES = urcutorture.c |
30 | rcutorture_urcu_membarrier_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS) | |
31 | rcutorture_urcu_membarrier_LDADD = $(URCU_LIB) $(TAP_LIB) | |
f5ab766e MD |
32 | |
33 | rcutorture_urcu_mb_SOURCES = urcutorture.c | |
34 | rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS) | |
ad460058 | 35 | rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB) |
f5ab766e MD |
36 | |
37 | rcutorture_urcu_qsbr_SOURCES = urcutorture.c | |
38 | rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS) | |
ad460058 | 39 | rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB) |
f5ab766e MD |
40 | |
41 | rcutorture_urcu_signal_SOURCES = urcutorture.c | |
42 | rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS) | |
ad460058 | 43 | rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB) |
f5ab766e MD |
44 | |
45 | rcutorture_urcu_bp_SOURCES = urcutorture.c | |
46 | rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS) | |
ad460058 | 47 | rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB) |
f5ab766e MD |
48 | |
49 | urcutorture.c: ../common/api.h | |
50 | ||
51 | .PHONY: regtest | |
52 | ||
03c5782e MJ |
53 | # This empty variable is required to enable the TAP test suite for custom |
54 | # targets like 'regtest' while keeping the default 'check' a noop. | |
55 | TESTS = | |
56 | ||
57 | REGTEST_TESTS = test_urcu_fork.tap \ | |
58 | rcutorture_urcu_bp_perf_global.tap \ | |
59 | rcutorture_urcu_bp_perf_percpu.tap \ | |
60 | rcutorture_urcu_bp_perf_perthread.tap \ | |
61 | rcutorture_urcu_bp_rperf_global.tap \ | |
62 | rcutorture_urcu_bp_rperf_percpu.tap \ | |
63 | rcutorture_urcu_bp_rperf_perthread.tap \ | |
64 | rcutorture_urcu_bp_stress_global.tap \ | |
65 | rcutorture_urcu_bp_stress_percpu.tap \ | |
66 | rcutorture_urcu_bp_stress_perthread.tap \ | |
67 | rcutorture_urcu_bp_uperf_global.tap \ | |
68 | rcutorture_urcu_bp_uperf_percpu.tap \ | |
69 | rcutorture_urcu_bp_uperf_perthread.tap \ | |
70 | rcutorture_urcu_mb_perf_global.tap \ | |
71 | rcutorture_urcu_mb_perf_percpu.tap \ | |
72 | rcutorture_urcu_mb_perf_perthread.tap \ | |
73 | rcutorture_urcu_mb_rperf_global.tap \ | |
74 | rcutorture_urcu_mb_rperf_percpu.tap \ | |
75 | rcutorture_urcu_mb_rperf_perthread.tap \ | |
76 | rcutorture_urcu_mb_stress_global.tap \ | |
77 | rcutorture_urcu_mb_stress_percpu.tap \ | |
78 | rcutorture_urcu_mb_stress_perthread.tap \ | |
79 | rcutorture_urcu_mb_uperf_global.tap \ | |
80 | rcutorture_urcu_mb_uperf_percpu.tap \ | |
81 | rcutorture_urcu_mb_uperf_perthread.tap \ | |
82 | rcutorture_urcu_membarrier_perf_global.tap \ | |
83 | rcutorture_urcu_membarrier_perf_percpu.tap \ | |
84 | rcutorture_urcu_membarrier_perf_perthread.tap \ | |
85 | rcutorture_urcu_membarrier_rperf_global.tap \ | |
86 | rcutorture_urcu_membarrier_rperf_percpu.tap \ | |
87 | rcutorture_urcu_membarrier_rperf_perthread.tap \ | |
88 | rcutorture_urcu_membarrier_stress_global.tap \ | |
89 | rcutorture_urcu_membarrier_stress_percpu.tap \ | |
90 | rcutorture_urcu_membarrier_stress_perthread.tap \ | |
91 | rcutorture_urcu_membarrier_uperf_global.tap \ | |
92 | rcutorture_urcu_membarrier_uperf_percpu.tap \ | |
93 | rcutorture_urcu_membarrier_uperf_perthread.tap \ | |
94 | rcutorture_urcu_qsbr_perf_global.tap \ | |
95 | rcutorture_urcu_qsbr_perf_percpu.tap \ | |
96 | rcutorture_urcu_qsbr_perf_perthread.tap \ | |
97 | rcutorture_urcu_qsbr_rperf_global.tap \ | |
98 | rcutorture_urcu_qsbr_rperf_percpu.tap \ | |
99 | rcutorture_urcu_qsbr_rperf_perthread.tap \ | |
100 | rcutorture_urcu_qsbr_stress_global.tap \ | |
101 | rcutorture_urcu_qsbr_stress_percpu.tap \ | |
102 | rcutorture_urcu_qsbr_stress_perthread.tap \ | |
103 | rcutorture_urcu_qsbr_uperf_global.tap \ | |
104 | rcutorture_urcu_qsbr_uperf_percpu.tap \ | |
105 | rcutorture_urcu_qsbr_uperf_perthread.tap \ | |
106 | rcutorture_urcu_signal_perf_global.tap \ | |
107 | rcutorture_urcu_signal_perf_percpu.tap \ | |
108 | rcutorture_urcu_signal_perf_perthread.tap \ | |
109 | rcutorture_urcu_signal_rperf_global.tap \ | |
110 | rcutorture_urcu_signal_rperf_percpu.tap \ | |
111 | rcutorture_urcu_signal_rperf_perthread.tap \ | |
112 | rcutorture_urcu_signal_stress_global.tap \ | |
113 | rcutorture_urcu_signal_stress_percpu.tap \ | |
114 | rcutorture_urcu_signal_stress_perthread.tap \ | |
115 | rcutorture_urcu_signal_uperf_global.tap \ | |
116 | rcutorture_urcu_signal_uperf_percpu.tap \ | |
117 | rcutorture_urcu_signal_uperf_perthread.tap | |
118 | ||
f5ab766e | 119 | regtest: |
03c5782e | 120 | $(MAKE) $(AM_MAKEFLAGS) check TESTS="$(REGTEST_TESTS)" |