X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fregexwhere-test;h=692bd60b3670e68199d04904710fc808baf0a10e;hb=1e11e29bf661a26cef2419a31d82b6657370f0af;hp=cecbc5f95f47c6bd998ccd3ab7110648486ffcb5;hpb=8fb95321ef1b87c04a16ed96a85582e673a9222b;p=bacula%2Fbacula diff --git a/regress/tests/regexwhere-test b/regress/tests/regexwhere-test index cecbc5f95f..692bd60b36 100755 --- a/regress/tests/regexwhere-test +++ b/regress/tests/regexwhere-test @@ -8,15 +8,12 @@ JobName=backup . scripts/functions -copy_test_confs +scripts/cleanup +scripts/copy-test-confs -rm -f bin/bacula-dir.conf -rm -f tmp/RUN* -rm -f ${cwd}/build/po/*old* -rm -rf tmp/po /bin/cp -f scripts/bacula-dir.conf.regexwhere bin/bacula-dir.conf -echo "${cwd}/build/po" >/tmp/file-list +echo "${cwd}/build/po" >tmp/file-list start_test @@ -146,7 +143,7 @@ mod @## Where m 9 -/tmp/bacula-restore-it +tmp/bacula-restore-it m @## use add suffix 10 @@ -160,9 +157,8 @@ messages quit END_OF_DATA +run_bacula -bin/bacula start -cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf > /dev/null stop_bacula @@ -186,7 +182,7 @@ fi J=JobB # $cwd begins with / if grep -q "Restore OK" tmp/RUN_$J && - grep -q "/tmp/bacula-restore${cwd}/po/fr.po.old" tmp/RUN_$J + grep -q "tmp/bacula-restore${cwd}/po/fr.po.old" tmp/RUN_$J then [ "$debug" = 1 ] && echo $J ok else @@ -196,7 +192,7 @@ fi J=JobC if grep -q "Restore OK" tmp/RUN_$J && - grep -q "/tmp/bacula-restore${cwd}/build/po/fr.po" tmp/RUN_$J + grep -q "tmp/bacula-restore${cwd}/build/po/fr.po" tmp/RUN_$J then [ "$debug" = 1 ] && echo $J ok else @@ -235,7 +231,7 @@ fi J=JobG if grep -q "Restore OK" tmp/RUN_$J && - grep -q "/tmp/bacula-restore/build/po/fr.po" tmp/RUN_$J + grep -q "tmp/bacula-restore/build/po/fr.po" tmp/RUN_$J then [ "$debug" = 1 ] && echo $J ok else @@ -267,7 +263,7 @@ fi J=JobJ if grep -q "Restore OK" tmp/RUN_$J && grep -q "/etc/passwd.old" tmp/RUN_$J && - grep -q -e "Where: */tmp/bacula-restore-it" tmp/RUN_$J && + grep -q -e "Where: *tmp/bacula-restore-it" tmp/RUN_$J && grep -q "${cwd}/build/po/fr.po.old" tmp/RUN_$J then [ "$debug" = 1 ] && echo $J ok