aboutsummaryrefslogtreecommitdiffstats
path: root/tests/00_init
blob: 1f3f2a6d82249e7178dbda93002338f4b063bdd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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