summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-08 03:26:28 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-09 02:18:16 +0000
commitb77d2fd90d945d937ed3983d139d207ab4e1913e (patch)
tree194deb827d3c39cf63f2660be21239952677124f /tests
parent848d950785e8b6442835824a9995fcea83541132 (diff)
test suite: downstream-gitless: Test import-dsc
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/downstream-gitless30
1 files changed, 26 insertions, 4 deletions
diff --git a/tests/tests/downstream-gitless b/tests/tests/downstream-gitless
index 4b72470..b7f1c60 100755
--- a/tests/tests/downstream-gitless
+++ b/tests/tests/downstream-gitless
@@ -35,7 +35,9 @@ filter () {
cd $p
filter \
refs/heads/master \
- refs/remotes/dgit/dgit/sid \
+ refs/remotes/dgit/dgit/sid
+
+t-ref-head
cd ../git/$p.git
filter \
@@ -51,21 +53,41 @@ cd ..
suitespecs=avon
t-reprepro-cfg ds- downstream
t-reprepro-setup ds-
+distro=''
-t-reprepro-includedsc avon $tmp/mirror/pool/main/example_1.1.dsc ds-
+dscf=$tmp/mirror/pool/main/example_1.1.dsc
+t-reprepro-includedsc avon $dscf ds-
t-reprepro-regen ds-
-distro=''
+
+mkdir $p.import
+cd $p.import
+git init
+t-dgit import-dsc $dscf x
+cd ..
t-git-config dgit-suite.avon.distro downstream
t-git-config dgit-distro.downstream.git-check false
t-dgit clone example avon example.avon
-t-reprepro-includedsc avon $tmp/mirror/pool/main/example_2.1.dsc ds-
+
+dscf=$tmp/mirror/pool/main/example_2.1.dsc
+t-reprepro-includedsc avon $dscf ds-
+t-reprepro-regen ds-
+
cd $p.avon
t-dgit fetch
+t-ref-same refs/remotes/dgit/dgit/avon
+
+cd ../$p.import
+git init
+t-dgit import-dsc $dscf +x
+t-ref-same refs/heads/x
+git show x | grep Spong
+cd ..
+
#t-ok