From 5773b7ee8ee79f71bc6f46ceaa502803ea4b59c0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 6 Jul 2019 16:44:49 +0100 Subject: [PATCH] test suite: tagupl-native: New test Signed-off-by: Ian Jackson --- debian/tests/control | 4 ++++ tests/tests/tagupl-native | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 tests/tests/tagupl-native diff --git a/debian/tests/control b/debian/tests/control index 30fba46a..9bdce9d9 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -68,6 +68,10 @@ Tests: tagupl Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, libdpkg-perl, libgit-wrapper-perl, liblist-compare-perl, libstring-shellquote-perl, libtry-tiny-perl, git-debpush +Tests: tagupl-native +Tests-Directory: tests/tests +Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, git-debpush + Tests: test-list-uptodate Tests-Directory: tests/tests Depends: git diff --git a/tests/tests/tagupl-native b/tests/tests/tagupl-native new file mode 100755 index 00000000..7d79f06d --- /dev/null +++ b/tests/tests/tagupl-native @@ -0,0 +1,32 @@ +#!/bin/bash +set -e +. tests/lib + +t-dependencies git-debpush + +t-debpolicy + +t-archive-none example +t-git-none +t-worktree 1.1 + +v=1.0-1 + +t-tagupl-settings + +cd $p +git checkout -B master + +printf '%s\n' -sn >debian/source/options +git add debian/source/options +git rm -f debian/source/format +git commit -m 'convert to 1.0 native' + +tagname=test-dummy/$v + +t-tagupl-test --no-push + +# xxx test pushing +# todo: test each miss/rejection + +t-ok -- 2.30.2