RunTest.in revision 4d553781254e46f1dfc8d86b79667a74fb8a3eb5
203N/A# Select which tests to run; if no selection, run all 203N/A *)
echo "Unknown test number $1";
exit 1;;
1273N/Aif [
"@LINK_SIZE@" !=
"" -a
"@LINK_SIZE@" !=
"-DLINK_SIZE=2" ] ;
then 3661N/A echo "Can't run test 2 with an internal link size other than 2" 3996N/A echo "Can't run test 5 with an internal link size other than 2" 203N/A echo "Can't run test 6 with an internal link size other than 2" 203N/Aif [
"@UTF8@" =
"" ] ;
then 203N/A echo "Can't run test 4 because UTF-8 support is not configured" 203N/A echo "Can't run test 5 because UTF-8 support is not configured" 203N/A echo "Can't run test 6 because UTF-8 support is not configured" 203N/Aif [
"@UCP@" =
"" ] ;
then 203N/A echo "Can't run test 6 because Unicode property support is not configured" 203N/A if [
"@UTF8@" !=
"" -a
"@UCP@" !=
"" ] ;
then do6=
yes;
fi 203N/A# Primary test, Perl-compatible 4234N/A echo "Test 1: main functionality (Perl compatible)" if [ $? !=
0 ] ;
then exit 1;
fi # PCRE tests that are not Perl-compatible - API & error tests, mostly if [
"@LINK_SIZE@" =
"" -o
"@LINK_SIZE@" =
"-DLINK_SIZE=2" ] ;
then echo "Test 2: API and error handling (not Perl compatible)" if [ $? !=
0 ] ;
then exit 1;
fi echo "The two main tests ran OK" # Locale-specific tests, provided the "fr_FR" locale is available echo "Test 3: locale-specific features (using 'fr_FR' locale)" echo "Locale test did not run entirely successfully." echo "This usually means that there is a problem with the locale" echo "settings rather than a bug in PCRE." echo "Locale test ran OK" echo "Cannot test locale-specific features - 'fr_FR' locale not found," echo "or the \"locale\" command is not available to check for it." # Additional tests for UTF8 support echo "Test 4: UTF-8 support (Perl compatible)" if [ $? !=
0 ] ;
then exit 1;
fi if [
"@LINK_SIZE@" =
"" -o
"@LINK_SIZE@" =
"-DLINK_SIZE=2" ] ;
then echo "Test 5: API and internals for UTF-8 support (not Perl compatible)" if [ $? !=
0 ] ;
then exit 1;
fi echo "UTF8 internals test ran OK" if [
"@LINK_SIZE@" =
"" -o
"@LINK_SIZE@" =
"-DLINK_SIZE=2" ] ;
then echo "Test 6: Unicode property support" if [ $? !=
0 ] ;
then exit 1;
fi echo "Unicode properties test ran OK"