aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile.in')
-rw-r--r--test/Makefile.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 096d8817..39f317e6 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -350,6 +350,7 @@ EXTRA_DIST = \
double1.ok \
double2.awk \
double2.ok \
+ dtdgport.awk \
dumpvars.in \
dumpvars.ok \
dynlj.awk \
@@ -889,6 +890,8 @@ EXTRA_DIST = \
wjposer1.awk \
wjposer1.in \
wjposer1.ok \
+ xref.awk \
+ xref.original \
zero2.awk \
zero2.ok \
zeroe0.awk \
@@ -938,7 +941,7 @@ GAWK_EXT_TESTS = \
gnuops2 gnuops3 gnureops \
icasefs icasers igncdym igncfs ignrcas2 ignrcase indirectcall lint \
lintold manyfiles match1 match2 match3 mbstr1 nondec nondec2 patsplit \
- posix printfbad1 printfbad2 \
+ posix profile1 profile2 printfbad1 printfbad2 \
procinfs rebuf regx8bit reint reint2 rsstart1 rsstart2 rsstart3 \
rstest6 shadow splitarg4 strftime strtonum switch2
@@ -962,6 +965,8 @@ FAIL_CODE1 = fnarray2 fnmisc gsubasgn mixed1 noparms paramdup synerr1 synerr2 un
GENTESTS_UNUSED = Makefile.in gtlnbufv.awk printfloat.awk
CMP = cmp
AWKPROG = ../gawk$(EXEEXT)
+PGAWKPROG = ../pgawk$(EXEEXT)
+PGAWK = LC_ALL=$${GAWKLOCALE:-C} LANG=$${GAWKLOCALE:-C} $(PGAWKPROG)
all: all-am
.SUFFIXES:
@@ -1646,6 +1651,18 @@ dumpvars::
@AWKPATH=$(srcdir) $(AWK) --dump-variables 1 < $(srcdir)/$@.in >/dev/null 2>&1 || echo EXIT CODE: $$? >>_$@
@mv awkvars.out _$@
@-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@
+
+profile1:
+ @echo $@
+ @$(AWK) --profile -f $(srcdir)/xref.awk $(srcdir)/dtdgport.awk > _$@.out1
+ @$(AWK) -f awkprof.out $(srcdir)/dtdgport.awk > _$@.out2
+ @cmp _$@.out1 _$@.out2 && rm _$@.out[12] || echo EXIT CODE: $$? >>_$@
+
+profile2:
+ @echo $@
+ @$(PGAWK) -f $(srcdir)/xref.awk $(srcdir)/dtdgport.awk > /dev/null
+ @sed 1,2d < awkprof.out > _$@; rm awkprof.out
+ @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@
Gt-dummy:
# file Maketests, generated from Makefile.am by the Gentests program
addcomma: