From: Kern Sibbald Date: Tue, 10 Jun 2003 20:39:11 +0000 (+0000) Subject: Add bscan test X-Git-Tag: Release-1.31~80 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3db9cf6a2ab466b7f61a0ceddda621deb3fc5fc9;p=bacula%2Fbacula Add bscan test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@576 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/bscan-test b/regress/tests/bscan-test new file mode 100755 index 0000000000..98278b2e55 --- /dev/null +++ b/regress/tests/bscan-test @@ -0,0 +1,80 @@ +#!/bin/sh +# +# Run a simple backup of the Bacula build directory but +# split the archive into two volumes then bscan it +# into the catalog after the backup. It also to a limited +# extent tests the purge volume and delete volume commands. +# +cwd=`pwd` +scripts/copy-test-confs +scripts/cleanup +echo "${cwd}/build" >/tmp/file-list +bin/bacula stop 2>&1 >/dev/null +bin/drop_sqlite_tables +bin/make_sqlite_tables + +echo " " +echo " " +echo " === Starting bscan-test ===" +echo " === Starting bscan-test ===" >working/log +echo " " + +bin/bacula start +bin/console -c bin/console.conf <tmp/bscan.bsr +bin/bscan -w working -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp +bin/bacula start +bin/console -c bin/console.conf <>test.out + echo " " +else + echo " ===== bscan-test Bacula source OK ===== " + echo " ===== bscan-test OK ===== " >>test.out + scripts/cleanup +fi