diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ChangeLog | 6 | ||||
-rw-r--r-- | test/Makefile.am | 11 | ||||
-rw-r--r-- | test/Makefile.in | 11 | ||||
-rw-r--r-- | test/profile11.ok | 2 | ||||
-rw-r--r-- | test/profile12.awk | 3 | ||||
-rw-r--r-- | test/profile12.in | 4 | ||||
-rw-r--r-- | test/profile12.ok | 3 |
7 files changed, 37 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 591bb694..5b6fd3b6 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,9 @@ +2019-02-15 Arnold D. Robbins <arnold@skeeve.com> + + * profile11.ok: Updated after code fix. + * Makefile.am (EXTRA_DIST): Add profile12 files, new test. + * profile12.awk, profile12.in, profil12.ok: New files. + 2019-02-05 Juan Manuel Guerrero <juan.guerrero@gmx.de> * Makefile.am (EXPECTED_FAIL_DJGPP): Add randtest and symtab6 diff --git a/test/Makefile.am b/test/Makefile.am index 9f1ca544..19f1d686 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -924,6 +924,9 @@ EXTRA_DIST = \ profile10.ok \ profile11.awk \ profile11.ok \ + profile12.awk \ + profile12.in \ + profile12.ok \ prt1eval.awk \ prt1eval.ok \ prtoeval.awk \ @@ -1334,7 +1337,7 @@ GAWK_EXT_TESTS = \ nsbad nsbad_cmd nsforloop nsfuncrecurse nsindirect1 nsindirect2 nsprof1 nsprof2 \ patsplit posix printfbad1 printfbad2 printfbad3 printfbad4 printhuge \ procinfs profile0 profile1 profile2 profile3 profile4 profile5 profile6 \ - profile7 profile8 profile9 profile10 profile11 pty1 pty2 \ + profile7 profile8 profile9 profile10 profile11 profile12 pty1 pty2 \ rebuf regnul1 regnul2 regx8bit reginttrad reint reint2 rsgetline rsglstdin \ rsstart1 rsstart2 rsstart3 rstest6 \ shadow shadowbuiltin sortfor sortfor2 sortu sourcesplit split_after_fpat \ @@ -1947,6 +1950,12 @@ profile7: @sed 1,2d < ap-$@.out > _$@; rm ap-$@.out @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +profile12: + @echo $@ + @$(AWK) --profile=ap-$@.out -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.in > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@ + @rm ap-$@.out + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + mpfrieee: @echo $@ @$(AWK) -M -vPREC=double -f "$(srcdir)"/$@.awk > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@ diff --git a/test/Makefile.in b/test/Makefile.in index 2e17d9ea..502533a0 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1182,6 +1182,9 @@ EXTRA_DIST = \ profile10.ok \ profile11.awk \ profile11.ok \ + profile12.awk \ + profile12.in \ + profile12.ok \ prt1eval.awk \ prt1eval.ok \ prtoeval.awk \ @@ -1592,7 +1595,7 @@ GAWK_EXT_TESTS = \ nsbad nsbad_cmd nsforloop nsfuncrecurse nsindirect1 nsindirect2 nsprof1 nsprof2 \ patsplit posix printfbad1 printfbad2 printfbad3 printfbad4 printhuge \ procinfs profile0 profile1 profile2 profile3 profile4 profile5 profile6 \ - profile7 profile8 profile9 profile10 profile11 pty1 pty2 \ + profile7 profile8 profile9 profile10 profile11 profile12 pty1 pty2 \ rebuf regnul1 regnul2 regx8bit reginttrad reint reint2 rsgetline rsglstdin \ rsstart1 rsstart2 rsstart3 rstest6 \ shadow shadowbuiltin sortfor sortfor2 sortu sourcesplit split_after_fpat \ @@ -2396,6 +2399,12 @@ profile7: @sed 1,2d < ap-$@.out > _$@; rm ap-$@.out @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +profile12: + @echo $@ + @$(AWK) --profile=ap-$@.out -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.in > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@ + @rm ap-$@.out + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + mpfrieee: @echo $@ @$(AWK) -M -vPREC=double -f "$(srcdir)"/$@.awk > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@ diff --git a/test/profile11.ok b/test/profile11.ok index 77f4dd7f..be027371 100644 --- a/test/profile11.ok +++ b/test/profile11.ok @@ -301,7 +301,7 @@ BEGIN { # range comment c /foo/, /bar/ { - print + print } diff --git a/test/profile12.awk b/test/profile12.awk new file mode 100644 index 00000000..6664e681 --- /dev/null +++ b/test/profile12.awk @@ -0,0 +1,3 @@ +NR == 1 +NR == 2 { print } +NR == 3 { print $0 } diff --git a/test/profile12.in b/test/profile12.in new file mode 100644 index 00000000..e5791419 --- /dev/null +++ b/test/profile12.in @@ -0,0 +1,4 @@ +Line 1 +Line 2 +Line 3 +Line 4 diff --git a/test/profile12.ok b/test/profile12.ok new file mode 100644 index 00000000..6ad36e52 --- /dev/null +++ b/test/profile12.ok @@ -0,0 +1,3 @@ +Line 1 +Line 2 +Line 3 |