From: Kern Sibbald Date: Tue, 29 Jul 2008 19:40:05 +0000 (+0000) Subject: Make strip-test work better X-Git-Tag: Release-7.0.0~4258 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=41108f34a330c1bf803b93cca93ece7cdedf84a9;p=bacula%2Fbacula Make strip-test work better git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7448 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/bacula-dir-strip.conf.in b/regress/scripts/bacula-dir-strip.conf.in index fc1588218d..c490892ae1 100644 --- a/regress/scripts/bacula-dir-strip.conf.in +++ b/regress/scripts/bacula-dir-strip.conf.in @@ -104,13 +104,13 @@ Job { FileSet { Name = "Full Set" Include { Options { - strippath = 1 + strippath = 3 compression = gzip } File = <@tmpdir@/file-list } Include { - File = /etc +# File = /usr/include } } diff --git a/regress/tests/strip-test b/regress/tests/strip-test index 6b86ce4ac9..e129fad8f9 100755 --- a/regress/tests/strip-test +++ b/regress/tests/strip-test @@ -10,7 +10,10 @@ scripts/cleanup scripts/copy-strip-confs -echo "${cwd}/build/src/dird" >${cwd}/tmp/file-list +rm -rf /tmp/$$-strip +mkdir /tmp/$$-strip +cp -rpf ${cwd}/build/src/dird/ /tmp/$$-strip/ +echo "/tmp/$$-strip" >${cwd}/tmp/file-list change_jobname NightlySave $JobName start_test @@ -54,6 +57,17 @@ check_for_zombie_jobs storage=FileStorage stop_bacula check_two_logs -# check_restore_diff does not work because we cannot read all /etc, so skip it -dstat=0 +# +# Kludge remove this next line when strip is fixed +# +rm -rf tmp/bacula-restores/tmp +if test "$debug" -eq 1 ; then + diff -ur /tmp/$$-strip/dird/ tmp/bacula-restores/ +else + diff -r /tmp/$$-strip/dird/ tmp/bacula-restores/ 2>&1 >/dev/null +fi +dstat=$? + +rm -rf /tmp/$$-strip + end_test