test multiflavor single compile unit
[userspace-rcu.git] / tests / regression / Makefile.am
CommitLineData
fed2db62 1AM_CFLAGS += -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g
f5ab766e 2
03c5782e
MJ
3TEST_EXTENSIONS = .tap
4TAP_LOG_DRIVER_FLAGS = --merge --comments
5TAP_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
6 $(top_srcdir)/config/tap-driver.sh
074c3a1b 7
03c5782e
MJ
8noinst_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
15noinst_HEADERS = rcutorture.h
16
6893800a
MJ
17URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
18URCU_LIB=$(top_builddir)/src/liburcu.la
19URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
20URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
21URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
22URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
23URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
ad460058 24TAP_LIB=$(top_builddir)/tests/utils/libtap.a
f5ab766e 25
03c5782e
MJ
26test_urcu_fork_tap_SOURCES = test_urcu_fork.c
27test_urcu_fork_tap_LDADD = $(URCU_LIB) $(TAP_LIB)
f5ab766e 28
03c5782e
MJ
29rcutorture_urcu_membarrier_SOURCES = urcutorture.c
30rcutorture_urcu_membarrier_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
31rcutorture_urcu_membarrier_LDADD = $(URCU_LIB) $(TAP_LIB)
f5ab766e
MD
32
33rcutorture_urcu_mb_SOURCES = urcutorture.c
34rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
ad460058 35rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB) $(TAP_LIB)
f5ab766e
MD
36
37rcutorture_urcu_qsbr_SOURCES = urcutorture.c
38rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS)
ad460058 39rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB) $(TAP_LIB)
f5ab766e
MD
40
41rcutorture_urcu_signal_SOURCES = urcutorture.c
42rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
ad460058 43rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB) $(TAP_LIB)
f5ab766e
MD
44
45rcutorture_urcu_bp_SOURCES = urcutorture.c
46rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS)
ad460058 47rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB) $(TAP_LIB)
f5ab766e
MD
48
49urcutorture.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.
55TESTS =
56
57REGTEST_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 119regtest:
03c5782e 120 $(MAKE) $(AM_MAKEFLAGS) check TESTS="$(REGTEST_TESTS)"
This page took 0.035375 seconds and 4 git commands to generate.