From 72075b8430b826d7dd489765c1004e4161479fa2 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 13 Oct 2015 10:26:06 +0000 Subject: move all tests under a t/ directory --- t/test_pbuilder-apt-config | 183 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100755 t/test_pbuilder-apt-config (limited to 't/test_pbuilder-apt-config') diff --git a/t/test_pbuilder-apt-config b/t/test_pbuilder-apt-config new file mode 100755 index 0000000..e00730e --- /dev/null +++ b/t/test_pbuilder-apt-config @@ -0,0 +1,183 @@ +#!/bin/bash + +set -e + +self="$(basename "$0")" + +TD="$(dirname "$0")" +if [ -n "$PBUILDER_CHECKOUT" ]; then + . "$TD/testlib.sh" + PBUILDER_APT_CONFIG="$PBUILDER_CHECKOUT/pbuilder-apt-config" +else + . "$TD/testlib.sh" + PBUILDER_APT_CONFIG="$PBUILDER_TEST_PKGLIBDIR/pbuilder-apt-config" +fi + +mirror_map="" + +cleanup() { + if [ -n "$mirror_map" ]; then + rm -f "$mirror_map" + fi +} + +mirror_map="$(mktemp -t "$self.XXXXXXXXXX")" +cat >"$mirror_map" <