2017-07-26 20:06:49 +00:00
|
|
|
check_PROGRAMS = runtests \
|
2020-11-06 14:16:23 +00:00
|
|
|
chmode1 \
|
2020-10-30 00:55:21 +00:00
|
|
|
match1 \
|
2017-07-27 11:58:13 +00:00
|
|
|
msgbuf_parse1 \
|
2017-07-28 17:34:46 +00:00
|
|
|
msgbuf_unparse1 \
|
2020-07-06 00:39:54 +00:00
|
|
|
hostmask1 \
|
2021-01-29 11:55:06 +00:00
|
|
|
privilege1 \
|
2017-08-06 17:38:25 +00:00
|
|
|
rb_dictionary1 \
|
2017-07-30 16:05:26 +00:00
|
|
|
rb_snprintf_append1 \
|
|
|
|
rb_snprintf_try_append1 \
|
2019-02-23 12:31:56 +00:00
|
|
|
sasl_abort1 \
|
2017-08-05 13:09:01 +00:00
|
|
|
send1 \
|
2020-11-09 00:16:52 +00:00
|
|
|
send_multiline1 \
|
2017-08-24 19:03:51 +00:00
|
|
|
serv_connect1 \
|
2017-07-27 11:58:13 +00:00
|
|
|
substitution1
|
2017-07-25 20:02:45 +00:00
|
|
|
AM_CFLAGS=$(WARNFLAGS)
|
|
|
|
AM_CPPFLAGS = $(DEFAULT_INCLUDES) -I../librb/include -I..
|
|
|
|
AM_LDFLAGS = -no-install
|
2020-11-07 23:48:04 +00:00
|
|
|
LDADD = libutil.a tap/libtap.a ../librb/src/librb.la ../ircd/libircd.la -ldl
|
2017-07-25 20:02:45 +00:00
|
|
|
|
2020-11-08 14:30:36 +00:00
|
|
|
CLEANFILES = TESTS
|
|
|
|
|
2017-07-25 20:02:45 +00:00
|
|
|
# Override -rpath or programs will be linked to installed libraries
|
|
|
|
libdir=$(abs_top_builddir)
|
|
|
|
|
|
|
|
runtests_CPPFLAGS = -DC_TAP_SOURCE='"$(abs_top_srcdir)/tests"' \
|
|
|
|
-DC_TAP_BUILD='"$(abs_top_builddir)/tests"'
|
2020-11-07 23:48:04 +00:00
|
|
|
check_LIBRARIES = tap/libtap.a libutil.a
|
2017-07-25 20:02:45 +00:00
|
|
|
tap_libtap_a_SOURCES = tap/basic.c tap/basic.h \
|
|
|
|
tap/float.c tap/float.h tap/macros.h
|
2020-11-07 23:48:04 +00:00
|
|
|
libutil_a_SOURCES = ircd_util.c client_util.c
|
2017-07-26 20:06:49 +00:00
|
|
|
|
2020-11-08 14:30:36 +00:00
|
|
|
TESTS: Makefile
|
|
|
|
printf '%s\n' $(check_PROGRAMS) | sed '/^runtests$$/d' > TESTS
|
|
|
|
|
2017-08-05 13:09:01 +00:00
|
|
|
check-local: $(check_PROGRAMS) \
|
2020-11-08 14:30:36 +00:00
|
|
|
TESTS \
|
2017-08-05 13:09:01 +00:00
|
|
|
../authd/authd \
|
|
|
|
../bandb/bandb \
|
|
|
|
../ssld/ssld \
|
|
|
|
../wsockd/wsockd \
|
|
|
|
$(patsubst ../modules/%.c,../modules/.libs/%.so,$(wildcard ../modules/*.c)) \
|
2019-10-07 03:48:57 +00:00
|
|
|
$(patsubst ../modules/core/%.c,../modules/core/.libs/%.so,$(wildcard ../modules/core/*.c))
|
2017-08-05 13:09:01 +00:00
|
|
|
|
2020-11-08 20:37:24 +00:00
|
|
|
rm -rf runtime/modules && mkdir -p runtime/modules/autoload
|
|
|
|
for f in ../modules/core/.libs/*.so; do ln -s "../../../modules/core/.libs/$${f##*/}" "runtime/modules/$${f##*/}"; done
|
|
|
|
for f in ../modules/.libs/*.so; do ln -s "../../../../modules/.libs/$${f##*/}" "runtime/modules/autoload/$${f##*/}"; done
|
|
|
|
|
2020-04-26 15:05:05 +00:00
|
|
|
ASAN_OPTIONS="${ASAN_OPTIONS}:detect_leaks=false" ./runtests -l $(abs_top_srcdir)/tests/TESTS
|
2020-11-08 20:37:24 +00:00
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -rf runtime/modules
|
2020-11-09 21:17:00 +00:00
|
|
|
rm -rf *.db *.log
|