. ./test-lib.sh
if ! test_have_prereq PERL; then
- say 'skipping git send-email tests, perl not available'
+ skip_all='skipping git send-email tests, perl not available'
test_done
fi
# Exit immediately to prevent hang if a no-confirm test fails
check_no_confirm () {
test -f no_confirm_okay || {
- say 'No confirm test failed; skipping remaining tests to prevent hanging'
+ skip_all='confirm test failed; skipping remaining tests to prevent hanging'
test_done
}
}
grep "do not declare a Content-Transfer-Encoding" stdout &&
grep email-using-8bit stdout &&
grep "Which 8bit encoding" stdout &&
- grep "Content\\|MIME" msgtxt1 >actual &&
+ egrep "Content|MIME" msgtxt1 >actual &&
test_cmp actual content-type-decl
'
git send-email --from=author@example.com --to=nobody@example.com \
--smtp-server="$(pwd)/fake.sendmail" \
email-using-8bit >stdout &&
- grep "Content\\|MIME" msgtxt1 >actual &&
+ egrep "Content|MIME" msgtxt1 >actual &&
test_cmp actual content-type-decl
'
--smtp-server="$(pwd)/fake.sendmail" \
--8bit-encoding=UTF-8 \
email-using-8bit >stdout &&
- grep "Content\\|MIME" msgtxt1 >actual &&
+ egrep "Content|MIME" msgtxt1 >actual &&
test_cmp actual content-type-decl
'