From 7df91306918acb4517dccf5b7cac53b7a9913f54 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 29 Jul 2008 19:40:05 +0000 Subject: [PATCH] Make strip-test work better git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7448 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/bacula-dir-strip.conf.in | 4 ++-- regress/tests/strip-test | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) 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 -- 2.39.5