diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-07-12 20:58:36 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-07-12 20:58:36 +0300 |
commit | 4687b886c1181e9e9a0c27bb95714c4a414a7a78 (patch) | |
tree | 0c21164abfa6199f79b386104aac3938cd09df4f /test/Makefile.am | |
parent | 8f54bef8fb8293b376d17eb872be3d64ed4125dc (diff) | |
download | egawk-4687b886c1181e9e9a0c27bb95714c4a414a7a78.tar.gz egawk-4687b886c1181e9e9a0c27bb95714c4a414a7a78.tar.bz2 egawk-4687b886c1181e9e9a0c27bb95714c4a414a7a78.zip |
Fix testext test for MPFR.
Diffstat (limited to 'test/Makefile.am')
-rw-r--r-- | test/Makefile.am | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 6d953533..94f6775b 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -81,7 +81,6 @@ EXTRA_DIST = \ arraytype.ok \ arraytype-mpfr.ok \ arrdbg.awk \ - arrdbg-mpfr.ok \ arrymem1.awk \ arrymem1.ok \ arryref2.awk \ @@ -1263,6 +1262,7 @@ EXTRA_DIST = \ tailrecurse.awk \ tailrecurse.ok \ testext.ok \ + testext-mpfr.ok \ time.awk \ time.ok \ timeout.awk \ @@ -1509,7 +1509,7 @@ FAIL_CODE1 = \ # List of files which have .ok versions for MPFR CHECK_MPFR = \ - arraytype arrdbg fnarydel fnparydl forcenum numrange rand + arraytype fnarydel fnparydl forcenum numrange rand # Lists of tests that need particular locales NEED_LOCALE_C = \ @@ -2250,7 +2250,9 @@ testext:: @echo $@ @$(AWK) ' /^(@load|BEGIN)/,/^}/' "$(top_srcdir)"/extension/testext.c > testext.awk @$(AWK) -f ./testext.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ - @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ testext.awk testexttmp.txt + @-if test -z "$$AWKFLAGS" ; then $(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ testext.awk testexttmp.txt; else \ + $(CMP) "$(srcdir)"/$@-mpfr.ok _$@ && rm -f _$@ testext.awk testexttmp.txt ; \ + fi getfile: @echo $@ @@ -2387,9 +2389,9 @@ ignrcas3:: arrdbg: @echo $@ - @$(AWK) -v "okfile=./$@.ok" -f "$(srcdir)"/$@.awk | grep array_f >_$@ || echo EXIT CODE: $$? >> _$@ - @-if test -z "$$AWKFLAGS" ; then $(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; else \ - $(CMP) "$(srcdir)"/$@-mpfr.ok _$@ && rm -f _$@ ; \ + @$(AWK) -v "okfile=./$@.ok" -v "mpfr_okfile=./$@-mpfr.ok" -f "$(srcdir)"/$@.awk | grep array_f >_$@ || echo EXIT CODE: $$? >> _$@ + @-if test -z "$$AWKFLAGS" ; then $(CMP) ./$@.ok _$@ && rm -f _$@ ./$@.ok ./$@-mpfr.ok ; else \ + $(CMP) ./$@-mpfr.ok _$@ && rm -f _$@ ./$@.ok ./$@-mpfr.ok ; \ fi |