2
# test/Makefile.am --- automake input file for gawk
4
# Copyright (C) 1988-2001 the Free Software Foundation, Inc.
6
# This file is part of GAWK, the GNU implementation of the
7
# AWK Programming Language.
9
# GAWK is free software; you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2 of the License, or
12
# (at your option) any later version.
14
# GAWK is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
24
## process this file with automake to produce Makefile.in
353
# message stuff is to make it a little easier to follow
355
basic-msg-start basic basic-msg-end \
356
unix-msg-start unix-tests unix-msg-end \
357
extend-msg-start gawk-extensions extend-msg-end
359
# try to keep these sorted
360
basic: addcomma anchgsub argarray arrayparm arrayref arynasty arynocls \
361
arysubnm asgext awkpath back89 backgsub childin clobber clsflnam \
362
compare convfmt datanonl defref delarprm dynlj eofsplit fldchg \
363
fldchgnf fnamedat fnarray fnarydel fnaryscl fnasgnm fnparydl \
364
fsbs fsrs fstabplus funsemnl funsmnam funstack getline getlnbuf getnr2tb \
365
getnr2tm gsubasgn gsubtest hsprint intest intprec leaddig leadnl litoct \
366
longwrds math messages mmap8k nasty nasty2 negexp nfldstr nfset \
367
nlfldsep nlinstr nlstrina noeffect nofmtch nonl noparms nors \
368
numindex numsubstr octsub ofmt ofmtbig ofmts opasnidx opasnslf \
369
paramdup paramtyp parseme pcntplus prdupval printf1 prmarscl \
370
prmreuse prt1eval prtoeval psx96sub rand rebt8b1 rebt8b2 redfilnm \
371
regeq reindops reparse resplit rs rsnul1nl rswhite sclforin \
372
sclifin splitargv splitdef splitvar splitwht sprintfc strtod \
373
subslash substr swaplns tradanch tweakfld zeroflag
375
unix-tests: fflush getlnhd pid pipeio1 pipeio2 poundbang strftlng
377
gawk-extensions: argtest badargs clos1way fieldwdth fsfwfs gensub \
378
gnuops2 gnureops igncdym igncfs ignrcase lint manyfiles nondec \
379
posix procinfs regx8bit reint shadow sort1 strftime
381
extra: regtest inftest inet
383
inet: inetmesg inetechu inetecht inetdayu inetdayt
386
@echo 'Any output from "cmp" is bad news, although some differences'
387
@echo 'in floating point values are probably benign -- in particular,'
388
@echo 'some systems may omit a leading zero and the floating point'
389
@echo 'precision may lead to slightly different output in a few cases.'
392
@echo "======== Starting basic tests ========"
395
@echo "======== Done with basic tests ========"
398
@echo "======== Starting Unix tests ========"
401
@echo "======== Done with Unix tests ========"
404
@echo "======== Starting gawk extension tests ========"
407
@echo "======== Done with gawk extension tests ========"
410
# This test is a PITA because increasingly, /tmp is getting
411
# mounted noexec. So, we'll test it. Sigh.
414
@if /tmp/gawk 'BEGIN { print "OK" }' | grep OK > /dev/null ; \
416
$(srcdir)/poundbang.awk $(srcdir)/poundbang.awk >_`basename $@` ; \
417
$(CMP) $(srcdir)/poundbang.ok _`basename $@` && rm -f _`basename $@` && echo poundbang is ok ; \
419
echo "*** /tmp is apparently mounted noexec, skipping poundbang test." ; \
424
@$(AWK) -f $(srcdir)/swaplns.awk $(srcdir)/swaplns.in >_$@
425
-$(CMP) $(srcdir)/swaplns.ok _$@ && rm -f _$@
428
@$(AWK) -f $(srcdir)/messages.awk >out2 2>out3
429
-$(CMP) $(srcdir)/out1.ok out1 && $(CMP) $(srcdir)/out2.ok out2 && $(CMP) $(srcdir)/out3.ok out3 && rm -f out1 out2 out3
434
*) cp $(srcdir)/argarray.in . ;; \
436
@TEST=test echo just a test | $(AWK) -f $(srcdir)/argarray.awk ./argarray.in - >_$@
437
-$(CMP) $(srcdir)/argarray.ok _$@ && rm -f _$@
440
@echo '1 2' | $(AWK) -f $(srcdir)/fstabplus.awk >_$@
441
-$(CMP) $(srcdir)/fstabplus.ok _$@ && rm -f _$@
444
@$(AWK) -f $(srcdir)/fsrs.awk $(srcdir)/fsrs.in >_$@
445
-$(CMP) $(srcdir)/fsrs.ok _$@ && rm -f _$@
448
@$(AWK) -f $(srcdir)/igncfs.awk $(srcdir)/igncfs.in >_$@
449
-$(CMP) $(srcdir)/igncfs.ok _$@ && rm -f _$@
452
@$(AWK) -f $(srcdir)/longwrds.awk $(srcdir)/manpage | (LC_ALL=C sort) >_$@
453
-$(CMP) $(srcdir)/longwrds.ok _$@ && rm -f _$@
456
@echo '123456789' | $(AWK) -v FIELDWIDTHS="2 3 4" '{ print $$2}' >_$@
457
-$(CMP) $(srcdir)/fieldwdth.ok _$@ && rm -f _$@
460
@echo xYz | $(AWK) -v IGNORECASE=1 '{ sub(/y/, ""); print}' >_$@
461
-$(CMP) $(srcdir)/ignrcase.ok _$@ && rm -f _$@
464
@echo 'Some of the output from regtest is very system specific, do not'
465
@echo 'be distressed if your output differs from that distributed.'
466
@echo 'Manual inspection is called for.'
467
AWK=`pwd`/$(AWK) $(srcdir)/regtest.awk
470
@echo '1:2,3 4' | $(AWK) -f $(srcdir)/posix.awk >_$@
471
-$(CMP) $(srcdir)/posix.ok _$@ && rm -f _$@
476
@$(AWK) 'BEGIN { for (i = 1; i <= 300; i++) print i, i}' >_$@
477
@$(AWK) -f $(srcdir)/manyfiles.awk _$@ _$@
478
@echo "This number better be 1 ->" | tr -d '\012'
479
@wc -l junk/* | $(AWK) '$$1 != 2' | wc -l
483
@$(AWK) -f $(srcdir)/compare.awk 0 1 $(srcdir)/compare.in >_$@
484
-$(CMP) $(srcdir)/compare.ok _$@ && rm -f _$@
487
@$(AWK) -f $(srcdir)/arrayref.awk >_$@
488
-$(CMP) $(srcdir)/arrayref.ok _$@ && rm -f _$@
491
@$(AWK) -v RS="" '{ print $$1, $$2}' $(srcdir)/rs.in >_$@
492
-$(CMP) $(srcdir)/rs.ok _$@ && rm -f _$@
495
@$(AWK) -v FS='\' '{ print $$1, $$2 }' $(srcdir)/fsbs.in >_$@
496
-$(CMP) $(srcdir)/fsbs.ok _$@ && rm -f _$@
499
@echo This test is very machine specific...
500
@$(AWK) -f $(srcdir)/inftest.awk >_$@
501
-$(CMP) $(srcdir)/inftest.ok _$@ && rm -f _$@
504
@$(AWK) -f $(srcdir)/getline.awk $(srcdir)/getline.awk $(srcdir)/getline.awk >_$@
505
-$(CMP) $(srcdir)/getline.ok _$@ && rm -f _$@
508
@$(AWK) -f $(srcdir)/rand.awk >_$@
509
-$(CMP) $(srcdir)/rand.ok _$@ && rm -f _$@
512
@$(AWK) 'BEGIN { a = -2; print 10^a }' >_$@
513
-$(CMP) $(srcdir)/negexp.ok _$@ && rm -f _$@
516
@$(AWK) -f $(srcdir)/asgext.awk $(srcdir)/asgext.in >_$@
517
-$(CMP) $(srcdir)/asgext.ok _$@ && rm -f _$@
520
@$(AWK) -f $(srcdir)/anchgsub.awk $(srcdir)/anchgsub.in >_$@
521
-$(CMP) $(srcdir)/anchgsub.ok _$@ && rm -f _$@
524
@$(AWK) -f $(srcdir)/splitargv.awk $(srcdir)/splitargv.in >_$@
525
-$(CMP) $(srcdir)/splitargv.ok _$@ && rm -f _$@
528
@AWKPATH="$(srcdir):$(srcdir)/lib" $(AWK) -f awkpath.awk >_$@
529
-$(CMP) $(srcdir)/awkpath.ok _$@ && rm -f _$@
532
@$(AWK) -f $(srcdir)/nfset.awk $(srcdir)/nfset.in >_$@
533
-$(CMP) $(srcdir)/nfset.ok _$@ && rm -f _$@
536
@$(AWK) -f $(srcdir)/reparse.awk $(srcdir)/reparse.in >_$@
537
-$(CMP) $(srcdir)/reparse.ok _$@ && rm -f _$@
540
@$(AWK) -f $(srcdir)/argtest.awk -x -y abc >_$@
541
-$(CMP) $(srcdir)/argtest.ok _$@ && rm -f _$@
544
@-$(AWK) -f 2>&1 | grep -v patchlevel >_$@
545
-$(CMP) $(srcdir)/badargs.ok _$@ && rm -f _$@
548
@$(AWK) -f $(srcdir)/convfmt.awk >_$@
549
-$(CMP) $(srcdir)/convfmt.ok _$@ && rm -f _$@
552
@-AWKPATH=$(srcdir) $(AWK) -f arrayparm.awk >_$@ 2>&1 || exit 0
553
-$(CMP) $(srcdir)/arrayparm.ok _$@ && rm -f _$@
556
@-AWKPATH=$(srcdir) $(AWK) -f paramdup.awk >_$@ 2>&1 || exit 0
557
-$(CMP) $(srcdir)/paramdup.ok _$@ && rm -f _$@
560
@-AWKPATH=$(srcdir) $(AWK) --lint -f nonl.awk /dev/null >_$@ 2>&1
561
-$(CMP) $(srcdir)/nonl.ok _$@ && rm -f _$@
564
@-AWKPATH=$(srcdir) $(AWK) --lint -f defref.awk >_$@ 2>&1 || exit 0
565
-$(CMP) $(srcdir)/defref.ok _$@ && rm -f _$@
568
@-AWKPATH=$(srcdir) $(AWK) --lint -f nofmtch.awk >_$@ 2>&1
569
-$(CMP) $(srcdir)/nofmtch.ok _$@ && rm -f _$@
572
: this test could fail on slow machines or on a second boundary,
573
: so if it does, double check the actual results
574
@LC_ALL=C; export LC_ALL; LANG=C; export LANG; \
575
date | $(AWK) -v OUTPUT=_$@ -f $(srcdir)/strftime.awk
576
-$(CMP) strftime.ok _$@ && rm -f _$@ strftime.ok || exit 0
579
@echo ab | $(AWK) --traditional -f $(srcdir)/litoct.awk >_$@
580
-$(CMP) $(srcdir)/litoct.ok _$@ && rm -f _$@
583
@$(AWK) -f $(srcdir)/gensub.awk $(srcdir)/gensub.in >_$@
584
-$(CMP) $(srcdir)/gensub.ok _$@ && rm -f _$@
587
@echo a:b:c d:e:f | $(AWK) '{ FS = ":"; $$0 = $$0; print $$2 }' > _$@
588
-$(CMP) $(srcdir)/resplit.ok _$@ && rm -f _$@
591
@$(AWK) -f $(srcdir)/rswhite.awk $(srcdir)/rswhite.in > _$@
592
-$(CMP) $(srcdir)/rswhite.ok _$@ && rm -f _$@
595
@-AWKPATH=$(srcdir) $(AWK) -f prmarscl.awk > _$@ 2>&1 || exit 0
596
-$(CMP) $(srcdir)/prmarscl.ok _$@ && rm -f _$@
599
@-AWKPATH=$(srcdir) $(AWK) -f sclforin.awk > _$@ 2>&1 || exit 0
600
-$(CMP) $(srcdir)/sclforin.ok _$@ && rm -f _$@
603
@-AWKPATH=$(srcdir) $(AWK) -f sclifin.awk > _$@ 2>&1 || exit 0
604
-$(CMP) $(srcdir)/sclifin.ok _$@ && rm -f _$@
607
@-$(AWK) -f $(srcdir)/intprec.awk > _$@ 2>&1
608
-$(CMP) $(srcdir)/intprec.ok _$@ && rm -f _$@
611
@echo hi | $(AWK) 'BEGIN { "cat" | getline; print; close("cat") }' > _$@
612
-$(CMP) $(srcdir)/childin.ok _$@ && rm -f _$@
615
@-AWKPATH=$(srcdir) $(AWK) --lint -f noeffect.awk > _$@ 2>&1
616
-$(CMP) $(srcdir)/noeffect.ok _$@ && rm -f _$@
619
@-AWKPATH=$(srcdir) $(AWK) -f numsubstr.awk $(srcdir)/numsubstr.in >_$@
620
-$(CMP) $(srcdir)/numsubstr.ok _$@ && rm -f _$@
623
@$(AWK) -f $(srcdir)/gnureops.awk >_$@
624
-$(CMP) $(srcdir)/gnureops.ok _$@ && rm -f _$@
627
@$(AWK) -f $(srcdir)/pcntplus.awk >_$@
628
-$(CMP) $(srcdir)/pcntplus.ok _$@ && rm -f _$@
631
@$(AWK) -f $(srcdir)/prmreuse.awk >_$@
632
-$(CMP) $(srcdir)/prmreuse.ok _$@ && rm -f _$@
635
@$(AWK) -f $(srcdir)/math.awk >_$@
636
-$(CMP) $(srcdir)/math.ok _$@ && rm -f _$@
639
@$(srcdir)/fflush.sh >_$@
640
-$(CMP) $(srcdir)/fflush.ok _$@ && rm -f _$@
643
@$(AWK) -f $(srcdir)/fldchg.awk $(srcdir)/fldchg.in >_$@
644
-$(CMP) $(srcdir)/fldchg.ok _$@ && rm -f _$@
647
@$(AWK) -f $(srcdir)/fldchgnf.awk $(srcdir)/fldchgnf.in >_$@
648
-$(CMP) $(srcdir)/fldchgnf.ok _$@ && rm -f _$@
651
@$(AWK) -f $(srcdir)/reindops.awk $(srcdir)/reindops.in >_$@
652
-$(CMP) $(srcdir)/reindops.ok _$@ && rm -f _$@
655
@$(AWK) -f $(srcdir)/sprintfc.awk $(srcdir)/sprintfc.in >_$@
656
-$(CMP) $(srcdir)/sprintfc.ok _$@ && rm -f _$@
659
@$(AWK) -f $(srcdir)/getlnhd.awk >_$@
660
-$(CMP) $(srcdir)/getlnhd.ok _$@ && rm -f _$@
663
@$(AWK) -f $(srcdir)/backgsub.awk $(srcdir)/backgsub.in >_$@
664
-$(CMP) $(srcdir)/backgsub.ok _$@ && rm -f _$@
667
@$(AWK) -f $(srcdir)/tweakfld.awk $(srcdir)/tweakfld.in >_$@
668
@rm -f errors.cleanup
669
-$(CMP) $(srcdir)/tweakfld.ok _$@ && rm -f _$@
672
@$(AWK) -f $(srcdir)/clsflnam.awk $(srcdir)/clsflnam.in >_$@ 2>&1
673
-$(CMP) $(srcdir)/clsflnam.ok _$@ && rm -f _$@
676
@$(AWK) '{ print }' $(srcdir)/mmap8k.in >_$@
677
-$(CMP) $(srcdir)/mmap8k.in _$@ && rm -f _$@
680
@-AWKPATH=$(srcdir) $(AWK) -f fnarray.awk >_$@ 2>&1 || exit 0
681
-$(CMP) $(srcdir)/fnarray.ok _$@ && rm -f _$@
684
@$(AWK) -f $(srcdir)/dynlj.awk >_$@
685
-$(CMP) $(srcdir)/dynlj.ok _$@ && rm -f _$@
688
@$(AWK) -f $(srcdir)/substr.awk >_$@
689
-$(CMP) $(srcdir)/substr.ok _$@ && rm -f _$@
692
@$(AWK) -f $(srcdir)/eofsplit.awk >_$@
693
-$(CMP) $(srcdir)/eofsplit.ok _$@ && rm -f _$@
696
@$(AWK) -f $(srcdir)/prt1eval.awk >_$@
697
-$(CMP) $(srcdir)/prt1eval.ok _$@ && rm -f _$@
700
@-AWKPATH=$(srcdir) $(AWK) -f gsubasgn.awk >_$@ 2>&1 || exit 0
701
-$(CMP) $(srcdir)/gsubasgn.ok _$@ && rm -f _$@
704
@$(AWK) -f $(srcdir)/prtoeval.awk >_$@
705
-$(CMP) $(srcdir)/prtoeval.ok _$@ && rm -f _$@
708
@$(AWK) -f $(srcdir)/gsubtest.awk >_$@
709
-$(CMP) $(srcdir)/gsubtest.ok _$@ && rm -f _$@
712
@$(AWK) -f $(srcdir)/splitwht.awk >_$@
713
-$(CMP) $(srcdir)/splitwht.ok _$@ && rm -f _$@
716
@$(AWK) '/a\8b/' $(srcdir)/back89.in >_$@
717
-$(CMP) $(srcdir)/back89.ok _$@ && rm -f _$@
720
@$(AWK) --traditional -f $(srcdir)/tradanch.awk $(srcdir)/tradanch.in >_$@
721
-$(CMP) $(srcdir)/tradanch.ok _$@ && rm -f _$@
724
@$(AWK) -f $(srcdir)/nlfldsep.awk $(srcdir)/nlfldsep.in > _$@
725
-$(CMP) $(srcdir)/nlfldsep.ok _$@ && rm -f _$@
728
@$(AWK) -f $(srcdir)/splitvar.awk $(srcdir)/splitvar.in >_$@
729
-$(CMP) $(srcdir)/splitvar.ok _$@ && rm -f _$@
732
@$(AWK) -f $(srcdir)/intest.awk >_$@
733
-$(CMP) $(srcdir)/intest.ok _$@ && rm -f _$@
735
# AIX /bin/sh exec's the last command in a list, therefore issue a ":"
736
# command so that pid.sh is fork'ed as a child before being exec'ed.
738
@AWKPATH=$(srcdir) AWK=$(AWK) $(SHELL) $(srcdir)/pid.sh $$$$ > _`basename $@` ; :
739
-$(CMP) $(srcdir)/pid.ok _`basename $@` && rm -f _`basename $@` _`basename $@`.in
742
@TZ=UTC; export TZ; $(AWK) -f $(srcdir)/strftlng.awk >_$@
743
@if $(CMP) -s $(srcdir)/strftlng.ok _$@ ; then : ; else \
744
TZ=UTC0; export TZ; $(AWK) -f $(srcdir)/strftlng.awk >_$@ ; \
746
-$(CMP) $(srcdir)/strftlng.ok _$@ && rm -f _$@
749
@echo | $(AWK) '$$1 == 0 { print "bug" }' > _$@
750
-$(CMP) $(srcdir)/nfldstr.ok _$@ && rm -f _$@
753
@echo A B C D E | tr -d '\12' | $(AWK) '{ print $$NF }' - $(srcdir)/nors.in > _$@
754
-$(CMP) $(srcdir)/nors.ok _$@ && rm -f _$@
757
@$(AWK) -f $(srcdir)/fnarydel.awk >_$@
758
-$(CMP) $(srcdir)/fnarydel.ok _$@ && rm -f _$@
761
@$(AWK) --re-interval -f $(srcdir)/reint.awk $(srcdir)/reint.in >_$@
762
-$(CMP) $(srcdir)/reint.ok _$@ && rm -f _$@
765
@-AWKPATH=$(srcdir) $(AWK) -f noparms.awk >_$@ 2>&1 || exit 0
766
-$(CMP) $(srcdir)/noparms.ok _$@ && rm -f _$@
769
@$(AWK) -f $(srcdir)/pipeio1.awk >_$@
771
-$(CMP) $(srcdir)/pipeio1.ok _$@ && rm -f _$@
774
@$(AWK) -v SRCDIR=$(srcdir) -f $(srcdir)/pipeio2.awk >_$@
775
-$(CMP) $(srcdir)/pipeio2.ok _$@ && rm -f _$@
778
@$(AWK) -f $(srcdir)/funstack.awk $(srcdir)/funstack.in >_$@
779
-$(CMP) $(srcdir)/funstack.ok _$@ && rm -f _$@
782
@$(AWK) -f $(srcdir)/clobber.awk >_$@
783
-$(CMP) $(srcdir)/clobber.ok seq && $(CMP) $(srcdir)/clobber.ok _$@ && rm -f _$@
787
@$(AWK) -f $(srcdir)/delarprm.awk >_$@
788
-$(CMP) $(srcdir)/delarprm.ok _$@ && rm -f _$@
791
@$(AWK) -f $(srcdir)/prdupval.awk $(srcdir)/prdupval.in >_$@
792
-$(CMP) $(srcdir)/prdupval.ok _$@ && rm -f _$@
795
@if grep BITOP ../config.h | grep define > /dev/null; \
797
$(AWK) -f $(srcdir)/nondec.awk >_$@; \
799
cp $(srcdir)/nondec.ok _$@; \
801
-$(CMP) $(srcdir)/nondec.ok _$@ && rm -f _$@
804
@$(AWK) -f $(srcdir)/nasty.awk >_$@
805
-$(CMP) $(srcdir)/nasty.ok _$@ && rm -f _$@
808
@$(AWK) -f $(srcdir)/nasty2.awk >_$@
809
-$(CMP) $(srcdir)/nasty2.ok _$@ && rm -f _$@
812
@$(AWK) -f $(srcdir)/zeroflag.awk >_$@
813
-$(CMP) $(srcdir)/zeroflag.ok _$@ && rm -f _$@
816
@$(AWK) -f $(srcdir)/getnr2tm.awk $(srcdir)/getnr2tm.in >_$@
817
-$(CMP) $(srcdir)/getnr2tm.ok _$@ && rm -f _$@
820
@$(AWK) -f $(srcdir)/getnr2tb.awk $(srcdir)/getnr2tb.in >_$@
821
-$(CMP) $(srcdir)/getnr2tb.ok _$@ && rm -f _$@
824
@$(AWK) -f $(srcdir)/printf1.awk >_$@
825
-$(CMP) $(srcdir)/printf1.ok _$@ && rm -f _$@
828
@-AWKPATH=$(srcdir) $(AWK) -f funsmnam.awk >_$@ 2>&1 || exit 0
829
-$(CMP) $(srcdir)/funsmnam.ok _$@ && rm -f _$@
832
@-AWKPATH=$(srcdir) $(AWK) -f fnamedat.awk < $(srcdir)/fnamedat.in >_$@ 2>&1 || exit 0
833
-$(CMP) $(srcdir)/fnamedat.ok _$@ && rm -f _$@
836
@-AWKPATH=$(srcdir) $(AWK) -f numindex.awk < $(srcdir)/numindex.in >_$@ 2>&1 || exit 0
837
-$(CMP) $(srcdir)/numindex.ok _$@ && rm -f _$@
840
@-AWKPATH=$(srcdir) $(AWK) -f subslash.awk >_$@ 2>&1 || exit 0
841
-$(CMP) $(srcdir)/subslash.ok _$@ && rm -f _$@
844
@-AWKPATH=$(srcdir) $(AWK) -f opasnslf.awk >_$@ 2>&1 || exit 0
845
-$(CMP) $(srcdir)/opasnslf.ok _$@ && rm -f _$@
848
@-AWKPATH=$(srcdir) $(AWK) -f opasnidx.awk >_$@ 2>&1 || exit 0
849
-$(CMP) $(srcdir)/opasnidx.ok _$@ && rm -f _$@
852
@-AWKPATH=$(srcdir) $(AWK) -v INPUT=$(srcdir)/arynocls.in -f arynocls.awk >_$@
853
-$(CMP) $(srcdir)/arynocls.ok _$@ && rm -f _$@
856
@-AWKPATH=$(srcdir) $(AWK) -f igncdym.awk $(srcdir)/igncdym.in >_$@
857
-$(CMP) $(srcdir)/igncdym.ok _$@ && rm -f _$@
860
@-AWKPATH=$(srcdir) $(AWK) -f getlnbuf.awk $(srcdir)/getlnbuf.in > _$@
861
@-AWKPATH=$(srcdir) $(AWK) -f gtlnbufv.awk $(srcdir)/getlnbuf.in > _2$@
862
-$(CMP) $(srcdir)/getlnbuf.ok _$@ && $(CMP) $(srcdir)/getlnbuf.ok _2$@ && rm -f _$@ _2$@
865
@-AWKPATH=$(srcdir) $(AWK) -f arysubnm.awk >_$@
866
-$(CMP) $(srcdir)/arysubnm.ok _$@ && rm -f _$@
869
@-AWKPATH=$(srcdir) $(AWK) -f fnparydl.awk >_$@
870
-$(CMP) $(srcdir)/fnparydl.ok _$@ && rm -f _$@
873
@-AWKPATH=$(srcdir) $(AWK) -f nlstrina.awk >_$@
874
-$(CMP) $(srcdir)/nlstrina.ok _$@ && rm -f _$@
877
@-AWKPATH=$(srcdir) $(AWK) -f octsub.awk >_$@
878
-$(CMP) $(srcdir)/octsub.ok _$@ && rm -f _$@
881
@$(AWK) -f $(srcdir)/nlinstr.awk $(srcdir)/nlinstr.in >_$@
882
-$(CMP) $(srcdir)/nlinstr.ok _$@ && rm -f _$@
885
@$(AWK) -f $(srcdir)/ofmt.awk $(srcdir)/ofmt.in >_$@
886
-$(CMP) $(srcdir)/ofmt.ok _$@ && rm -f _$@
889
@$(AWK) -f $(srcdir)/hsprint.awk >_$@
890
-$(CMP) $(srcdir)/hsprint.ok _$@ && rm -f _$@
893
@$(AWK) -f $(srcdir)/fsfwfs.awk $(srcdir)/fsfwfs.in >_$@
894
-$(CMP) $(srcdir)/fsfwfs.ok _$@ && rm -f _$@
897
@$(AWK) -f $(srcdir)/ofmts.awk $(srcdir)/ofmts.in >_$@
898
-$(CMP) $(srcdir)/ofmts.ok _$@ && rm -f _$@
901
@-AWKPATH=$(srcdir) $(AWK) -f parseme.awk >_$@ 2>&1 || exit 0
902
-$(CMP) $(srcdir)/parseme.ok _$@ && rm -f _$@
905
@$(AWK) -f $(srcdir)/splitdef.awk >_$@
906
-$(CMP) $(srcdir)/splitdef.ok _$@ && rm -f _$@
909
@-AWKPATH=$(srcdir) $(AWK) -f fnaryscl.awk >_$@ 2>&1 || exit 0
910
-$(CMP) $(srcdir)/fnaryscl.ok _$@ && rm -f _$@
913
@-AWKPATH=$(srcdir) $(AWK) -f fnasgnm.awk < $(srcdir)/fnasgnm.in >_$@ 2>&1 || exit 0
914
-$(CMP) $(srcdir)/fnasgnm.ok _$@ && rm -f _$@
917
@-AWKPATH=$(srcdir) $(AWK) -f lint.awk > _$@ 2>&1
918
-$(CMP) $(srcdir)/lint.ok _$@ && rm -f _$@
921
@-$(AWK) -f $(srcdir)/procinfs.awk > _$@
922
-$(CMP) $(srcdir)/procinfs.ok _$@ && rm -f _$@
925
@-$(AWK) -f $(srcdir)/sort1.awk > _$@
926
-$(CMP) $(srcdir)/sort1.ok _$@ && rm -f _$@
929
@$(AWK) -f $(srcdir)/ofmtbig.awk $(srcdir)/ofmtbig.in >_$@ 2>&1 || exit 0
930
-$(CMP) $(srcdir)/ofmtbig.ok _$@ && rm -f _$@
933
@echo These tests only work if your system supports the services
934
@echo "'discard'" at port 9 and "'daytimed" at port 13. Check your
935
@echo file /etc/services and do "'netstat -a'".
938
@echo This test is for establishing UDP connections
939
@$(AWK) 'BEGIN {print "" |& "/inet/udp/0/127.0.0.1/9"}'
942
@echo This test is for establishing TCP connections
943
@$(AWK) 'BEGIN {print "" |& "/inet/tcp/0/127.0.0.1/9"}'
946
@echo This test is for bidirectional UDP transmission
947
@$(AWK) 'BEGIN { print "" |& "/inet/udp/0/127.0.0.1/13"; \
948
"/inet/udp/0/127.0.0.1/13" |& getline; print $0}'
951
@echo This test is for bidirectional TCP transmission
952
@$(AWK) 'BEGIN { print "" |& "/inet/tcp/0/127.0.0.1/13"; \
953
"/inet/tcp/0/127.0.0.1/13" |& getline; print $0}'
956
@$(AWK) -f $(srcdir)/paramtyp.awk >_$@
957
-$(CMP) $(srcdir)/paramtyp.ok _$@ && rm -f _$@
960
@$(AWK) -f $(srcdir)/rsnul1nl.awk $(srcdir)/rsnul1nl.in >_$@
961
-$(CMP) $(srcdir)/rsnul1nl.ok _$@ && rm -f _$@
964
@$(AWK) -f $(srcdir)/datanonl.awk $(srcdir)/datanonl.in >_$@
965
-$(CMP) $(srcdir)/datanonl.ok _$@ && rm -f _$@
968
@$(AWK) -f $(srcdir)/regeq.awk $(srcdir)/regeq.in >_$@
969
-$(CMP) $(srcdir)/regeq.ok _$@ && rm -f _$@
972
@$(AWK) -f $(srcdir)/redfilnm.awk srcdir=$(srcdir) $(srcdir)/redfilnm.in >_$@
973
-$(CMP) $(srcdir)/redfilnm.ok _$@ && rm -f _$@
976
@$(AWK) -f $(srcdir)/strtod.awk $(srcdir)/strtod.in >_$@
977
-$(CMP) $(srcdir)/strtod.ok _$@ && rm -f _$@
980
@$(AWK) -v x=2E -f $(srcdir)/leaddig.awk >_$@
981
-$(CMP) $(srcdir)/leaddig.ok _$@ && rm -f _$@
984
@$(AWK) -f $(srcdir)/clos1way.awk >_$@
985
-$(CMP) $(srcdir)/clos1way.ok _$@ && rm -f _$@
988
@$(AWK) -f $(srcdir)/arynasty.awk >_$@
989
-$(CMP) $(srcdir)/arynasty.ok _$@ && rm -f _$@
992
@-AWKPATH=$(srcdir) $(AWK) --lint -f shadow.awk >_$@ 2>&1 || exit 0
993
-$(CMP) $(srcdir)/shadow.ok _$@ && rm -f _$@
996
@$(AWK) -f $(srcdir)/regx8bit.awk >_$@
997
-$(CMP) $(srcdir)/regx8bit.ok _$@ && rm -f _$@
1000
@$(AWK) -f $(srcdir)/psx96sub.awk >_$@
1001
-$(CMP) $(srcdir)/psx96sub.ok _$@ && rm -f _$@
1004
@$(AWK) -f $(srcdir)/addcomma.awk $(srcdir)/addcomma.in >_$@
1005
-$(CMP) $(srcdir)/addcomma.ok _$@ && rm -f _$@
1008
@$(AWK) -f $(srcdir)/gnuops2.awk >_$@
1009
-$(CMP) $(srcdir)/gnuops2.ok _$@ && rm -f _$@
1012
@$(AWK) -f $(srcdir)/rebt8b1.awk >_$@
1013
-$(CMP) $(srcdir)/rebt8b1.ok _$@ && rm -f _$@
1016
@$(AWK) -f $(srcdir)/rebt8b2.awk >_$@
1017
-$(CMP) $(srcdir)/rebt8b2.ok _$@ && rm -f _$@
1020
@$(AWK) -f $(srcdir)/leadnl.awk $(srcdir)/leadnl.in >_$@
1021
-$(CMP) $(srcdir)/leadnl.ok _$@ && rm -f _$@
1024
@$(AWK) -f $(srcdir)/funsemnl.awk >_$@
1025
-$(CMP) $(srcdir)/funsemnl.ok _$@ && rm -f _$@
1028
rm -fr _* core junk out1 out2 out3 strftime.ok test1 test2 seq *~
1030
# This target for my convenience to look at all the results
1034
echo ============== $$i ============= ; \
1035
diff -c $${i#_}.ok $$i ; \