aboutsummaryrefslogblamecommitdiffstats
path: root/tests/00_init
blob: 2c5724ec7f6fff8efac7831f926bf3cd96785f72 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
           
 

            


                          
                                                                              

       




                                
                           
                                             


          
                           
                                         


          

            

                     
#!/bin/bash

running init

mkdir -p $TEST_LOCATION/vc
mkdir $TEST_LOCATION/sec

exec $BIN/ck conf $BIN init $TEST_LOCATION/vc $TEST_LOCATION/sec > /dev/null &
wait $!

if [ $? -ne 0 ]; then
    echo -e $ERROR" ck crashed."
    exit 1
fi

if [ ! -f $BIN/ckrc ]; then
    echo -e $ERROR" Config file not created."
    exit 1
fi

if [ ! -f $BIN/ckdb ]; then
    echo -e $ERROR" DB file not created."
    exit 1
fi

rm $BIN/ckrc
rm $BIN/ckdb
rm -rf $TEST_LOCATION
echo -e $PASS