From 49b68e7a6cca01abad8366a2b00fb7ece98cac7b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 1 Jul 2019 13:36:36 +0100 Subject: [PATCH] test suite: debpolicy-taintrm: New test Closes: #929249 Signed-off-by: Ian Jackson --- debian/tests/control | 2 +- tests/tests/debpolicy-taintrm | 58 +++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100755 tests/tests/debpolicy-taintrm diff --git a/debian/tests/control b/debian/tests/control index 82b99b14..2b495acc 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -72,7 +72,7 @@ Tests: trustingpolicy-replay Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, dput-ng -Tests: absurd-gitapply badcommit-rewrite build-modes build-modes-long build-modes-source checkout clone-clogsigpipe clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp defdistro-rpush defdistro-setup distropatches-reject dpkgsourceignores-correct drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast forcesplit-linear forcesplit-overwrite gbp-orig gitconfig gitworktree import-dsc import-linkorigs import-maintmangle import-native import-nonnative import-tarbomb inarchivecopy mismatches-contents mismatches-dscchanges multisuite orig-include-exclude orig-include-exclude-chkquery overwrite-chkclog overwrite-junk overwrite-splitbrains overwrite-version pbuilder protocol-compat push-buildproductsdir push-newpackage push-newrepeat push-nextdgit push-source push-source-with-changes quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch quilt-splitbrains quilt-useremail rpush rpush-quilt sourceonlypolicy tag-updates unrepresentable version-opt +Tests: absurd-gitapply badcommit-rewrite build-modes build-modes-long build-modes-source checkout clone-clogsigpipe clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp debpolicy-taintrm defdistro-rpush defdistro-setup distropatches-reject dpkgsourceignores-correct drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast forcesplit-linear forcesplit-overwrite gbp-orig gitconfig gitworktree import-dsc import-linkorigs import-maintmangle import-native import-nonnative import-tarbomb inarchivecopy mismatches-contents mismatches-dscchanges multisuite orig-include-exclude orig-include-exclude-chkquery overwrite-chkclog overwrite-junk overwrite-splitbrains overwrite-version pbuilder protocol-compat push-buildproductsdir push-newpackage push-newrepeat push-nextdgit push-source push-source-with-changes quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch quilt-splitbrains quilt-useremail rpush rpush-quilt sourceonlypolicy tag-updates unrepresentable version-opt Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime diff --git a/tests/tests/debpolicy-taintrm b/tests/tests/debpolicy-taintrm new file mode 100755 index 00000000..92251488 --- /dev/null +++ b/tests/tests/debpolicy-taintrm @@ -0,0 +1,58 @@ +#!/bin/bash +set -e +. tests/lib + +t-tstunt-parsechangelog + +t-debpolicy +t-prep-newpackage example 1.0 + +cd $p +revision=1 +git tag start +t-dgit setup-mergechangelogs + + +: upload + +t-dgit push-source --new + +: cut + +rm $tmp/incoming/* +t-archive-none example + +touch -d 'now -1 day' $tmp/git/example* + +t-policy-periodic # xxx maybe want test both with and without this + +: edit +t-commit 'edit after cut' + +: push, needs --deliberately + +t-expect-push-fail \ + 'all previously pushed versions were found to have been removed from NEW' \ +t-dgit push-source --new + +t-dgit push-source --new --deliberately-include-questionable-history + +t-archive-process-incoming new + +: t-policy-periodic # xxx maybe want test both with and without this + +: accept + +mv -f $tmp/aq/package.{new,sid}.$p +t-aq-archive-updated sid $p + +: t-policy-periodic # xxx maybe want test both with and without this + +t-git-dir-time-passes + +: 3rd push, no deliberately + +t-commit 'edit after accept' +t-dgit push-source + +t-ok -- 2.30.2