From bcc0594e9b64c89b56e8ea6891c0a9f8b97c57d1 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 13 Aug 2021 17:03:19 -0400 Subject: Rationalize strong regex as param to sub/gsub. Add tests. --- pc/Makefile.tst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pc') diff --git a/pc/Makefile.tst b/pc/Makefile.tst index 4b99204f..b9572ba1 100644 --- a/pc/Makefile.tst +++ b/pc/Makefile.tst @@ -216,7 +216,7 @@ GAWK_EXT_TESTS = \ procinfs profile0 profile1 profile2 profile3 profile4 profile5 profile6 \ profile7 profile8 profile9 profile10 profile11 profile12 profile13 \ profile14 profile15 pty1 pty2 \ - rebuf regnul1 regnul2 regx8bit reginttrad reint reint2 rsgetline rsglstdin \ + rebuf regexsub regnul1 regnul2 regx8bit reginttrad reint reint2 rsgetline rsglstdin \ rsstart1 rsstart2 rsstart3 rstest6 \ sandbox1 shadow shadowbuiltin sortfor sortfor2 sortu \ sourcesplit split_after_fpat \ @@ -3152,6 +3152,11 @@ profile15: @AWKPATH="$(srcdir)" $(AWK) -f $@.awk --pretty-print=_$@ >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +regexsub: + @echo $@ + @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + regnul1: @echo $@ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ -- cgit v1.2.3