From 78ee1c72c670a71bfd165448676fc65bff802916 Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 19 Nov 2018 19:11:06 +0200 Subject: Add ability to use ck without secret dir --- test/search.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/search.sh (limited to 'test/search.sh') diff --git a/test/search.sh b/test/search.sh new file mode 100644 index 0000000..a315730 --- /dev/null +++ b/test/search.sh @@ -0,0 +1,22 @@ +#!/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" + +# search +if [[ $($BIN/ck -c $BIN search search-term | wc -l) != 4 ]]; then + err "search failed." +fi + +clear_tests +echo -e $PASS -- cgit v1.2.3