From caf1d5b8fead2e9fc25b9a7a2dc86a10671f65ef Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 24 Jul 2016 19:57:33 +0100 Subject: [PATCH] Test suite: Test pushing with forcing old and new tag format Signed-off-by: Ian Jackson --- debian/tests/control | 2 +- tests/lib | 8 ++++++++ tests/tests/newtag-clone-nogit | 4 ++++ tests/tests/oldtag-clone-nogit | 4 ++++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 tests/tests/newtag-clone-nogit create mode 100755 tests/tests/oldtag-clone-nogit diff --git a/debian/tests/control b/debian/tests/control index ba105876..45e80e40 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -16,7 +16,7 @@ Tests: mirror mirror-debnewgit mirror-private Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, rsync -Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-singlepatch rpush tag-updates test-list-uptodate trustingpolicy-replay +Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast newtag-clone-nogit oldtag-clone-nogit push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-singlepatch rpush tag-updates test-list-uptodate trustingpolicy-replay Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts diff --git a/tests/lib b/tests/lib index 4bdd1e83..38605bd9 100644 --- a/tests/lib +++ b/tests/lib @@ -614,6 +614,14 @@ t-drs () { ln -sf /bin/true $drs_dispatch/policy-hook } +t-newtag () { + export tagpfx=archive/test-dummy + t-git-config dgit-distro.test-dummy.dgit-tag-format new +} +t-oldtag () { + t-git-config dgit-distro.test-dummy.dgit-tag-format old +} + t-dsd () { t-drs t-git-config dgit-distro.test-dummy.ssh "$troot/dsd-ssh" diff --git a/tests/tests/newtag-clone-nogit b/tests/tests/newtag-clone-nogit new file mode 100755 index 00000000..915f9d3f --- /dev/null +++ b/tests/tests/newtag-clone-nogit @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +. tests/lib +t-alt-test diff --git a/tests/tests/oldtag-clone-nogit b/tests/tests/oldtag-clone-nogit new file mode 100755 index 00000000..915f9d3f --- /dev/null +++ b/tests/tests/oldtag-clone-nogit @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +. tests/lib +t-alt-test -- 2.30.2