aboutsummaryrefslogtreecommitdiff
path: root/tests.mk
diff options
context:
space:
mode:
authorDmitry Mikhirev2014-12-18 14:55:55 +0300
committerDmitry Mikhirev2014-12-18 14:59:57 +0300
commit2552a55b8082ebf502cc4dd3b406258ee0977fea (patch)
tree81b6ba3da57feba8b198dcb6bc7a19b29d01e69a /tests.mk
parenta60a739b3fe1585861a2dd5cf75e77a05e8f380d (diff)
downloadmake_pcre-2552a55b8082ebf502cc4dd3b406258ee0977fea.tar.gz
make_pcre-2552a55b8082ebf502cc4dd3b406258ee0977fea.tar.bz2
make_pcre-2552a55b8082ebf502cc4dd3b406258ee0977fea.tar.xz
make_pcre-2552a55b8082ebf502cc4dd3b406258ee0977fea.zip
expand replacement string just before substitution, after vars set
Diffstat (limited to 'tests.mk')
-rw-r--r--tests.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests.mk b/tests.mk
index 10e34c8..3f40808 100644
--- a/tests.mk
+++ b/tests.mk
@@ -2,7 +2,7 @@ ifneq ($(findstring 4.,$(MAKE_VERSION)),4.)
$(error you need GNU make 4.x to run tests)
endif
-NUMTESTS = 23
+NUMTESTS = 25
tests := $(foreach num,$(shell seq -f%03g $(NUMTESTS)),test$(num))
load pcre.so
@@ -74,6 +74,10 @@ test021 = "$(s aaa,x,dcbaaa)" = "dcbx"
test022 = "$(s aaa,x,aaabbaaa,g)" = "xbbx"
test023 = "$(s a,x,aaa,g)" = "xxx"
+# test expansion of substituted string
+test024 = "$(s a(.),$(1),aaabac,g)" = "abc"
+test025 = "$(s (?<var>.)a,$(var),aabaca,g)" = "abc"
+
### END OF TEST EXPRESSIONS ###
test%: