aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/Makefile.am12
-rw-r--r--test/Makefile.in12
3 files changed, 19 insertions, 10 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 36fece67..de57804a 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,5 +1,10 @@
2016-08-01 Arnold D. Robbins <arnold@skeeve.com>
+ * Makefile.am (ignrcas3): Adjust to check that the el_GR.xxx locale
+ is present. Move it to extra tests so it's not run by default.
+
+2016-08-02 Arnold D. Robbins <arnold@skeeve.com>
+
* Makefile.am (sortfor2): New test.
* sortfor2.awk, sortfor2.in, sortfor2.ok: New files.
Thanks Christian Schneider <software@chschneider.eu>
diff --git a/test/Makefile.am b/test/Makefile.am
index 327d25b9..3ac9ee70 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1199,7 +1199,7 @@ GAWK_EXT_TESTS = \
fieldwdth forcenum fpat1 fpat2 fpat3 fpat4 fpat5 fpatnull fsfwfs funlen \
functab1 functab2 functab3 fwtest fwtest2 fwtest3 \
genpot gensub gensub2 getlndir gnuops2 gnuops3 gnureops gsubind \
- icasefs icasers id igncdym igncfs ignrcas2 ignrcas3 ignrcas4 ignrcase \
+ icasefs icasers id igncdym igncfs ignrcas2 ignrcas4 ignrcase \
incdupe incdupe2 incdupe3 incdupe4 incdupe5 incdupe6 incdupe7 \
include include2 indirectbuiltin indirectcall indirectcall2 intarray \
lint lintexp lintindex lintint lintlength lintold lintset lintwarn \
@@ -1220,7 +1220,7 @@ GAWK_EXT_TESTS = \
timeout \
watchpoint1
-EXTRA_TESTS = inftest regtest
+EXTRA_TESTS = inftest regtest ignrcas3
INET_TESTS = inetdayu inetdayt inetechu inetecht
@@ -2328,9 +2328,11 @@ symtab10:
ignrcas3::
@echo $@
- @GAWKLOCALE=el_GR.iso88597 \
- AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
- @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+ @if locale -a | grep el_GR.iso88597 > /dev/null ; then \
+ GAWKLOCALE=el_GR.iso88597 \
+ AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ ; \
+ $(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; \
+ fi
# Targets generated for other tests:
include Maketests
diff --git a/test/Makefile.in b/test/Makefile.in
index dc23e9b9..07989791 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1455,7 +1455,7 @@ GAWK_EXT_TESTS = \
fieldwdth forcenum fpat1 fpat2 fpat3 fpat4 fpat5 fpatnull fsfwfs funlen \
functab1 functab2 functab3 fwtest fwtest2 fwtest3 \
genpot gensub gensub2 getlndir gnuops2 gnuops3 gnureops gsubind \
- icasefs icasers id igncdym igncfs ignrcas2 ignrcas3 ignrcas4 ignrcase \
+ icasefs icasers id igncdym igncfs ignrcas2 ignrcas4 ignrcase \
incdupe incdupe2 incdupe3 incdupe4 incdupe5 incdupe6 incdupe7 \
include include2 indirectbuiltin indirectcall indirectcall2 intarray \
lint lintexp lintindex lintint lintlength lintold lintset lintwarn \
@@ -1476,7 +1476,7 @@ GAWK_EXT_TESTS = \
timeout \
watchpoint1
-EXTRA_TESTS = inftest regtest
+EXTRA_TESTS = inftest regtest ignrcas3
INET_TESTS = inetdayu inetdayt inetechu inetecht
MACHINE_TESTS = double1 double2 fmtspcl intformat
MPFR_TESTS = mpfrnr mpfrnegzero mpfrmemok1 mpfrrem mpfrrnd mpfrieee \
@@ -2766,9 +2766,11 @@ symtab10:
ignrcas3::
@echo $@
- @GAWKLOCALE=el_GR.iso88597 \
- AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
- @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+ @if locale -a | grep el_GR.iso88597 > /dev/null ; then \
+ GAWKLOCALE=el_GR.iso88597 \
+ AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ ; \
+ $(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; \
+ fi
Gt-dummy:
# file Maketests, generated from Makefile.am by the Gentests program
addcomma: