aboutsummaryrefslogtreecommitdiffstats
path: root/pc
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-08-13 17:03:19 -0400
committerArnold D. Robbins <arnold@skeeve.com>2021-08-13 17:03:19 -0400
commitbcc0594e9b64c89b56e8ea6891c0a9f8b97c57d1 (patch)
treea9b1274d4c91673b6da697f31d82177b16538913 /pc
parent492c24d65f760edea1f9228260930728eb747cf7 (diff)
downloadegawk-bcc0594e9b64c89b56e8ea6891c0a9f8b97c57d1.tar.gz
egawk-bcc0594e9b64c89b56e8ea6891c0a9f8b97c57d1.tar.bz2
egawk-bcc0594e9b64c89b56e8ea6891c0a9f8b97c57d1.zip
Rationalize strong regex as param to sub/gsub. Add tests.
Diffstat (limited to 'pc')
-rw-r--r--pc/Makefile.tst7
1 files changed, 6 insertions, 1 deletions
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: $$? >>_$@