tests/bscan-test
tests/bsr-opt-test
tests/compressed-test
+tests/compressed-encrypt-test
tests/concurrent-jobs-test
tests/data-encrypt-test
#tests/sparse-encrypt-test
SpoolData=yes
}
-Job {
- Name = "Crypto"
- Type = Backup
- Client=@hostname@-fd
- FileSet="SparseCompressedSet"
- Storage = File
- Messages = Standard
- Pool = Default
- Write Bootstrap = "@working_dir@/NightlySave.bsr"
- Maximum Concurrent Jobs = 4
- SpoolData=yes
-}
-
-
Job {
Name = "MonsterSave"
Type = Backup
TestName="bscan-tape"
JobName=bscantape
. scripts/functions
-set_debug 1
+set_debug 0
copy_tape_confs
--- /dev/null
+#!/bin/sh
+#
+# Run a simple backup with encryption and compression of the Bacula build directory
+# then verify the signatures.
+#
+TestName="compressed-encrypt-test"
+JobName=CompressedTest
+. scripts/functions
+set_debug 1
+
+scripts/cleanup
+scripts/copy-crypto-confs
+echo "${cwd}/build" >/tmp/file-list
+
+start_test
+
+cat <<END_OF_DATA >tmp/bconcmds
+@$out /dev/null
+messages
+@$out tmp/log1.out
+label storage=File volume=TestVolume001
+setdebug level=10 fd
+run job=$JobName yes
+wait
+messages
+list volumes
+@#
+@# now do a restore
+@#
+@$out tmp/log2.out
+@# setdebug level=0 fd
+restore where=${cwd}/tmp/bacula-restores storage=File
+5
+mark *
+done
+yes
+wait
+messages
+@$out
+quit
+END_OF_DATA
+
+run_bacula
+sleep 2
+check_for_zombie_jobs storage=File
+stop_bacula
+
+check_two_logs
+check_restore_diff
+end_test
#!/bin/sh
#
-# Run a simple backup (with encryption) of the Bacula build directory
-# then verify the signatures.
+# Run a simple backup with encryption and no other options
+# (i.e. no compression and no sparse handling) of the
+# Bacula build directory.
#
TestName="data-encrypt-test"
JobName=Crypto
scripts/copy-crypto-confs
echo "${cwd}/build" >/tmp/file-list
+change_jobname NightlySave $JobName
start_test
cat <<END_OF_DATA >tmp/bconcmds
check_for_zombie_jobs storage=File
stop_bacula
+du -s build
+du -s tmp/bacula-restores/
+
+
check_two_logs
check_restore_diff
end_test
TestName="migration-volume-test"
JobName=MigVolBackup
. scripts/functions
-set_debug 1
+set_debug 0
. config.out
check_for_zombie_jobs storage=File
stop_bacula
+exit
+
check_two_logs
check_restore_diff
end_test
TestName="restore-seek-tape"
JobName=restore-tape-seek
. scripts/functions
-set_debug 1
+set_debug 0
copy_tape_confs
echo "${cwd}/tmp/build" >/tmp/file-list
#!/bin/sh
#
-# Run a simple backup (with encryption) of the Bacula build directory
-# then verify the signatures.
+# Run a simple backup with encryption and a real sparse file.
#
TestName="sparse-encrypt-test"
JobName=Crypto
. scripts/functions
-set_debug 1
+set_debug 0
scripts/cleanup
scripts/copy-crypto-confs
TestName="two-volume-test"
JobName=TwoVolume
. scripts/functions
-set_debug 1
+set_debug 0
. config.out
cwd=`pwd`
TestName="win32-to-linux-tape"
JobName=AutoLabel
. scripts/functions
-set_debug 1
+set_debug 0
scripts/copy-win32-confs
scripts/cleanup-tape