aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-07 14:10:52 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-07 14:10:52 +0300
commitd202883e6d642ba5a973996654cfed674420da22 (patch)
tree498b07bbba9d16a76cf06d84e45929540222dc87 /res
parenta0db476bed7d7b814c426d23b55a74d585a6d8cb (diff)
downloadck-d202883e6d642ba5a973996654cfed674420da22.tar.gz
ck-d202883e6d642ba5a973996654cfed674420da22.tar.bz2
ck-d202883e6d642ba5a973996654cfed674420da22.zip
Update regression tests
Diffstat (limited to 'res')
-rwxr-xr-xres/check_ck11
1 files changed, 11 insertions, 0 deletions
diff --git a/res/check_ck b/res/check_ck
index f8b3a1a..d4683ce 100755
--- a/res/check_ck
+++ b/res/check_ck
@@ -18,6 +18,17 @@ function init {
wait $!
}
+function add_config {
+ echo -e "test $2\n$3" > $2
+ exec $BIN/ck -c $BIN -a $1 $2 > /dev/null &
+ wait $!
+
+ if [ $? -ne 0 ]; then
+ echo -e $ERROR" ck crashed."
+ exit 1
+ fi
+}
+
function clear_tests {
rm $BIN/ckrc
rm $BIN/ckdb