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 | |
153b081a SM |
8 | noinst_PROGRAMS = \ |
9 | test_urcu_fork.tap \ | |
10 | test_urcu_fork_cxx.tap \ | |
03c5782e | 11 | rcutorture_urcu_membarrier \ |
153b081a | 12 | rcutorture_urcu_membarrier_cxx \ |
f5ab766e | 13 | rcutorture_urcu_signal \ |
153b081a | 14 | rcutorture_urcu_signal_cxx \ |
f5ab766e | 15 | rcutorture_urcu_mb \ |
153b081a | 16 | rcutorture_urcu_mb_cxx \ |
f5ab766e | 17 | rcutorture_urcu_bp \ |
153b081a SM |
18 | rcutorture_urcu_bp_cxx \ |
19 | rcutorture_urcu_qsbr \ | |
20 | rcutorture_urcu_qsbr_cxx | |
f5ab766e MD |
21 | |
22 | noinst_HEADERS = rcutorture.h | |
23 | ||
6893800a MJ |
24 | URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la |
25 | URCU_LIB=$(top_builddir)/src/liburcu.la | |
26 | URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la | |
27 | URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la | |
28 | URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la | |
29 | URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la | |
30 | URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la | |
ad460058 | 31 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
f5ab766e | 32 | |
03c5782e MJ |
33 | test_urcu_fork_tap_SOURCES = test_urcu_fork.c |
34 | test_urcu_fork_tap_LDADD = $(URCU_LIB) $(TAP_LIB) | |
f5ab766e | 35 | |
153b081a SM |
36 | test_urcu_fork_cxx_tap_SOURCES = test_urcu_fork_cxx.cpp |
37 | test_urcu_fork_cxx_tap_LDADD = $(URCU_LIB) $(TAP_LIB) | |
38 | ||
03c5782e MJ |
39 | rcutorture_urcu_membarrier_SOURCES = urcutorture.c |
40 | rcutorture_urcu_membarrier_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS) | |
41 | rcutorture_urcu_membarrier_LDADD = $(URCU_LIB) $(TAP_LIB) | |
f5ab766e | 42 | |
153b081a SM |
43 | rcutorture_urcu_membarrier_cxx_SOURCES = urcutorture_cxx.cpp |
44 | rcutorture_urcu_membarrier_cxx_CXXFLAGS = -DRCU_MEMBARRIER $(AM_CXXFLAGS) | |
45 | rcutorture_urcu_membarrier_cxx_LDADD = $(URCU_LIB) $(TAP_LIB) | |
46 | ||
f5ab766e MD |
47 | rcutorture_urcu_mb_SOURCES = urcutorture.c |
48 | rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS) | |
ad460058 | 49 | rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB) |
f5ab766e | 50 | |
153b081a SM |
51 | rcutorture_urcu_mb_cxx_SOURCES = urcutorture_cxx.cpp |
52 | rcutorture_urcu_mb_cxx_CXXFLAGS = -DRCU_MB $(AM_CXXFLAGS) | |
53 | rcutorture_urcu_mb_cxx_LDADD = $(URCU_MB_LIB) $(TAP_LIB) | |
54 | ||
f5ab766e MD |
55 | rcutorture_urcu_qsbr_SOURCES = urcutorture.c |
56 | rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS) | |
ad460058 | 57 | rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB) |
f5ab766e | 58 | |
153b081a SM |
59 | rcutorture_urcu_qsbr_cxx_SOURCES = urcutorture_cxx.cpp |
60 | rcutorture_urcu_qsbr_cxx_CXXFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CXXFLAGS) | |
61 | rcutorture_urcu_qsbr_cxx_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB) | |
62 | ||
f5ab766e MD |
63 | rcutorture_urcu_signal_SOURCES = urcutorture.c |
64 | rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS) | |
ad460058 | 65 | rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB) |
f5ab766e | 66 | |
153b081a SM |
67 | rcutorture_urcu_signal_cxx_SOURCES = urcutorture_cxx.cpp |
68 | rcutorture_urcu_signal_cxx_CXXFLAGS = -DRCU_SIGNAL $(AM_CXXFLAGS) | |
69 | rcutorture_urcu_signal_cxx_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB) | |
70 | ||
f5ab766e MD |
71 | rcutorture_urcu_bp_SOURCES = urcutorture.c |
72 | rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS) | |
ad460058 | 73 | rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB) |
f5ab766e | 74 | |
153b081a SM |
75 | rcutorture_urcu_bp_cxx_SOURCES = urcutorture_cxx.cpp |
76 | rcutorture_urcu_bp_cxx_CXXFLAGS = -DRCU_BP $(AM_CXXFLAGS) | |
77 | rcutorture_urcu_bp_cxx_LDADD = $(URCU_BP_LIB) $(TAP_LIB) | |
78 | ||
f5ab766e MD |
79 | urcutorture.c: ../common/api.h |
80 | ||
81 | .PHONY: regtest | |
82 | ||
03c5782e MJ |
83 | # This empty variable is required to enable the TAP test suite for custom |
84 | # targets like 'regtest' while keeping the default 'check' a noop. | |
85 | TESTS = | |
86 | ||
153b081a SM |
87 | REGTEST_TESTS = \ |
88 | test_urcu_fork.tap \ | |
89 | test_urcu_fork_cxx.tap \ | |
03c5782e | 90 | rcutorture_urcu_bp_perf_global.tap \ |
153b081a | 91 | rcutorture_urcu_bp_perf_global_cxx.tap \ |
03c5782e | 92 | rcutorture_urcu_bp_perf_percpu.tap \ |
153b081a | 93 | rcutorture_urcu_bp_perf_percpu_cxx.tap \ |
03c5782e | 94 | rcutorture_urcu_bp_perf_perthread.tap \ |
153b081a | 95 | rcutorture_urcu_bp_perf_perthread_cxx.tap \ |
03c5782e | 96 | rcutorture_urcu_bp_rperf_global.tap \ |
153b081a | 97 | rcutorture_urcu_bp_rperf_global_cxx.tap \ |
03c5782e | 98 | rcutorture_urcu_bp_rperf_percpu.tap \ |
153b081a | 99 | rcutorture_urcu_bp_rperf_percpu_cxx.tap \ |
03c5782e | 100 | rcutorture_urcu_bp_rperf_perthread.tap \ |
153b081a | 101 | rcutorture_urcu_bp_rperf_perthread_cxx.tap \ |
03c5782e | 102 | rcutorture_urcu_bp_stress_global.tap \ |
153b081a | 103 | rcutorture_urcu_bp_stress_global_cxx.tap \ |
03c5782e | 104 | rcutorture_urcu_bp_stress_percpu.tap \ |
153b081a | 105 | rcutorture_urcu_bp_stress_percpu_cxx.tap \ |
03c5782e | 106 | rcutorture_urcu_bp_stress_perthread.tap \ |
153b081a | 107 | rcutorture_urcu_bp_stress_perthread_cxx.tap \ |
03c5782e | 108 | rcutorture_urcu_bp_uperf_global.tap \ |
153b081a | 109 | rcutorture_urcu_bp_uperf_global_cxx.tap \ |
03c5782e | 110 | rcutorture_urcu_bp_uperf_percpu.tap \ |
153b081a | 111 | rcutorture_urcu_bp_uperf_percpu_cxx.tap \ |
03c5782e | 112 | rcutorture_urcu_bp_uperf_perthread.tap \ |
153b081a | 113 | rcutorture_urcu_bp_uperf_perthread_cxx.tap \ |
03c5782e | 114 | rcutorture_urcu_mb_perf_global.tap \ |
153b081a | 115 | rcutorture_urcu_mb_perf_global_cxx.tap \ |
03c5782e | 116 | rcutorture_urcu_mb_perf_percpu.tap \ |
153b081a | 117 | rcutorture_urcu_mb_perf_percpu_cxx.tap \ |
03c5782e | 118 | rcutorture_urcu_mb_perf_perthread.tap \ |
153b081a | 119 | rcutorture_urcu_mb_perf_perthread_cxx.tap \ |
03c5782e | 120 | rcutorture_urcu_mb_rperf_global.tap \ |
153b081a | 121 | rcutorture_urcu_mb_rperf_global_cxx.tap \ |
03c5782e | 122 | rcutorture_urcu_mb_rperf_percpu.tap \ |
153b081a | 123 | rcutorture_urcu_mb_rperf_percpu_cxx.tap \ |
03c5782e | 124 | rcutorture_urcu_mb_rperf_perthread.tap \ |
153b081a | 125 | rcutorture_urcu_mb_rperf_perthread_cxx.tap \ |
03c5782e | 126 | rcutorture_urcu_mb_stress_global.tap \ |
153b081a | 127 | rcutorture_urcu_mb_stress_global_cxx.tap \ |
03c5782e | 128 | rcutorture_urcu_mb_stress_percpu.tap \ |
153b081a | 129 | rcutorture_urcu_mb_stress_percpu_cxx.tap \ |
03c5782e | 130 | rcutorture_urcu_mb_stress_perthread.tap \ |
153b081a | 131 | rcutorture_urcu_mb_stress_perthread_cxx.tap \ |
03c5782e | 132 | rcutorture_urcu_mb_uperf_global.tap \ |
153b081a | 133 | rcutorture_urcu_mb_uperf_global_cxx.tap \ |
03c5782e | 134 | rcutorture_urcu_mb_uperf_percpu.tap \ |
153b081a | 135 | rcutorture_urcu_mb_uperf_percpu_cxx.tap \ |
03c5782e | 136 | rcutorture_urcu_mb_uperf_perthread.tap \ |
153b081a | 137 | rcutorture_urcu_mb_uperf_perthread_cxx.tap \ |
03c5782e | 138 | rcutorture_urcu_membarrier_perf_global.tap \ |
153b081a | 139 | rcutorture_urcu_membarrier_perf_global_cxx.tap \ |
03c5782e | 140 | rcutorture_urcu_membarrier_perf_percpu.tap \ |
153b081a | 141 | rcutorture_urcu_membarrier_perf_percpu_cxx.tap \ |
03c5782e | 142 | rcutorture_urcu_membarrier_perf_perthread.tap \ |
153b081a | 143 | rcutorture_urcu_membarrier_perf_perthread_cxx.tap \ |
03c5782e | 144 | rcutorture_urcu_membarrier_rperf_global.tap \ |
153b081a | 145 | rcutorture_urcu_membarrier_rperf_global_cxx.tap \ |
03c5782e | 146 | rcutorture_urcu_membarrier_rperf_percpu.tap \ |
153b081a | 147 | rcutorture_urcu_membarrier_rperf_percpu_cxx.tap \ |
03c5782e | 148 | rcutorture_urcu_membarrier_rperf_perthread.tap \ |
153b081a | 149 | rcutorture_urcu_membarrier_rperf_perthread_cxx.tap \ |
03c5782e | 150 | rcutorture_urcu_membarrier_stress_global.tap \ |
153b081a | 151 | rcutorture_urcu_membarrier_stress_global_cxx.tap \ |
03c5782e | 152 | rcutorture_urcu_membarrier_stress_percpu.tap \ |
153b081a | 153 | rcutorture_urcu_membarrier_stress_percpu_cxx.tap \ |
03c5782e | 154 | rcutorture_urcu_membarrier_stress_perthread.tap \ |
153b081a | 155 | rcutorture_urcu_membarrier_stress_perthread_cxx.tap \ |
03c5782e | 156 | rcutorture_urcu_membarrier_uperf_global.tap \ |
153b081a | 157 | rcutorture_urcu_membarrier_uperf_global_cxx.tap \ |
03c5782e | 158 | rcutorture_urcu_membarrier_uperf_percpu.tap \ |
153b081a | 159 | rcutorture_urcu_membarrier_uperf_percpu_cxx.tap \ |
03c5782e | 160 | rcutorture_urcu_membarrier_uperf_perthread.tap \ |
153b081a | 161 | rcutorture_urcu_membarrier_uperf_perthread_cxx.tap \ |
03c5782e | 162 | rcutorture_urcu_qsbr_perf_global.tap \ |
153b081a | 163 | rcutorture_urcu_qsbr_perf_global_cxx.tap \ |
03c5782e | 164 | rcutorture_urcu_qsbr_perf_percpu.tap \ |
153b081a | 165 | rcutorture_urcu_qsbr_perf_percpu_cxx.tap \ |
03c5782e | 166 | rcutorture_urcu_qsbr_perf_perthread.tap \ |
153b081a | 167 | rcutorture_urcu_qsbr_perf_perthread_cxx.tap \ |
03c5782e | 168 | rcutorture_urcu_qsbr_rperf_global.tap \ |
153b081a | 169 | rcutorture_urcu_qsbr_rperf_global_cxx.tap \ |
03c5782e | 170 | rcutorture_urcu_qsbr_rperf_percpu.tap \ |
153b081a | 171 | rcutorture_urcu_qsbr_rperf_percpu_cxx.tap \ |
03c5782e | 172 | rcutorture_urcu_qsbr_rperf_perthread.tap \ |
153b081a | 173 | rcutorture_urcu_qsbr_rperf_perthread_cxx.tap \ |
03c5782e | 174 | rcutorture_urcu_qsbr_stress_global.tap \ |
153b081a | 175 | rcutorture_urcu_qsbr_stress_global_cxx.tap \ |
03c5782e | 176 | rcutorture_urcu_qsbr_stress_percpu.tap \ |
153b081a | 177 | rcutorture_urcu_qsbr_stress_percpu_cxx.tap \ |
03c5782e | 178 | rcutorture_urcu_qsbr_stress_perthread.tap \ |
153b081a | 179 | rcutorture_urcu_qsbr_stress_perthread_cxx.tap \ |
03c5782e | 180 | rcutorture_urcu_qsbr_uperf_global.tap \ |
153b081a | 181 | rcutorture_urcu_qsbr_uperf_global_cxx.tap \ |
03c5782e | 182 | rcutorture_urcu_qsbr_uperf_percpu.tap \ |
153b081a | 183 | rcutorture_urcu_qsbr_uperf_percpu_cxx.tap \ |
03c5782e | 184 | rcutorture_urcu_qsbr_uperf_perthread.tap \ |
153b081a | 185 | rcutorture_urcu_qsbr_uperf_perthread_cxx.tap \ |
03c5782e | 186 | rcutorture_urcu_signal_perf_global.tap \ |
153b081a | 187 | rcutorture_urcu_signal_perf_global_cxx.tap \ |
03c5782e | 188 | rcutorture_urcu_signal_perf_percpu.tap \ |
153b081a | 189 | rcutorture_urcu_signal_perf_percpu_cxx.tap \ |
03c5782e | 190 | rcutorture_urcu_signal_perf_perthread.tap \ |
153b081a | 191 | rcutorture_urcu_signal_perf_perthread_cxx.tap \ |
03c5782e | 192 | rcutorture_urcu_signal_rperf_global.tap \ |
153b081a | 193 | rcutorture_urcu_signal_rperf_global_cxx.tap \ |
03c5782e | 194 | rcutorture_urcu_signal_rperf_percpu.tap \ |
153b081a | 195 | rcutorture_urcu_signal_rperf_percpu_cxx.tap \ |
03c5782e | 196 | rcutorture_urcu_signal_rperf_perthread.tap \ |
153b081a | 197 | rcutorture_urcu_signal_rperf_perthread_cxx.tap \ |
03c5782e | 198 | rcutorture_urcu_signal_stress_global.tap \ |
153b081a | 199 | rcutorture_urcu_signal_stress_global_cxx.tap \ |
03c5782e | 200 | rcutorture_urcu_signal_stress_percpu.tap \ |
153b081a | 201 | rcutorture_urcu_signal_stress_percpu_cxx.tap \ |
03c5782e | 202 | rcutorture_urcu_signal_stress_perthread.tap \ |
153b081a | 203 | rcutorture_urcu_signal_stress_perthread_cxx.tap \ |
03c5782e | 204 | rcutorture_urcu_signal_uperf_global.tap \ |
153b081a | 205 | rcutorture_urcu_signal_uperf_global_cxx.tap \ |
03c5782e | 206 | rcutorture_urcu_signal_uperf_percpu.tap \ |
153b081a SM |
207 | rcutorture_urcu_signal_uperf_percpu_cxx.tap \ |
208 | rcutorture_urcu_signal_uperf_perthread.tap \ | |
209 | rcutorture_urcu_signal_uperf_perthread_cxx.tap | |
03c5782e | 210 | |
f5ab766e | 211 | regtest: |
03c5782e | 212 | $(MAKE) $(AM_MAKEFLAGS) check TESTS="$(REGTEST_TESTS)" |