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