diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-10 21:15:57 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-10 21:15:57 +0300 |
commit | 056cf0f36f054e41f61f86ca4c37046da218d8d9 (patch) | |
tree | 13641139ffa9b1ee22f405d3740e91a0a7955892 /pc | |
parent | ae6ab9756da4def4580c4988650971dd80eb364e (diff) | |
download | egawk-056cf0f36f054e41f61f86ca4c37046da218d8d9.tar.gz egawk-056cf0f36f054e41f61f86ca4c37046da218d8d9.tar.bz2 egawk-056cf0f36f054e41f61f86ca4c37046da218d8d9.zip |
Improve iolint test.
Diffstat (limited to 'pc')
-rw-r--r-- | pc/Makefile.tst | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/pc/Makefile.tst b/pc/Makefile.tst index d0085049..7bab0e3d 100644 --- a/pc/Makefile.tst +++ b/pc/Makefile.tst @@ -1037,9 +1037,9 @@ testext:: @echo $@ @$(AWK) ' /^(@load|BEGIN)/,/^}/' "$(top_srcdir)"/extension/testext.c > testext.awk @$(AWK) -f ./testext.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ - @-if echo "$$GAWK_TEST_ARGS" | egrep -q -e '-M|--bignum'; \ - then cmp "$(srcdir)"/$@-mpfr.ok _$@ && rm -f _$@ testext.awk testexttmp.txt ; \ - else cmp "$(srcdir)"/$@.ok _$@ && rm -f _$@ testext.awk testexttmp.txt ; fi + @-if echo "$$GAWK_TEST_ARGS" | egrep -e '-M|--bignum' > /dev/null; \ + then $(CMP) "$(srcdir)"/$@-mpfr.ok _$@ && rm -f _$@ testext.awk testexttmp.txt ; \ + else $(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ testext.awk testexttmp.txt ; fi getfile: @echo Expect $@ to fail with MinGW. @@ -1182,9 +1182,9 @@ ignrcas3:: arrdbg: @echo $@ @$(AWK) -v "okfile=./$@.ok" -v "mpfr_okfile=./$@-mpfr.ok" -f "$(srcdir)"/$@.awk | grep array_f >_$@ || echo EXIT CODE: $$? >> _$@ - @-if echo "$$GAWK_TEST_ARGS" | egrep -q -e '-M|--bignum'; \ - then cmp "."/$@-mpfr.ok _$@ && rm -f _$@ $@.ok $@-mpfr.ok ; \ - else cmp "."/$@.ok _$@ && rm -f _$@ $@.ok $@-mpfr.ok ; fi + @-if echo "$$GAWK_TEST_ARGS" | egrep -e '-M|--bignum' > /dev/null; \ + then $(CMP) "."/$@-mpfr.ok _$@ && rm -f _$@ $@.ok $@-mpfr.ok ; \ + else $(CMP) "."/$@.ok _$@ && rm -f _$@ $@.ok $@-mpfr.ok ; fi sourcesplit: @echo $@ @@ -1238,10 +1238,9 @@ typedregex4: iolint: @echo $@ @echo hello > 'echo hello' - @touch 'exec cat' ; chmod 755 'exec cat' @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ - @-$(RM) -f cat 'echo hello' 'exec cat' f1 f2 cksum + @-$(RM) -f cat 'echo hello' f1 f2 cksum argcasfile: @echo $@ |