aboutsummaryrefslogtreecommitdiffstats
path: root/tests/05_search
blob: 82772b3ce36c1e432cef3862fc8b23ac26d85b69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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