From 875890db76dd76cc1169fed3f5a2da5deae5590a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 7 Jan 2017 16:28:13 +0000 Subject: test suite: New test downstream-gitless (wip) Signed-off-by: Ian Jackson --- debian/changelog | 1 + debian/tests/control | 2 +- tests/tests/downstream-gitless | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100755 tests/tests/downstream-gitless diff --git a/debian/changelog b/debian/changelog index 44a0ad9..d3d41b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -23,6 +23,7 @@ dgit (3.0~) unstable; urgency=medium * gbp-orig: Add a missing -m, without which git would run an editor if stdout was a tty (!) * Add t-stunt-parsechangelog to a few tests which were missing it. + * Tests for the new protocol feature. -- diff --git a/debian/tests/control b/debian/tests/control index fa0d256..49eefbc 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -25,7 +25,7 @@ Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential Restrictions: x-dgit-git-only -Tests: absurd-gitapply badcommit-rewrite build-modes build-modes-asplit build-modes-gbp-asplit clone-clogsigpipe clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast gbp-orig gitconfig import-dsc import-native import-nonnative import-tarbomb inarchivecopy mismatches-contents mismatches-dscchanges multisuite newtag-clone-nogit oldnewtagalt oldtag-clone-nogit orig-include-exclude orig-include-exclude-chkquery overwrite-chkclog overwrite-junk overwrite-splitbrains overwrite-version push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch quilt-splitbrains rpush tag-updates test-list-uptodate trustingpolicy-replay unrepresentable version-opt +Tests: absurd-gitapply badcommit-rewrite build-modes build-modes-asplit build-modes-gbp-asplit clone-clogsigpipe clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject downstream-gitless drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast gbp-orig gitconfig import-dsc import-native import-nonnative import-tarbomb inarchivecopy mismatches-contents mismatches-dscchanges multisuite newtag-clone-nogit oldnewtagalt oldtag-clone-nogit orig-include-exclude orig-include-exclude-chkquery overwrite-chkclog overwrite-junk overwrite-splitbrains overwrite-version push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch quilt-splitbrains rpush tag-updates test-list-uptodate trustingpolicy-replay unrepresentable version-opt Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential diff --git a/tests/tests/downstream-gitless b/tests/tests/downstream-gitless new file mode 100755 index 0000000..1912613 --- /dev/null +++ b/tests/tests/downstream-gitless @@ -0,0 +1,24 @@ +#!/bin/bash +set -e +. tests/lib +. $troot/lib-reprepro + +t-setup-import examplegit +t-tstunt-parsechangelog + +suitespecs=avon +t-reprepro-cfg ds- downstream +t-reprepro-setup ds- + +t-reprepro-includedsc avon $tmp/mirror/pool/main/example_1.1.dsc ds- + +t-reprepro-regen ds- + +distro='' + +t-git-config dgit-suite.avon.distro downstream +t-git-config dgit-distro.downstream.git-check false + +t-dgit clone example avon example.avon + +#t-ok -- cgit v1.2.3