From d202883e6d642ba5a973996654cfed674420da22 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Sun, 7 Oct 2018 14:10:52 +0300 Subject: Update regression tests --- tests/04_search | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/04_search (limited to 'tests/04_search') diff --git a/tests/04_search b/tests/04_search new file mode 100644 index 0000000..a72d97a --- /dev/null +++ b/tests/04_search @@ -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" + +# delete path1 +if [[ $($BIN/ck conf $BIN search search-term | wc -l) != 4 ]]; then + echo -e $ERROR" search failed." +fi + +clear_tests +echo -e $PASS -- cgit v1.2.3