summaryrefslogtreecommitdiff
path: root/tests/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-11-17 15:05:35 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-11-24 17:45:27 +0000
commitaa763397e6222caf15f1f4c86e05162b8764f3dc (patch)
treed6eb0898f78fce9db8581582e9c26ac7b1f64870 /tests/tests
parent34490655252a304aff3fecc27dc81f4bc4e6d3fd (diff)
autopkgtests: break out fetch-nogit
Diffstat (limited to 'tests/tests')
-rwxr-xr-xtests/tests/clone-nogit7
-rwxr-xr-xtests/tests/fetch-nogit16
2 files changed, 17 insertions, 6 deletions
diff --git a/tests/tests/clone-nogit b/tests/tests/clone-nogit
index 709aa1f..978afb8 100755
--- a/tests/tests/clone-nogit
+++ b/tests/tests/clone-nogit
@@ -2,17 +2,12 @@
set -e
. tests/lib
-t-git-none
t-archive pari-extra 3-1
+t-git-none
t-dgit clone $p
cd $p
t-cloned-fetched-good
-t-archive pari-extra 3-2~dummy1
-
-t-dgit pull
-t-cloned-fetched-good
-
echo ok
diff --git a/tests/tests/fetch-nogit b/tests/tests/fetch-nogit
new file mode 100755
index 0000000..7937a6f
--- /dev/null
+++ b/tests/tests/fetch-nogit
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+t-archive pari-extra 3-2~dummy1
+t-git-none
+t-worktree 3-1
+cd $p
+old=`git rev-parse HEAD`
+
+t-dgit pull
+
+t-cloned-fetched-good
+t-has-ancestor $old
+
+echo ok