tests: Convert unit tests to TAP
[urcu.git] / tests / unit / Makefile.am
CommitLineData
0e1efa0e 1if !LIBC_INCLUDES_PTHREAD
f5ab766e 2AM_LDFLAGS=-lpthread
58a052ef 3endif
1b387491
MJ
4AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g
5
6SCRIPT_LIST = test_loop run.sh unit_tests
f5ab766e
MD
7
8noinst_PROGRAMS = test_uatomic \
9 test_urcu_multiflavor \
10 test_urcu_multiflavor_dynlink
11
1b387491
MJ
12dist_noinst_SCRIPTS = $(SCRIPT_LIST)
13
f5ab766e
MD
14noinst_HEADERS = test_urcu_multiflavor.h
15
f5ab766e
MD
16URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la
17URCU_LIB=$(top_builddir)/liburcu.la
18URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
19URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
20URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
21URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
22URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
1b387491 23TAP_LIB=$(top_builddir)/tests/utils/libtap.a
f5ab766e 24
c14384c0 25test_uatomic_SOURCES = test_uatomic.c
1b387491 26test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
f5ab766e
MD
27
28test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \
29 test_urcu_multiflavor-memb.c \
30 test_urcu_multiflavor-mb.c \
31 test_urcu_multiflavor-signal.c \
32 test_urcu_multiflavor-qsbr.c \
33 test_urcu_multiflavor-bp.c
34test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
1b387491 35 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
f5ab766e
MD
36
37test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \
38 test_urcu_multiflavor-memb.c \
39 test_urcu_multiflavor-mb.c \
40 test_urcu_multiflavor-signal.c \
41 test_urcu_multiflavor-qsbr.c \
42 test_urcu_multiflavor-bp.c
43test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
44test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
1b387491
MJ
45 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
46
47all-local:
48 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
49 for script in $(SCRIPT_LIST); do \
50 cp -f $(srcdir)/$$script $(builddir); \
51 done; \
52 fi
53
54clean-local:
55 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
56 for script in $(SCRIPT_LIST); do \
57 rm -f $(builddir)/$$script; \
58 done; \
59 fi
f5ab766e
MD
60
61check-am:
1b387491 62 ./run.sh unit_tests
This page took 0.036321 seconds and 4 git commands to generate.