diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-16 15:57:01 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-16 16:47:48 +0100 |
commit | fa22d8f771e63ca6fc17dea716980aa0faaf8f2f (patch) | |
tree | c43867489ff789139b45eb2d0aabecc4d926d2ef /tests | |
parent | bed276c8b1bba18717cbe8199c07812eba5c2a95 (diff) |
Test suite: Provide t-gbp-example-prep [FOLD INTO QUILT-GBP TEST?]
This function is useful for setting up a test case --quilt=gbp working
tree and corresponding archive contents, ready for substantive tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -534,6 +534,27 @@ t-gbp-unapplied-pq2qc () { git checkout patch-queue/$branch } +t-gbp-example-prep () { + t-archive example 1.0-1 + t-git-none + t-worktree 1.0 + + cd example + + t-dgit fetch + + git-checkout -b patch-queue/quilt-tip-2 patch-queue/quilt-tip + gbp pq rebase + + echo '/* some comment */' >>src.c + git add src.c + git commit -m 'Add a comment to an upstream file' + + t-gbp-unapplied-pq2qc + + t-commit 'some updates' 1.0-2 +} + t-commit () { local msg=$1 v=${2-1.$revision} |