From: Eric Bollengier Date: Wed, 9 Sep 2009 07:37:42 +0000 (+0200) Subject: Add a regress script for Exclude Dir Containing option X-Git-Tag: Release-5.0.0~316^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=89c3e33993d8c7bec6cdcb92e735e796c0ae46aa;p=bacula%2Fbacula Add a regress script for Exclude Dir Containing option --- diff --git a/regress/tests/exclude-dir-test b/regress/tests/exclude-dir-test new file mode 100755 index 0000000000..b4ae49c4b5 --- /dev/null +++ b/regress/tests/exclude-dir-test @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Run a simple backup of the Bacula build directory using the compressed option +# then backup a second time and finally restore it +# +TestName="exclude-dir-test" +JobName=exclude-dir +. scripts/functions + +cwd=`pwd` +scripts/cleanup +scripts/copy-test-confs +echo "${cwd}/build" >${cwd}/tmp/file-list +sed 's/Include {/Include { Exclude Dir Containing = ".nobkp"/' $conf/bacula-dir.conf > $tmp/1 +cp -f $tmp/1 $conf/bacula-dir.conf +change_jobname CompressedTest $JobName +start_test + +cat >tmp/bconcmds <