diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-04-07 21:43:38 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-04-07 21:43:38 +0300 |
commit | 8ae4556cd755b7902afba7ab89313d5aa8801173 (patch) | |
tree | 2bb7041df050d8744d7fa2517ac0aca460ea7a9b /test | |
parent | 12a5a583e98ba7a6886407df6df74a1dbb65ae64 (diff) | |
download | egawk-8ae4556cd755b7902afba7ab89313d5aa8801173.tar.gz egawk-8ae4556cd755b7902afba7ab89313d5aa8801173.tar.bz2 egawk-8ae4556cd755b7902afba7ab89313d5aa8801173.zip |
Single-byte locales use locale settings for ignoring case.
Diffstat (limited to 'test')
-rw-r--r-- | test/ChangeLog | 5 | ||||
-rw-r--r-- | test/Makefile.am | 6 | ||||
-rw-r--r-- | test/Makefile.in | 12 | ||||
-rw-r--r-- | test/Maketests | 6 | ||||
-rw-r--r-- | test/range2.awk | 1 | ||||
-rw-r--r-- | test/range2.ok | 1 |
6 files changed, 27 insertions, 4 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index de10e221..389edc9a 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2019-04-07 Arnold D. Robbins <arnold@skeeve.com> + + * Makefile.am (EXTRA_DIST): New test: range2. Needs LC_ALL=C. + * range2.awk, range2.ok: New files. + 2019-03-17 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (mbprintf5): Add a minus so that the tests diff --git a/test/Makefile.am b/test/Makefile.am index 37d49848..57d0444c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -946,6 +946,8 @@ EXTRA_DIST = \ range1.awk \ range1.in \ range1.ok \ + range2.awk \ + range2.ok \ readbuf.awk \ readbuf.ok \ readdir.awk \ @@ -1301,7 +1303,7 @@ BASIC_TESTS = \ paramasfunc1 paramasfunc2 paramdup paramres paramtyp paramuninitglobal \ parse1 parsefld parseme pcntplus posix2008sub prdupval prec printf0 \ printf1 printfchar prmarscl prmreuse prt1eval prtoeval \ - rand randtest range1 readbuf rebrackloc rebt8b1 rebuild redfilnm regeq \ + rand randtest range1 range2 readbuf rebrackloc rebt8b1 rebuild redfilnm regeq \ regexpbrack regexpbrack2 regexprange regrange reindops reparse resplit \ rri1 rs rscompat rsnul1nl rsnulbig rsnulbig2 rstest1 rstest2 rstest3 \ rstest4 rstest5 rswhite \ @@ -1422,7 +1424,7 @@ CHECK_MPFR = \ # Lists of tests that need particular locales NEED_LOCALE_C = \ - clos1way gsubtst6 + clos1way gsubtst6 range2 NEED_LOCALE_EN = \ backbigs1 backsmalls1 backsmalls2 concat4 dfamb1 ignrcas2 lc_num1 \ diff --git a/test/Makefile.in b/test/Makefile.in index b4c62c15..fea54584 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1205,6 +1205,8 @@ EXTRA_DIST = \ range1.awk \ range1.in \ range1.ok \ + range2.awk \ + range2.ok \ readbuf.awk \ readbuf.ok \ readdir.awk \ @@ -1560,7 +1562,7 @@ BASIC_TESTS = \ paramasfunc1 paramasfunc2 paramdup paramres paramtyp paramuninitglobal \ parse1 parsefld parseme pcntplus posix2008sub prdupval prec printf0 \ printf1 printfchar prmarscl prmreuse prt1eval prtoeval \ - rand randtest range1 readbuf rebrackloc rebt8b1 rebuild redfilnm regeq \ + rand randtest range1 range2 readbuf rebrackloc rebt8b1 rebuild redfilnm regeq \ regexpbrack regexpbrack2 regexprange regrange reindops reparse resplit \ rri1 rs rscompat rsnul1nl rsnulbig rsnulbig2 rstest1 rstest2 rstest3 \ rstest4 rstest5 rswhite \ @@ -1683,7 +1685,7 @@ CHECK_MPFR = \ # Lists of tests that need particular locales NEED_LOCALE_C = \ - clos1way gsubtst6 + clos1way gsubtst6 range2 NEED_LOCALE_EN = \ backbigs1 backsmalls1 backsmalls2 concat4 dfamb1 ignrcas2 lc_num1 \ @@ -3584,6 +3586,12 @@ range1: @AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +range2: + @echo $@ + @[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=C; export GAWKLOCALE; \ + AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + readbuf: @echo $@ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/Maketests b/test/Maketests index 48b24333..e557cb2b 100644 --- a/test/Maketests +++ b/test/Maketests @@ -850,6 +850,12 @@ range1: @AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +range2: + @echo $@ + @[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=C; export GAWKLOCALE; \ + AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + readbuf: @echo $@ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/range2.awk b/test/range2.awk new file mode 100644 index 00000000..c4f11eaa --- /dev/null +++ b/test/range2.awk @@ -0,0 +1 @@ +BEGIN { print("a" ~ /^[\300-\337]/) } diff --git a/test/range2.ok b/test/range2.ok new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/test/range2.ok @@ -0,0 +1 @@ +0 |