tests regressions: use lib rather than recompile from source
[urcu.git] / tests / regression / Makefile.am
CommitLineData
0e1efa0e 1if !LIBC_INCLUDES_PTHREAD
f5ab766e 2AM_LDFLAGS=-lpthread
58a052ef 3endif
f5ab766e
MD
4AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
5
6noinst_PROGRAMS = test_urcu_fork \
7 rcutorture_urcu \
8 rcutorture_urcu_signal \
9 rcutorture_urcu_mb \
10 rcutorture_urcu_bp \
11 rcutorture_urcu_qsbr
12
13noinst_HEADERS = rcutorture.h
14
f5ab766e
MD
15URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la
16URCU_LIB=$(top_builddir)/liburcu.la
17URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
18URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
19URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
20URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
21URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
22
b783aea4
MD
23test_urcu_fork_SOURCES = test_urcu_fork.c
24test_urcu_fork_LDADD = $(URCU_LIB)
f5ab766e
MD
25
26rcutorture_urcu_SOURCES = urcutorture.c
27rcutorture_urcu_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
b783aea4 28rcutorture_urcu_LDADD = $(URCU_LIB)
f5ab766e
MD
29
30rcutorture_urcu_mb_SOURCES = urcutorture.c
31rcutorture_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
32rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB)
33
34rcutorture_urcu_qsbr_SOURCES = urcutorture.c
35rcutorture_urcu_qsbr_CFLAGS = -DTORTURE_QSBR -DRCU_QSBR $(AM_CFLAGS)
36rcutorture_urcu_qsbr_LDADD = $(URCU_QSBR_LIB)
37
38rcutorture_urcu_signal_SOURCES = urcutorture.c
39rcutorture_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
40rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB)
41
42rcutorture_urcu_bp_SOURCES = urcutorture.c
43rcutorture_urcu_bp_CFLAGS = -DRCU_BP $(AM_CFLAGS)
44rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB)
45
46urcutorture.c: ../common/api.h
47
48.PHONY: regtest
49
50# For now, run the benchmarks too as regression tests.
51# TODO: split benchmarks from regression tests
52regtest:
53 ./test_urcu_fork
54 ./rcutorture_urcu
55 ./rcutorture_urcu_signal
56 ./rcutorture_urcu_mb
57 ./rcutorture_urcu_bp
58 ./rcutorture_urcu_qsbr
59 cd ../benchmark && ./runall.sh && cd ..
This page took 0.034284 seconds and 4 git commands to generate.