blob: 65c87cda0c7803b06ca602a90c9641dd0e071015 (
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
. $troot/lib-gdr
t-dependencies GDR
t-tstunt-parsechangelog
t-archive example 1.0-1
t-git-none
t-dgit clone $p
cd $p
t-git-debrebase status
t-expect-fail E:'bare dgit dsc import' \
t-git-debrebase
LC_MESSAGES=C t-git-debrebase status |tee ../bare-output
grep 'bare dgit dsc import with no prior history' ../bare-output
git branch before
t-expect-fail E:'Could not find or construct a suitable upstream commit' \
t-git-debrebase convert-from-dgit-view $GDR_DIAGNOSE --no-origs
t-git-debrebase convert-from-dgit-view $GDR_DIAGNOSE
t-gdr-good laundered
t-expect-fail E:'already seems to be in git-debrebase format' \
t-git-debrebase convert-from-dgit-view $GDR_DIAGNOSE
t-refs-same-start
t-ref-head
t-git-debrebase --noop-ok convert-from-dgit-view $GDR_DIAGNOSE
t-ref-head
t-git-debrebase -falready-converted convert-from-dgit-view $GDR_DIAGNOSE \
--always-convert-anyway
t-expect-fail E:'ref varies' t-ref-head
t-gdr-good laundered
t-ok
|