summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-08 23:37:27 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-09 02:20:09 +0000
commit3ec15f5373c474cf3e0e55b876a565a09f81c793 (patch)
treec90ba1130c0444f0c3ce9aaa95264de82073bec2 /tests
parent5b9de0a5f1223706c6734636fdf9fb8392db510a (diff)
test suite: protocol-compat: Even more solid checks
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/protocol-compat24
1 files changed, 17 insertions, 7 deletions
diff --git a/tests/tests/protocol-compat b/tests/tests/protocol-compat
index b1b9025..fc3960a 100755
--- a/tests/tests/protocol-compat
+++ b/tests/tests/protocol-compat
@@ -11,14 +11,14 @@ prep () {
}
check () {
- rm -rf $p.cloned
+ pd=$p.$suite
t-refs-same-start
t-archive-none $p
t-archive-query $suite
- t-dgit clone $p $suite $p.cloned
- cd $p.cloned
+ t-dgit clone $p $suite $pd
+ cd $pd
t-ref-head
$1
@@ -30,9 +30,9 @@ check () {
reset () {
cd ..
- rm -rf $p.cloned
- mkdir $p.cloned
- cd $p.cloned
+ rm -rf $pd
+ mkdir $pd
+ cd $pd
git init
}
@@ -54,7 +54,7 @@ prep
perl -i~ -pe 's/^(Dgit: \w+ \S+ \S+) (.*)/$1\n $2 EXTRA/' $dscf
-check
+check reset
: ---------- older ----------
@@ -68,4 +68,14 @@ t-git-config dgit.default.old-dsc-distro test-dummy
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