2
0
Fork 0

[tests]: Run tests with automake

personal/stbuehler/wip
Stefan Bühler 2010-10-03 15:54:30 +02:00
parent 685973a3ca
commit 21d9d5ef46
3 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,4 @@
SUBDIRS=doc src include
SUBDIRS=doc src include tests
ACLOCAL_AMFLAGS=-I m4
EXTRA_DIST=autogen.sh CMakeLists.txt

5
tests/Makefile.am Normal file
View File

@ -0,0 +1,5 @@
EXTRA_DIST=CMakeLists.txt $(wildcard $(srcdir)/*.py) autowrapper.sh
TESTS_ENVIRONMENT=$(srcdir)/autowrapper.sh $(srcdir) $(top_builddir)
TESTS=runtests.py

8
tests/autowrapper.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
TESTSRC="$1"
BUILD="$2"
ARGS="${RUNTEST_ARGS}"
exec "${TESTSRC}/runtests.py" --angel "${BUILD}/src/angel/lighttpd2" --worker "${BUILD}/src/main/lighttpd2-worker" --plugindir "${BUILD}/src/modules/.libs" $ARGS