From fdef7c5e3a19c5f35ee952598124d0fe8d03c7ec Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 29 Nov 2013 07:42:12 +0100 Subject: add autopkgtest --- debian/tests/run-tests | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 debian/tests/run-tests (limited to 'debian/tests/run-tests') diff --git a/debian/tests/run-tests b/debian/tests/run-tests new file mode 100644 index 000000000..6ea503568 --- /dev/null +++ b/debian/tests/run-tests @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +make +make test +test/integration/run-tests -- cgit v1.2.3 From 5c0dd6fc637358094c9f0f9c98b9cd697090a529 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 13 Dec 2013 08:17:26 +0100 Subject: run autopkgtest against the installed apt --- debian/tests/run-tests | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'debian/tests/run-tests') diff --git a/debian/tests/run-tests b/debian/tests/run-tests index 6ea503568..233c5a386 100644 --- a/debian/tests/run-tests +++ b/debian/tests/run-tests @@ -2,6 +2,17 @@ set -e -make -make test -test/integration/run-tests +# auto-package-test is very unhappy if stuff it writen to stderr +exec 2> apt-stderr.log + +# we need the buildin webserver for the tests +if [ ! -e environment.mak ]; then + ./configure +fi +make -C test/interactive-helper/ + +# run against the installed apt +APT_INTEGRATION_TESTS_WEBSERVER_BIN_DIR=$(pwd)/build/bin \ +APT_INTEGRATION_TESTS_METHODS_DIR=/usr/lib/apt/methods \ +APT_INTEGRATION_TESTS_BUILD_DIR=/usr/bin \ +./test/integration/run-tests -- cgit v1.2.3