From a88e7bbd4c9fda64ecd018a298684be2f625dc81 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 6 Nov 2016 20:43:41 +0000 Subject: Test suite: Provide reprepro test (for aptget method) Signed-off-by: Ian Jackson --- tests/lib-reprepro | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 tests/lib-reprepro (limited to 'tests/lib-reprepro') diff --git a/tests/lib-reprepro b/tests/lib-reprepro new file mode 100644 index 0000000..8702044 --- /dev/null +++ b/tests/lib-reprepro @@ -0,0 +1,69 @@ +# -*- bash -*- + +t-reprepro () { + + t_archive_method=reprepro + + t-git-config dgit-distro.test-dummy.archive-query aptget: + t-git-config dgit-distro.test-dummy.mirror file://$tmp/mirror/ + + mkdir $tmp/etc-apt + cat >$tmp/etc-apt/conf <han.pgp + fakeroot apt-key add $rrc/distributions + + local arch=`dpkg --print-architecture` + + for suitespec in $suitespecs; do + local suite=${suitespec%%:*} + local sname=${suitespec#*:} + + mkdir $tmp/mirror/dists + rm -f $tmp/mirror/dists/$sname + ln -s $suite $tmp/mirror/dists/$sname + + cat >&3 <