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-7.0.0~2633^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec10066ab23f23841f980f085b5a3983ce74378f;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 <