diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ChangeLog | 5 | ||||
-rw-r--r-- | test/Makefile.am | 10 | ||||
-rw-r--r-- | test/Makefile.in | 12 | ||||
-rw-r--r-- | test/Maketests | 2 | ||||
-rw-r--r-- | test/jarebug.awk | 1 | ||||
-rw-r--r-- | test/jarebug.in | 4 | ||||
-rw-r--r-- | test/jarebug.ok | 4 |
7 files changed, 36 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 4a2c7b2b..e926adf1 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2012-05-09 Arnold D. Robbins <arnold@skeeve.com> + + * Makefile.am (jarebug): New test. + * jarebug.awk, jarebug.in, jarebug.ok: New files. + 2012-04-01 John Haque <j.eh@mchsi.com> * Makefile.am (mpfr-test): Add target for manual testing of MPFR diff --git a/test/Makefile.am b/test/Makefile.am index 54d48397..4b0bf819 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -376,6 +376,9 @@ EXTRA_DIST = \ intprec.ok \ iobug1.awk \ iobug1.ok \ + jarebug.awk \ + jarebug.in \ + jarebug.ok \ lc_num1.awk \ lc_num1.ok \ leaddig.awk \ @@ -806,6 +809,7 @@ BASIC_TESTS = \ getline getline2 getline3 getline4 getlnbuf getnr2tb getnr2tm \ gsubasgn gsubtest gsubtst2 gsubtst3 gsubtst4 gsubtst5 gsubtst6 \ gsubtst7 gsubtst8 \ + jarebug \ hex hsprint \ inputred intest intprec iobug1 \ leaddig leadnl litoct longsub longwrds \ @@ -1502,6 +1506,12 @@ mpfrbigint: @$(AWK) -M -f $(srcdir)/$@.awk > _$@ 2>&1 @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ +jarebug:: + @echo $@ + @GAWKLOCALE=ja_JP.EUC-JP ; export GAWKLOCALE ; \ + $(AWK) -f $(srcdir)/$@.awk $(srcdir)/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@ + @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ + # Targets generated for other tests: include Maketests diff --git a/test/Makefile.in b/test/Makefile.in index 50dff8b2..8a290cb4 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -582,6 +582,9 @@ EXTRA_DIST = \ intprec.ok \ iobug1.awk \ iobug1.ok \ + jarebug.awk \ + jarebug.in \ + jarebug.ok \ lc_num1.awk \ lc_num1.ok \ leaddig.awk \ @@ -1012,6 +1015,7 @@ BASIC_TESTS = \ getline getline2 getline3 getline4 getlnbuf getnr2tb getnr2tm \ gsubasgn gsubtest gsubtst2 gsubtst3 gsubtst4 gsubtst5 gsubtst6 \ gsubtst7 gsubtst8 \ + jarebug \ hex hsprint \ inputred intest intprec iobug1 \ leaddig leadnl litoct longsub longwrds \ @@ -1879,6 +1883,12 @@ mpfrbigint: @echo $@ @$(AWK) -M -f $(srcdir)/$@.awk > _$@ 2>&1 @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ + +jarebug:: + @echo $@ + @GAWKLOCALE=ja_JP.EUC-JP ; export GAWKLOCALE ; \ + $(AWK) -f $(srcdir)/$@.awk $(srcdir)/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@ + @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ Gt-dummy: # file Maketests, generated from Makefile.am by the Gentests program addcomma: @@ -2957,7 +2967,7 @@ printfbad1: @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ printfbad3: - @echo printfbad3 + @echo $@ @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ diff --git a/test/Maketests b/test/Maketests index 96825721..f179ab73 100644 --- a/test/Maketests +++ b/test/Maketests @@ -1076,7 +1076,7 @@ printfbad1: @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ printfbad3: - @echo printfbad3 + @echo $@ @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ diff --git a/test/jarebug.awk b/test/jarebug.awk new file mode 100644 index 00000000..906d1846 --- /dev/null +++ b/test/jarebug.awk @@ -0,0 +1 @@ +/.*/ { gsub ("源", "ERROR"); print; } diff --git a/test/jarebug.in b/test/jarebug.in new file mode 100644 index 00000000..6ce66826 --- /dev/null +++ b/test/jarebug.in @@ -0,0 +1,4 @@ +aa瘀a蕙質 +aaa瘀a蕙質 +aaaa瘀a蕙質 +aaaaa瘀a蕙質 diff --git a/test/jarebug.ok b/test/jarebug.ok new file mode 100644 index 00000000..6ce66826 --- /dev/null +++ b/test/jarebug.ok @@ -0,0 +1,4 @@ +aa瘀a蕙質 +aaa瘀a蕙質 +aaaa瘀a蕙質 +aaaaa瘀a蕙質 |