aboutsummaryrefslogtreecommitdiffstats
path: root/tests/05_search
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-07 14:10:52 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-07 14:10:52 +0300
commitd202883e6d642ba5a973996654cfed674420da22 (patch)
tree498b07bbba9d16a76cf06d84e45929540222dc87 /tests/05_search
parenta0db476bed7d7b814c426d23b55a74d585a6d8cb (diff)
downloadck-d202883e6d642ba5a973996654cfed674420da22.tar.gz
ck-d202883e6d642ba5a973996654cfed674420da22.tar.bz2
ck-d202883e6d642ba5a973996654cfed674420da22.zip
Update regression tests
Diffstat (limited to 'tests/05_search')
-rw-r--r--tests/05_search23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/05_search b/tests/05_search
new file mode 100644
index 0000000..82772b3
--- /dev/null
+++ b/tests/05_search
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+init search
+
+# setup test configs
+path1=$BIN/test1.conf
+path2=$BIN/test2.conf
+path3=$BIN/test3.conf
+path4=$BIN/test4.conf
+
+add_config prog1 $path1 "search-term"
+add_config prog1 $path2 "search-term"
+add_config prog2 $path3 "search-term"
+add_config prog3 $path4 "search-term"
+
+# delete path1
+if [[ $($BIN/ck conf $BIN search search-term | wc -l) != 4 ]]; then
+ echo -e $ERROR" search failed."
+fi
+done
+
+clear_tests
+echo -e $PASS