summaryrefslogtreecommitdiffstats
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/test.sh b/test.sh
index 6dc38e6..ef9c708 100755
--- a/test.sh
+++ b/test.sh
@@ -1,8 +1,9 @@
#!/bin/bash
-CONF=$(realpath conf)
-CONF_HOME=$(mktemp -d)
-export CONF_HOME
+set -e
+
+CONF=$(realpath ./conf)
+export CONF_HOME=$(mktemp -d)
conf1=$(mktemp)
conf2=$(mktemp)
@@ -16,9 +17,13 @@ echo "test config 3" > "$conf3"
echo "test config 4" > "$conf4"
echo "test config 5" > "$conf5"
+$CONF add -t "$conf1"
$CONF add "$conf1"
+$CONF add -t -g conf "$conf2" "$conf3"
$CONF add -g conf "$conf2" "$conf3"
+$CONF add -t -g conf "$conf4"
$CONF add -g conf "$conf4"
+$CONF add -t -g other "$conf5"
$CONF add -g other "$conf5"
[ "$($CONF ls -l | wc -l)" != "5" ] && echo Test failed