From da31bfd28301d63571eccb4abdd6b0a65b05c621 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 20 Nov 2018 13:49:36 +0200 Subject: Add export action, fix util_is_link bug --- test/export.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/export.sh (limited to 'test/export.sh') diff --git a/test/export.sh b/test/export.sh new file mode 100644 index 0000000..8daf76a --- /dev/null +++ b/test/export.sh @@ -0,0 +1,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 -- cgit v1.2.3