Index: test/Makefile.am =================================================================== RCS file: /cvsroot/xmlgawk/xmlgawk/test/Makefile.am,v retrieving revision 1.29 diff -b -u -p -r1.29 Makefile.am --- test/Makefile.am 3 Jan 2006 21:39:16 -0000 1.29 +++ test/Makefile.am 5 Jan 2006 21:22:43 -0000 @@ -360,6 +360,8 @@ EXTRA_DIST = \ noparms.ok \ nors.in \ nors.ok \ + notfinite.awk \ + notfinite.OK \ nulrsend.awk \ nulrsend.in \ nulrsend.ok \ @@ -621,7 +623,7 @@ BASIC_TESTS = addcomma anchgsub argarray sortempty splitargv splitarr splitdef splitvar splitwht sprintfc \ strcat1 strtod subamp subsepnm subslash substr swaplns synerr1 tradanch \ tweakfld uninit2 uninit3 uninit4 uninitialized unterm wjposer1 \ - zeroe0 zeroflag + zeroe0 zeroflag notfinite UNIX_TESTS = fflush getlnhd pid pipeio1 pipeio2 poundbang space strftlng @@ -640,7 +642,8 @@ SHLIB_TESTS = xtime XML_TESTS = xdocbook xdeep2 xattr xfujutf8 xotlsjis xfujeucj xload xincl xuintmax # List of the tests which should be run with --lint option: -NEED_LINT = defref noeffect nofmtch shadow uninit2 uninit3 uninit4 uninitialized +NEED_LINT = defref noeffect nofmtch notfinite shadow \ + uninit2 uninit3 uninit4 uninitialized # List of the files that appear in manual tests or are for reserve testing: GENTESTS_UNUSED = Makefile.in gtlnbufv.awk printfloat.awk switch2.awk @@ -883,6 +886,14 @@ nors:: @echo A B C D E | tr -d '\12\15' | $(AWK) '{ print $$NF }' - $(srcdir)/nors.in > _$@ @-$(CMP) $(srcdir)/nors.ok _$@ && rm -f _$@ +notfinite.ok: notfinite.OK Makefile + @$(AWK) 'BEGIN {pnan = sprintf("%g",sqrt(-1)); nnan = sprintf("%g",-sqrt(-1)); pinf = sprintf("%g",-log(0)); ninf = sprintf("%g",log(0))} {sub(/positive_nan/,pnan); sub(/negative_nan/,nnan); sub(/positive_infinity/,pinf); sub(/negative_infinity/,ninf); print}' < $< > $@ 2>/dev/null + +notfinite: notfinite.ok + @echo notfinite + @$(AWK) -f address@hidden --lint >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@ + reint:: @echo $@ @$(AWK) --re-interval -f $(srcdir)/reint.awk $(srcdir)/reint.in >_$@