From 21d9d5ef46b6dbdde0458db0804d8773c4e0765f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 3 Oct 2010 15:54:30 +0200 Subject: [PATCH] [tests]: Run tests with automake --- Makefile.am | 2 +- tests/Makefile.am | 5 +++++ tests/autowrapper.sh | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tests/Makefile.am create mode 100755 tests/autowrapper.sh diff --git a/Makefile.am b/Makefile.am index 6449d6d..586e767 100644 --- a/Makefile.am +++ b/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 diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..4c0765a --- /dev/null +++ b/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 diff --git a/tests/autowrapper.sh b/tests/autowrapper.sh new file mode 100755 index 0000000..634a03d --- /dev/null +++ b/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