summaryrefslogtreecommitdiff
path: root/tests/tests/gdr-makepatches7
blob: 02ea7ab31665efd602799e329be6da31fe186c40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
set -e
. tests/lib

t-dependencies GDR

t-setup-import gdr-convert-gbp

cd $p

git checkout upstream/2.0
echo '*patch*' >>.gitignore
git commit -m nasty .gitignore
git tag v2.1
GZIP=-1 git archive -o ../${p}_2.1.orig.tar.gz --prefix ${p}/ v2.1

git checkout master
t-git-debrebase new-upstream 2.1-1

t-some-changes for-rebase-fixup m

t-git-debrebase
t-git-debrebase make-patches

t-some-changes for-dgit-fixup m

t-git-debrebase

t-expect-fail 'dgit: failed command: test-suite-break-git-debrebase' \
t-dgit -wgf --git-debrebase=test-suite-break-git-debrebase quilt-fixup

t-dgit -wgf --git-debrebase=true quilt-fixup

t-some-changes for-make-patches-fails-then-dgit-fixup m

t-expect-fail 'Patch export produced patch amendments' \
t-git-debrebase make-patches

t-dgit -wgf quilt-fixup

t-refs-same-start
t-ref-head
t-dgit -wg quilt-fixup
t-ref-head

t-ok