diff options
author | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-10-07 14:10:52 +0300 |
---|---|---|
committer | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-10-07 14:10:52 +0300 |
commit | d202883e6d642ba5a973996654cfed674420da22 (patch) | |
tree | 498b07bbba9d16a76cf06d84e45929540222dc87 /tests/list | |
parent | a0db476bed7d7b814c426d23b55a74d585a6d8cb (diff) | |
download | ck-d202883e6d642ba5a973996654cfed674420da22.tar.gz ck-d202883e6d642ba5a973996654cfed674420da22.tar.bz2 ck-d202883e6d642ba5a973996654cfed674420da22.zip |
Update regression tests
Diffstat (limited to 'tests/list')
-rw-r--r-- | tests/list | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/tests/list b/tests/list deleted file mode 100644 index 7fb4891..0000000 --- a/tests/list +++ /dev/null @@ -1,55 +0,0 @@ -#!/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 - -function run_list { - # add configs to ck - path1=$BIN/test1.conf - exec $BIN/ck conf $BIN add prog1 $path1 -p > /dev/null & - wait $! - - if [ $? -ne 0 ]; then - echo -e $ERROR" ck crashed." - exit 1 - fi - - path2=$BIN/test2.conf - exec $BIN/ck conf $BIN add prog2 $path2 -s > /dev/null & - wait $! - - if [ $? -ne 0 ]; then - echo -e $ERROR" ck crashed." - exit 1 - fi - - path3=$BIN/test3.conf - exec $BIN/ck conf $BIN add prog3 $path3 -p -s > /dev/null & - wait $! - - if [ $? -ne 0 ]; then - echo -e $ERROR" ck crashed." - exit 1 - fi - - 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 -} - -run_list - -clear_tests -echo -e $PASS |