Browse Source

[tests]: Run tests with automake

personal/stbuehler/wip
Stefan Bühler 12 years ago
parent
commit
21d9d5ef46
  1. 2
      Makefile.am
  2. 5
      tests/Makefile.am
  3. 8
      tests/autowrapper.sh

2
Makefile.am

@ -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

@ -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

@ -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
Loading…
Cancel
Save