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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#!/bin/sh
# $Revision: $
# $Date: $
set -e
# Each test script should include testlib.sh
source testlib.sh
# When the test is ready, set this to false for nice outputs.
# if you want to see what happens, use those flags
# verbose="true"
# warnings="true"
# The conffile part of the test, see confs/* for details.
source confs/base.conf
export BM_ARCHIVE_METHOD="tarball"
export BM_TARBALL_NAMEFORMAT="long"
export BM_TARBALL_FILETYPE="tar.gz"
export BM_TARBALL_DUMPSYMLINKS="false"
export BM_ARCHIVE_ROOT="repository"
export BM_ARCHIVE_METHOD="tarball"
declare -a BM_TARBALL_TARGETS
BM_TARBALL_TARGETS[0]="$PWD/dir*"
BM_TARBALL_TARGETS[1]="$PWD/Name with spaces and s"
source $locallib/sanitize.sh
bm_init_env
bm_init_today
# The test actions
rm -rf $BM_REPOSITORY_ROOT
rm -rf dir1 dir2 "Name with spaces and s"
mkdir dir1
cat /etc/passwd > dir1/file1
mkdir dir2
mkdir "Name with spaces and s"
touch "Name with spaces and s"/toto
create_directories
make_archives
rm -rf dir1
rm -rf dir2
rm -rf "Name with spaces and s"
rm -rf repository
exit 0
|