From 2ce2ae1def65bb0f9ce5b5ee5ea6734bdc1238a4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 17 Jul 2019 02:12:03 +0100 Subject: test suite: tagupl-baredebian: New test Signed-off-by: Ian Jackson --- tests/tests/tagupl-baredebian | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 tests/tests/tagupl-baredebian (limited to 'tests/tests/tagupl-baredebian') diff --git a/tests/tests/tagupl-baredebian b/tests/tests/tagupl-baredebian new file mode 100755 index 0000000..764debd --- /dev/null +++ b/tests/tests/tagupl-baredebian @@ -0,0 +1,27 @@ +#!/bin/bash +set -e +. tests/lib +. $troot/lib-baredebian + +t-dependencies quilt git-debpush + +t-debpolicy + +t-setup-import baredebian + +cd $p + +baredebian-test-vars +t-tagupl-settings + +baredebian-test-minimum +baredebian-test-core-prepush + +tagname=test-dummy/$v +t-tagupl-test --baredebian + +git branch split.p dgit/dgit/sid # we didn't generate this here + +baredebian-test-core-postpush + +t-ok -- cgit v1.2.3 From 4bbb0ea95dcf9be8e26f19424ad3b5269a556783 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 21 Jul 2019 09:31:50 +0100 Subject: git-debpush: Check that patches are (un)applicable Closes: #932477 Signed-off-by: Sean Whitton --- tests/tests/tagupl-baredebian | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/tests/tagupl-baredebian') diff --git a/tests/tests/tagupl-baredebian b/tests/tests/tagupl-baredebian index 764debd..b485abb 100755 --- a/tests/tests/tagupl-baredebian +++ b/tests/tests/tagupl-baredebian @@ -17,7 +17,18 @@ t-tagupl-settings baredebian-test-minimum baredebian-test-core-prepush + +sed -i '15icorruption' debian/patches/0002-Edit-the-.c-file.patch +git add debian/patches/0002-Edit-the-.c-file.patch +git commit -m"corrupt a quilt patch to test the patches-applicable check" + tagname=test-dummy/$v + +t-expect-fail "'git apply' failed to apply patch 0002-Edit-the-.c-file.patch ('patches-applicable' check)" \ +t-tagupl-test --baredebian + +git reset --hard HEAD~1 + t-tagupl-test --baredebian git branch split.p dgit/dgit/sid # we didn't generate this here -- cgit v1.2.3