chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-debrebase: test suite: gdr-subcommands: split off XX
[dgit.git]
/
tests
/
tests
/
protocol-compat
diff --git
a/tests/tests/protocol-compat
b/tests/tests/protocol-compat
index b1b902549fa9238a6a5a53c8ef432600dceee080..fcbeedb82d7cc02c4b786e32d4b407aa6b0c01a3 100755
(executable)
--- a/
tests/tests/protocol-compat
+++ b/
tests/tests/protocol-compat
@@
-6,23
+6,27
@@
set -e
t-setup-import examplegit
t-tstunt-parsechangelog
t-setup-import examplegit
t-tstunt-parsechangelog
+t-git-config dgit.default.distro foreign
+t-git-config dgit-distro.foreign.cmd-git false
+
prep () {
dscf=$tmp/mirror/pool/main/example_$v.dsc
}
check () {
prep () {
dscf=$tmp/mirror/pool/main/example_$v.dsc
}
check () {
- rm -rf $p.cloned
+ pd=$p.$suite
t-refs-same-start
t-archive-none $p
t-archive-query $suite
t-refs-same-start
t-archive-none $p
t-archive-query $suite
- t-dgit clone $p $suite $p
.clone
d
- cd $p
.clone
d
+ t-dgit clone $p $suite $pd
+ cd $pd
t-ref-head
$1
t-ref-head
$1
+ local distro=''
t-dgit import-dsc $dscf +imported
t-ref-same refs/heads/imported
cd ..
t-dgit import-dsc $dscf +imported
t-ref-same refs/heads/imported
cd ..
@@
-30,9
+34,9
@@
check () {
reset () {
cd ..
reset () {
cd ..
- rm -rf $p
.clone
d
- mkdir $p
.clone
d
- cd $p
.clone
d
+ rm -rf $pd
+ mkdir $pd
+ cd $pd
git init
}
git init
}
@@
-54,7
+58,7
@@
prep
perl -i~ -pe 's/^(Dgit: \w+ \S+ \S+) (.*)/$1\n $2 EXTRA/' $dscf
perl -i~ -pe 's/^(Dgit: \w+ \S+ \S+) (.*)/$1\n $2 EXTRA/' $dscf
-check
+check
reset
: ---------- older ----------
: ---------- older ----------
@@
-64,8
+68,16
@@
prep
perl -i -pe 's/^(Dgit: \w+).*/$1/' $dscf
perl -i -pe 's/^(Dgit: \w+).*/$1/' $dscf
-t-git-config dgit.default.old-dsc-distro test-dummy
-
check
check
+: ---------- expect fail ----------
+
+pd=$p.fail
+
+t-git-config dgit.default.old-dsc-distro downstream
+
+t-expect-fail 'no configured url and .dsc provides no hint' \
+t-dgit clone $p $suite $pd
+
+
t-ok
t-ok