blob: 015b709118c764f8e629372be0b5ac4b285abb4d (
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
25
26
27
28
29
|
#!/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 &
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
|