Added unittest for test_finddcsdir
authorUlrich Dangel <mru@grml.org>
Sat, 12 Sep 2009 01:13:00 +0000 (03:13 +0200)
committerUlrich Dangel <mru@grml.org>
Sat, 12 Sep 2009 11:06:15 +0000 (13:06 +0200)
tests/test_dcsdir.sh [new file with mode: 0755]

diff --git a/tests/test_dcsdir.sh b/tests/test_dcsdir.sh
new file mode 100755 (executable)
index 0000000..0f012e8
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/zsh
+
+
+test_finddcsdir() {
+    CMDLINE=''
+    INSTALLED=''
+
+    EXPECTED_PATH='/live/image'
+
+    config_finddcsdir &>/dev/null
+
+    assertEquals 'dcsdir is wrong' ${EXPECTED_PATH} ${DCSDIR}
+
+}
+
+. ./common_tests $0