aboutsummaryrefslogtreecommitdiffstats
path: root/test/export.sh
blob: 8daf76a78fb7254161e1d2e00d8bc34024339751 (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
#!/bin/bash

init export

# add configs to ck
path1=$BIN/test1.conf
path2=$BIN/test2.conf
path3=$BIN/test3.conf
path4=$BIN/test4.conf
path5=$BIN/test5.conf

add_config prog1 $path1
add_config prog1 $path2
add_config prog2 $path3
add_config prog2 $path4
add_config prog3 $path5

# export
exec $BIN/ck -c $BIN export >&${V} &
wait $!

if [ ! -f $BIN/ck.tar.gz ]; then
    err "tar.gz was not created"
fi

rm $BIN/ck.tar.gz
clear_tests
echo -e $PASS