summaryrefslogtreecommitdiff
path: root/tests/tests/gdr-fresh
blob: 169181c5f5de18380f96f47f5ec20a5456c3ad4d (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
#!/bin/bash
set -e
autoimport=
. tests/lib
. $troot/lib-gdr

t-dependencies GDR

t-gdr-gbp-import-core

t-git-next-date

# leaves us on upstream
git rm debian/rules
git commit -m 'strip upstream rules'
git tag -f v1.0

git branch -m master master.old
git checkout -b master

t-git-next-date

git checkout quilt-tip debian
git commit -m 'initial debianisation'

t-make-orig example 1.0

dgit-quilt-fixup-uses-gdr () {
	t-git-next-date

	DGIT_TEST_DEBUG=-DD t-dgit quilt-fixup 2>&1 |tee ../fixup.out
	grep '^branch_is_gdr  .* YES$' ../fixup.out
}

dgit-quilt-fixup-uses-gdr

git checkout --detach patch-queue/quilt-tip
git rebase master
git push . HEAD:master
git checkout master

dgit-quilt-fixup-uses-gdr
t-gdr-made-patches

t-ok