summaryrefslogtreecommitdiff
path: root/tests.branching
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-22 18:09:40 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-22 18:09:40 +0000
commit7286464a9feed92910fa57185d9eeefcb4da8a3c (patch)
tree8c967e1003f8007ff81a2559d224fd5b1a3ece8e /tests.branching
parent6b96eeda9bacec7edc95690f2ca61d319045f5de (diff)
downloadmorph-7286464a9feed92910fa57185d9eeefcb4da8a3c.tar.gz
Add test case for minedir when a minedir is not in the ancestors
Diffstat (limited to 'tests.branching')
-rw-r--r--tests.branching/minedir-not-found.exit1
-rwxr-xr-xtests.branching/minedir-not-found.script19
-rw-r--r--tests.branching/minedir-not-found.stderr1
3 files changed, 21 insertions, 0 deletions
diff --git a/tests.branching/minedir-not-found.exit b/tests.branching/minedir-not-found.exit
new file mode 100644
index 00000000..d00491fd
--- /dev/null
+++ b/tests.branching/minedir-not-found.exit
@@ -0,0 +1 @@
+1
diff --git a/tests.branching/minedir-not-found.script b/tests.branching/minedir-not-found.script
new file mode 100755
index 00000000..eb8c9d51
--- /dev/null
+++ b/tests.branching/minedir-not-found.script
@@ -0,0 +1,19 @@
+#!/bin/sh
+# Copyright (C) 2012 Codethink Limited
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+scripts/test-morph init "$DATADIR/mine"
+cd "$DATADIR"
+"$SRCDIR/scripts/test-morph" minedir
diff --git a/tests.branching/minedir-not-found.stderr b/tests.branching/minedir-not-found.stderr
new file mode 100644
index 00000000..46dbd84b
--- /dev/null
+++ b/tests.branching/minedir-not-found.stderr
@@ -0,0 +1 @@
+ERROR: Can't find the mine directory