diff options
author | Dmitry Mikhirev | 2014-12-18 14:55:55 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2014-12-18 14:59:57 +0300 |
commit | 2552a55b8082ebf502cc4dd3b406258ee0977fea (patch) | |
tree | 81b6ba3da57feba8b198dcb6bc7a19b29d01e69a /tests.mk | |
parent | a60a739b3fe1585861a2dd5cf75e77a05e8f380d (diff) | |
download | make_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.mk | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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%: |