From 201155aecbec9c8a0db08bcf24ccc0fdb7989882 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 29 Jun 2019 01:10:19 +0100 Subject: test suite: baredebian setup, and a skeleton to run it The baredebian-push test will be fleshed out in a moment. Signed-off-by: Ian Jackson --- tests/setup/baredebian | 34 ++++++++++++++++++++++++++++++++++ tests/tests/baredebian-push | 11 +++++++++++ 2 files changed, 45 insertions(+) create mode 100755 tests/setup/baredebian create mode 100755 tests/tests/baredebian-push (limited to 'tests') diff --git a/tests/setup/baredebian b/tests/setup/baredebian new file mode 100755 index 0000000..8e09178 --- /dev/null +++ b/tests/setup/baredebian @@ -0,0 +1,34 @@ +#!/bin/bash +set -e +. tests/lib +. $troot/lib-gdr + +t-dependencies GDR DEBORIG + +t-archive-none example +t-git-none + +t-gdr-gbp-import-core-with-queue + +git-deborig + +for b in \ + patch-queue/quilt-tip \ + gitish-only \ + quilt-tip-1.1 \ + quilt-tip-2 \ + indep-arch \ +; do + git branch -D $b +done + +git rm -rf . # yikes +git checkout HEAD -- debian +t=$(git write-tree) +t=$(git commit-tree -m 'Convert to bare debian' $t) +git reset --hard $t + +t-setup-done '' "$(echo $p*) git mirror aq" ' + t-select-package example + t-git-next-date +' diff --git a/tests/tests/baredebian-push b/tests/tests/baredebian-push new file mode 100755 index 0000000..9b7e59b --- /dev/null +++ b/tests/tests/baredebian-push @@ -0,0 +1,11 @@ +#!/bin/bash +set -e +. tests/lib + +t-dependencies GDR + +t-setup-import baredebian + +: xxx need some actual code here + +t-ok -- cgit v1.2.3