aboutsummaryrefslogblamecommitdiffstats
path: root/test/init.sh
blob: a38c81c3477e54b3b2a46e400d57aad87c639a0e (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 -c $BIN init $TEST_LOCATION/vc $TEST_LOCATION/sec >&${V} &
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 > /dev/null 2>&1
echo -e $PASS