Enable the Makefile to run tests
This commit is contained in:
parent
7e55db0de7
commit
6119ece5cb
4 changed files with 33 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,5 +15,6 @@ tests/*.log
|
|||
tests/*.trs
|
||||
|
||||
pre-inst-env
|
||||
test-env
|
||||
|
||||
.local.envrc
|
||||
|
|
16
Makefile.am
16
Makefile.am
|
@ -11,7 +11,23 @@ SOURCES = \
|
|||
knots/web-server.scm \
|
||||
knots/worker-threads.scm
|
||||
|
||||
SCM_TESTS = \
|
||||
tests/non-blocking.scm \
|
||||
tests/promise.scm \
|
||||
tests/timeout.scm \
|
||||
tests/non-blocking.scm \
|
||||
tests/queue.scm \
|
||||
tests/web-server.scm \
|
||||
tests/parallelism.scm \
|
||||
tests/resource-pool.scm \
|
||||
tests/worker-threads.scm
|
||||
|
||||
TESTS_GOBJECTS = $(SCM_TESTS:%.scm=%.go)
|
||||
|
||||
EXTRA_DIST = \
|
||||
README \
|
||||
bootstrap \
|
||||
pre-inst-env.in
|
||||
|
||||
check: $(GOBJECTS) $(TESTS_GOBJECTS)
|
||||
find tests -name "*.scm" | xargs -t -L1 ./test-env guile
|
||||
|
|
|
@ -15,5 +15,6 @@ fi
|
|||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
|
||||
AC_CONFIG_FILES([test-env], [chmod +x test-env])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
15
test-env.in
Normal file
15
test-env.in
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd`"
|
||||
abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd`"
|
||||
|
||||
GUILE_LOAD_COMPILED_PATH="${abs_top_builddir}/tests${GUILE_LOAD_COMPILED_PATH:+:}$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
|
||||
GUILE_LOAD_PATH="$abs_top_builddir/tests:$abs_top_srcdir${GUILE_LOAD_PATH:+:}$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}:$GUILE_LOAD_PATH"
|
||||
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
|
||||
|
||||
export GUILE_AUTO_COMPILE=0
|
||||
|
||||
PATH="$abs_top_builddir:$PATH"
|
||||
export PATH
|
||||
|
||||
exec "$@"
|
Loading…
Add table
Add a link
Reference in a new issue