]> jfr.im git - irc/freenode/solanum.git/blob - tests/Makefile.am
5c6c67d13dd116c9bc0a694bf85fd75fb48b16fc
[irc/freenode/solanum.git] / tests / Makefile.am
1 check_PROGRAMS = runtests \
2 match1 \
3 msgbuf_parse1 \
4 msgbuf_unparse1 \
5 hostmask1 \
6 rb_dictionary1 \
7 rb_snprintf_append1 \
8 rb_snprintf_try_append1 \
9 sasl_abort1 \
10 send1 \
11 serv_connect1 \
12 substitution1
13 AM_CFLAGS=$(WARNFLAGS)
14 AM_CPPFLAGS = $(DEFAULT_INCLUDES) -I../librb/include -I..
15 AM_LDFLAGS = -no-install
16 LDADD = tap/libtap.a ../librb/src/librb.la ../ircd/libircd.la -ldl
17
18 # Override -rpath or programs will be linked to installed libraries
19 libdir=$(abs_top_builddir)
20
21 runtests_CPPFLAGS = -DC_TAP_SOURCE='"$(abs_top_srcdir)/tests"' \
22 -DC_TAP_BUILD='"$(abs_top_builddir)/tests"'
23 check_LIBRARIES = tap/libtap.a
24 tap_libtap_a_SOURCES = tap/basic.c tap/basic.h \
25 tap/float.c tap/float.h tap/macros.h
26
27 match1_SOURCES = match1.c
28 msgbuf_parse1_SOURCES = msgbuf_parse1.c
29 msgbuf_unparse1_SOURCES = msgbuf_unparse1.c
30 hostmask1_SOURCES = hostmask1.c
31 rb_dictionary1_SOURCES = rb_dictionary1.c
32 rb_snprintf_append1_SOURCES = rb_snprintf_append1.c
33 rb_snprintf_try_append1_SOURCES = rb_snprintf_try_append1.c
34 sasl_abort1_SOURCES = sasl_abort1.c ircd_util.c client_util.c
35 send1_SOURCES = send1.c ircd_util.c client_util.c
36 serv_connect1_SOURCES = serv_connect1.c ircd_util.c client_util.c
37 substitution1_SOURCES = substitution1.c
38
39 check-local: $(check_PROGRAMS) \
40 ../authd/authd \
41 ../bandb/bandb \
42 ../ssld/ssld \
43 ../wsockd/wsockd \
44 $(patsubst ../modules/%.c,../modules/.libs/%.so,$(wildcard ../modules/*.c)) \
45 $(patsubst ../modules/core/%.c,../modules/core/.libs/%.so,$(wildcard ../modules/core/*.c))
46
47 ASAN_OPTIONS="${ASAN_OPTIONS}:detect_leaks=false" ./runtests -l $(abs_top_srcdir)/tests/TESTS