+config.out
build
bin
test.out
echo "s%@tape_drive1@%${5}%g" >>${out}
echo "s%@smtp_host@%${6}%g" >>${out}
+echo "AUTOCHANGER=\"${3}\"" >config.out
+echo "TAPE_DRIVE1=\"${5}\"" >>config.out
+
+
# process .in files with sed script
sed -f ${out} ${cwd}/scripts/test-bacula-dir.conf.in >${cwd}/scripts/test-bacula-dir.conf
sed -f ${out} ${cwd}/scripts/new-test-bacula-dir.conf.in >${cwd}/scripts/new-test-bacula-dir.conf
#
# This script uses the autochanger and two tapes
#
-if test ! -e /dev/nst1; then
- echo "Skipping 2drive-incremenatal-2tape test"
+. config.out
+if test x${TAPE_DRIVE1} = x/dev/null ; then
+ echo "Skipping 2drive-incremenatal-2tape test. No second drive."
exit
fi
debug=0
#
# This script uses the autochanger and two tapes
#
+. config.out
+if test x${AUTOCHANGER} = x/dev/null ; then
+ echo "incremental-2tape test skipped. No autochanger."
+ exit
+fi
debug=0
if test "$debug" -eq 1 ; then
out="tee"
# is in /tmp/file-list, which is by default the Bacula
# source code (i.e. the build directory).
#
+. config.out
+if test x${AUTOCHANGER} = x/dev/null ; then
+ echo "two-pool-tape test skipped. No autochanger."
+ exit
+fi
debug=0
if test "$debug" -eq 1 ; then
out="tee"
# Note, this test simulates the tape filling and writing to
# the next tape.
#
+. config.out
+if test x${AUTOCHANGER} = x/dev/null ; then
+ echo "two-volume-tape test skipped. No autochanger."
+ exit
+fi
debug=0
if test "$debug" -eq 1 ; then
out="tee"