aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/01_add4
-rw-r--r--test/03_delete4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/01_add b/test/01_add
index 1de64bf..5f156da 100644
--- a/test/01_add
+++ b/test/01_add
@@ -20,8 +20,8 @@ function run_add {
if [ "$(sqlite3 $BIN/ckdb "select name from program where name = '$1'")" != "$1" ]; then
err "$1 is not in the db."
fi
-
- if [ "$(sqlite3 $BIN/ckdb "select path from config where path = '$BIN/$2'")" != "$BIN/$2" ]; then
+
+ if [ "$($BIN/ck -c $BIN ls -p $1)" != "$BIN/$2" ]; then
err "$2 is not in the db."
fi
diff --git a/test/03_delete b/test/03_delete
index 1668576..e4663bd 100644
--- a/test/03_delete
+++ b/test/03_delete
@@ -15,7 +15,7 @@ add_config prog2 $path3
add_config prog2 $path4
# delete path1
-exec $BIN/ck -c $BIN del -c $path1 > /dev/null &
+exec $BIN/ck -c $BIN del prog1 `basename $path1` > /dev/null &
wait $!
for i in $($BIN/ck -c $BIN list paths); do
@@ -26,7 +26,7 @@ for i in $($BIN/ck -c $BIN list paths); do
done
# delete path2 (also prog1)
-exec $BIN/ck -c $BIN del -c $path2 > /dev/null &
+exec $BIN/ck -c $BIN del prog1 `basename $path2` > /dev/null &
wait $!
for i in $($BIN/ck -c $BIN list programs); do