blob: 014ae62013355131694a8c8503f085740809afa9 (
plain) (
tree)
|
|
#!/bin/bash
init list
# setup test configs
echo "Test 1" > $BIN/test1.conf
echo "Test 2" > $BIN/test2.conf
echo "Test 3" > $BIN/test3.conf
# add configs to ck
path1=$BIN/test1.conf
path2=$BIN/test2.conf
path3=$BIN/test3.conf
add_config prog1 $path1
add_config prog2 $path2
add_config prog3 $path3
for i in $($BIN/ck conf $BIN list paths); do
if [[ "$i" != "$path1" ]] && [[ "$i" != "$path2" ]] && [[ "$i" != "$path3" ]]; then
echo "path good";
fi
done
for i in $($BIN/ck conf $BIN list programs); do
if [[ "$i" != "prog1" ]] && [[ "$i" != "prog2" ]] && [[ "$i" != "prog3" ]]; then
echo "program good";
fi
done
clear_tests
echo -e $PASS
|