diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2023-03-23 20:41:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2023-03-23 20:41:03 +0200 |
commit | 5b82f0db728b5495ac4c46df41bc02e3efc7fbf6 (patch) | |
tree | a78020c585543de4a8bc187408077a98ad996378 | |
parent | e7e10331fafe73ed63b77969823aa06b77285c40 (diff) | |
download | gawk-5b82f0db728b5495ac4c46df41bc02e3efc7fbf6.tar.gz |
Add some tests.
-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/unicode1.awk | 6 | ||||
-rw-r--r-- | test/unicode1.ok | 4 |
6 files changed, 35 insertions, 4 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index e206fa9b..f16019f2 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2023-03-23 Arnold D. Robbins <arnold@skeeve.com> + + * Makefile.am (EXTRA_DIST): New test: unicode1. + * unicode1.awk, unicode1.ok: New files. + 2023-03-09 Arnold D. Robbins <arnold@skeeve.com> * badargs.ok: Update after code changes. diff --git a/test/Makefile.am b/test/Makefile.am index 6d000178..00034a15 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1404,6 +1404,8 @@ EXTRA_DIST = \ typeof5.ok \ typeof6.awk \ typeof6.ok \ + unicode1.awk \ + unicode1.ok \ uninit2.awk \ uninit2.ok \ uninit3.awk \ @@ -1537,7 +1539,7 @@ GAWK_EXT_TESTS = \ symtab3 symtab4 symtab5 symtab6 symtab7 symtab8 symtab9 symtab10 \ symtab11 symtab12 timeout typedregex1 typedregex2 typedregex3 \ typedregex4 typedregex5 typedregex6 typeof1 typeof2 typeof3 \ - typeof4 typeof5 typeof6 watchpoint1 + typeof4 typeof5 typeof6 unicode1 watchpoint1 ARRAYDEBUG_TESTS = arrdbg @@ -1625,7 +1627,7 @@ NEED_LOCALE_EN = \ backbigs1 backsmalls1 backsmalls2 commas concat4 dfamb1 ignrcas2 lc_num1 \ mbfw1 mbprintf1 mbprintf3 mbprintf4 mbstr1 mbstr2 posix_compare \ printhuge reint2 rri1 subamp subi18n wideidx wideidx2 \ - widesub widesub2 widesub3 widesub4 + widesub widesub2 widesub3 widesub4 unicode1 # Unused at the moment, since nlstringtest has additional stuff it does # NEED_LOCALE_FR = diff --git a/test/Makefile.in b/test/Makefile.in index 1cd775d1..d2343a7d 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1668,6 +1668,8 @@ EXTRA_DIST = \ typeof5.ok \ typeof6.awk \ typeof6.ok \ + unicode1.awk \ + unicode1.ok \ uninit2.awk \ uninit2.ok \ uninit3.awk \ @@ -1801,7 +1803,7 @@ GAWK_EXT_TESTS = \ symtab3 symtab4 symtab5 symtab6 symtab7 symtab8 symtab9 symtab10 \ symtab11 symtab12 timeout typedregex1 typedregex2 typedregex3 \ typedregex4 typedregex5 typedregex6 typeof1 typeof2 typeof3 \ - typeof4 typeof5 typeof6 watchpoint1 + typeof4 typeof5 typeof6 unicode1 watchpoint1 ARRAYDEBUG_TESTS = arrdbg EXTRA_TESTS = inftest regtest ignrcas3 @@ -1890,7 +1892,7 @@ NEED_LOCALE_EN = \ backbigs1 backsmalls1 backsmalls2 commas concat4 dfamb1 ignrcas2 lc_num1 \ mbfw1 mbprintf1 mbprintf3 mbprintf4 mbstr1 mbstr2 posix_compare \ printhuge reint2 rri1 subamp subi18n wideidx wideidx2 \ - widesub widesub2 widesub3 widesub4 + widesub widesub2 widesub3 widesub4 unicode1 # Unused at the moment, since nlstringtest has additional stuff it does @@ -5322,6 +5324,12 @@ typeof6: @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +unicode1: + @echo $@ + @-[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE; \ + AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + double1: @echo $@ $(ZOS_FAIL) @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/Maketests b/test/Maketests index 628ff3fa..09d9c02c 100644 --- a/test/Maketests +++ b/test/Maketests @@ -2252,6 +2252,12 @@ typeof6: @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +unicode1: + @echo $@ + @-[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE; \ + AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + double1: @echo $@ $(ZOS_FAIL) @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/unicode1.awk b/test/unicode1.awk new file mode 100644 index 00000000..6f97a2d9 --- /dev/null +++ b/test/unicode1.awk @@ -0,0 +1,6 @@ +BEGIN { + print "\u03b1" # alpha + print "\u05d0" # alef + print "\u20b9f" # hiragana "a" (i think) + print "\u1f648" # see no evil monkey +} diff --git a/test/unicode1.ok b/test/unicode1.ok new file mode 100644 index 00000000..a8dbd054 --- /dev/null +++ b/test/unicode1.ok @@ -0,0 +1,4 @@ +α +א +𠮟 +🙈 |