aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/00_init2
-rw-r--r--test/01_add2
-rw-r--r--test/03_delete6
-rw-r--r--test/04_search2
-rw-r--r--test/05_restore4
5 files changed, 8 insertions, 8 deletions
diff --git a/test/00_init b/test/00_init
index daba787..a38c81c 100644
--- a/test/00_init
+++ b/test/00_init
@@ -5,7 +5,7 @@ running init
mkdir -p $TEST_LOCATION/vc
mkdir $TEST_LOCATION/sec
-exec $BIN/ck -c $BIN init $TEST_LOCATION/vc $TEST_LOCATION/sec > /dev/null &
+exec $BIN/ck -c $BIN init $TEST_LOCATION/vc $TEST_LOCATION/sec >&${V} &
wait $!
if [ $? -ne 0 ]; then
diff --git a/test/01_add b/test/01_add
index 5f156da..05cf13f 100644
--- a/test/01_add
+++ b/test/01_add
@@ -9,7 +9,7 @@ echo "Test 3" > $BIN/test3.conf
function run_add {
# add configs to ck
- exec $BIN/ck -c $BIN add $1 $BIN/$2 $3 $4 > /dev/null &
+ exec $BIN/ck -c $BIN add $1 $BIN/$2 $3 $4 >&${V} &
wait $!
if [ $? -ne 0 ]; then
diff --git a/test/03_delete b/test/03_delete
index e4663bd..7e31d66 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 prog1 `basename $path1` > /dev/null &
+exec $BIN/ck -c $BIN del prog1 `basename $path1` >&${V} &
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 prog1 `basename $path2` > /dev/null &
+exec $BIN/ck -c $BIN del prog1 `basename $path2` >&${V} &
wait $!
for i in $($BIN/ck -c $BIN list programs); do
@@ -36,7 +36,7 @@ for i in $($BIN/ck -c $BIN list programs); do
done
# delete prog2
-exec $BIN/ck -c $BIN del prog2 > /dev/null &
+exec $BIN/ck -c $BIN del prog2 >&${V} &
wait $!
for i in $($BIN/ck -c $BIN list paths); do
diff --git a/test/04_search b/test/04_search
index c3600c1..a315730 100644
--- a/test/04_search
+++ b/test/04_search
@@ -13,7 +13,7 @@ add_config prog1 $path2 "search-term"
add_config prog2 $path3 "search-term"
add_config prog3 $path4 "search-term"
-# delete path1
+# search
if [[ $($BIN/ck -c $BIN search search-term | wc -l) != 4 ]]; then
err "search failed."
fi
diff --git a/test/05_restore b/test/05_restore
index b27ed35..013e252 100644
--- a/test/05_restore
+++ b/test/05_restore
@@ -18,7 +18,7 @@ add_config prog2 $path4
rm $path1 $path2
# restore them
-exec $BIN/ck -c $BIN restore -p prog1 > /dev/null &
+exec $BIN/ck -c $BIN restore -p prog1 >&${V} &
wait $!
for i in $($BIN/ck -c $BIN list -p prog1); do
@@ -32,7 +32,7 @@ done
rm $path1 $path2 $path3 $path4
# restore all
-exec $BIN/ck -c $BIN restore all > /dev/null &
+exec $BIN/ck -c $BIN restore all >&${V} &
wait $!
for i in $($BIN/ck -c $BIN list paths); do