From 7286464a9feed92910fa57185d9eeefcb4da8a3c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 22 Mar 2012 18:09:40 +0000 Subject: Add test case for minedir when a minedir is not in the ancestors --- tests.branching/minedir-not-found.exit | 1 + tests.branching/minedir-not-found.script | 19 +++++++++++++++++++ tests.branching/minedir-not-found.stderr | 1 + 3 files changed, 21 insertions(+) create mode 100644 tests.branching/minedir-not-found.exit create mode 100755 tests.branching/minedir-not-found.script create mode 100644 tests.branching/minedir-not-found.stderr (limited to 'tests.branching') 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 -- cgit v1.2.1