J=JobF
if grep -q "Restore OK" tmp/RUN_$J &&
- grep -q "/tmp/regress/build/po/fr.po" tmp/RUN_$J
+ grep -q "${cwd}/build/po/fr.po" tmp/RUN_$J
then
[ "$debug" = 1 ] && echo $J ok
else
fi
J=JobI
-if grep "Restore OK" tmp/RUN_$J &&
- grep "${cwd}/build/po/fr.po.old" tmp/RUN_$J
+if grep -q "Restore OK" tmp/RUN_$J &&
+ grep -q "${cwd}/build/po/fr.po.old" tmp/RUN_$J
then
[ "$debug" = 1 ] && echo $J ok
else
J=JobJ
-if grep "Restore OK" tmp/RUN_$J &&
- grep "/etc/passwd.old" tmp/RUN_$J &&
- grep "Where: /tmp/bacula-restore-it" tmp/RUN_$J &&
- grep "${cwd}/build/po/fr.po.old" tmp/RUN_$J
+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 "${cwd}/build/po/fr.po.old" tmp/RUN_$J
then
[ "$debug" = 1 ] && echo $J ok
else
# test with bregtest
find ${cwd}/build > tmp/list
-sed -e 's/readme/readme/i' -e 's/\([ch]\)$/.old.\1/' tmp/list > /tmp/list.sed
-./build/src/tools/bregtest -s -f tmp/list -e '/readme/readme/i,/([ch])$/.old.$1/' > /tmp/list.bsed
+# thanks to BSD like system for that...
+sed -e 's/[Rr][Ee][Aa][Dd][Mm][Ee]/readme/' -e 's/\([ch]\)$/.old.\1/' tmp/list > tmp/list.sed
+./build/src/tools/bregtest -s -f tmp/list -e '/readme/readme/i,/([ch])$/.old.$1/' > tmp/list.bsed
if diff -q tmp/list.bsed tmp/list.sed
then
fi
-end_test
\ No newline at end of file
+end_test