X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fweird-files-test;h=bd211f0b1de277fb03cc9ddbfab20ce51e67be24;hb=8ee711f2e7b445b00de916f5712c59749afc2407;hp=96fed8932223a49901bfacee8520b37c61a98fed;hpb=00b2e2f4e4580254fdcd9a4f746faedd2c955386;p=bacula%2Fbacula diff --git a/regress/tests/weird-files-test b/regress/tests/weird-files-test index 96fed89322..bd211f0b1d 100755 --- a/regress/tests/weird-files-test +++ b/regress/tests/weird-files-test @@ -6,7 +6,6 @@ TestName="weird-files-test" JobName=wierd-files . scripts/functions -set_debug 0 if test ! -d weird-files ; then echo " " @@ -24,8 +23,13 @@ change_jobname NightlySave $JobName # that are only saved once. In 1.33, Bacula now deals # with this situation. # -echo "${cwd}/weird-files" >/tmp/file-list -echo "${cwd}/weird-files" >>/tmp/file-list +echo "${cwd}/weird-files" >${cwd}/tmp/file-list +echo "${cwd}/weird-files" >>${cwd}/tmp/file-list + +# Create a Unix domain socket (sock-file) +cd weird-files +perl socket.pl +cd .. start_test @@ -50,13 +54,16 @@ done yes wait messages -@$out quit END_OF_DATA run_bacula check_for_zombie_jobs storage=File stop_bacula +# Note, the Unix domain socket (sock-file) is not restored +# by Bacula so we delete it for the diffs +rm -f weird-files/sock-file +touch weird-files tmp/bacula-restores${cwd}/weird-files ${cwd}/bin/testls weird-files | sort >${cwd}/tmp/original cd tmp/bacula-restores${cwd} @@ -64,6 +71,7 @@ ${cwd}/bin/testls weird-files | sort >${cwd}/tmp/restored cd ${cwd} check_two_logs -diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null +#diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null +diff -u ${cwd}/tmp/original ${cwd}/tmp/restored dstat=$? end_test