From: Kern Sibbald Date: Mon, 5 May 2003 09:00:26 +0000 (+0000) Subject: Add new test X-Git-Tag: Release-1.31~166 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d811f3933932212d129feb09b1429316367fb86;p=bacula%2Fbacula Add new test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@490 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/verify-vol-test b/regress/tests/verify-vol-test new file mode 100755 index 0000000000..036a669f38 --- /dev/null +++ b/regress/tests/verify-vol-test @@ -0,0 +1,54 @@ +#!/bin/sh +# +# Run a simple backup of the Bacula build directory +# then verify the catalog. +# +cwd=`pwd` +scripts/copy-test-confs +rm -rf /tmp/TestVolume001 /tmp/bacula-restores +bin/bacula stop 2>&1 >/dev/null +bin/drop_sqlite_tables +bin/make_sqlite_tables + +echo " " +echo " " +echo " === Starting verify Volume Test ===" +echo " " + +bin/bacula start +bin/console -c bin/console.conf <&1 >/dev/null +if [ $? != 0 ] ; then + echo " " + echo " " + echo " ===== Verify Volume failed!!! ===== " + echo " ===== Verify Volume failed!!! ===== " >>test.out + echo " " +else + echo " ===== Verify Volume Test OK ===== " + echo " ===== Verify Volume Test OK ===== " >>test.out +fi +rm -rf /tmp/bacula-restores +rm -f /tmp/original