From 46421fedf6fe291bfcb63482f3bfa9bb2c7fdff6 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 23 Oct 2018 17:42:28 +0300 Subject: Remove site clutter and rename test folder (tests -> test) --- test/00_init | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/00_init (limited to 'test/00_init') diff --git a/test/00_init b/test/00_init new file mode 100644 index 0000000..1f3f2a6 --- /dev/null +++ b/test/00_init @@ -0,0 +1,24 @@ +#!/bin/bash + +running init + +mkdir -p $TEST_LOCATION/vc +mkdir $TEST_LOCATION/sec + +exec $BIN/ck -c $BIN init $TEST_LOCATION/vc $TEST_LOCATION/sec > /dev/null & +wait $! + +if [ $? -ne 0 ]; then + err "ck crashed." +fi + +if [ ! -f $BIN/ckrc ]; then + err "Config file not created." +fi + +if [ ! -f $BIN/ckdb ]; then + err "DB file not created." +fi + +clear_tests 2&>1 /dev/null +echo -e $PASS -- cgit v1.2.3