From 866a4b0d97a4863c9c0c2f6b984d8f373b11af52 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 8 Jan 2017 23:20:11 +0000 Subject: test suite: protocol-compat: New test (wip) Signed-off-by: Ian Jackson --- tests/tests/protocol-compat | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 tests/tests/protocol-compat (limited to 'tests/tests') diff --git a/tests/tests/protocol-compat b/tests/tests/protocol-compat new file mode 100755 index 0000000..47074d5 --- /dev/null +++ b/tests/tests/protocol-compat @@ -0,0 +1,40 @@ +#!/bin/bash +set -e +. tests/lib +. $troot/lib-reprepro + +t-setup-import examplegit +t-tstunt-parsechangelog + +prep () { + dscf=$tmp/mirror/pool/main/example_$v.dsc +} + +check () { + t-archive-none $p + t-archive-query $suite + + t-dgit clone $p stable $p.cloned + cd $p.cloned + t-ref-head + + t-dgit import-dsc $dscf +imported + t-ref-same refs/heads/imported + cd .. +} + +: ---------- older ---------- + +suite=stable +v=1.2 + +prep + +perl -i -pe 's/^(Dgit: \w+).*/$1/' $dscf + +dgit_config_debian_alias='-cdgit-distro.debian.alias-canon=test-dummy' +# old Dgit fields are supposed to mean Debian + +check + +#t-ok -- cgit v1.2.3