diff options
author | Dmitry Mikhirev | 2014-12-17 18:34:27 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2014-12-17 18:34:27 +0300 |
commit | 1433460dd96b393c8403a99a3a83608e4f07d025 (patch) | |
tree | 1435188d2bb9c86a702c24820340b99fce727cec /tests.mk | |
parent | 73f6057ab2601edfd281f29f7f08f9a0eb040b84 (diff) | |
download | make_pcre-1433460dd96b393c8403a99a3a83608e4f07d025.tar.gz make_pcre-1433460dd96b393c8403a99a3a83608e4f07d025.tar.bz2 make_pcre-1433460dd96b393c8403a99a3a83608e4f07d025.tar.xz make_pcre-1433460dd96b393c8403a99a3a83608e4f07d025.zip |
added pcre_subst function
Diffstat (limited to 'tests.mk')
-rw-r--r-- | tests.mk | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -2,10 +2,10 @@ ifneq ($(findstring 4.,$(MAKE_VERSION)),4.) $(error you need GNU make 4.x to run tests) endif -tests = test001 test002 test003 test004 test005 test006 test007 test008 \ - test009 test010 +NUMTESTS = 23 +tests := $(foreach num,$(shell seq -f%03g $(NUMTESTS)),test$(num)) --load pcre.so +load pcre.so all: $(tests) @@ -55,6 +55,21 @@ test010 = -n "$(shell \ ) | $(MAKE) -f - 2>&1 | \ fgrep Stop.)" +# test pattern substitution +test011 = "$(s a,x,a)" = "x" +test012 = "$(s a,x,abcd)" = "xbcd" +test013 = "$(s a,x,dcba)" = "dcbx" +test014 = "$(s a,x,abba,g)" = "xbbx" +test015 = "$(s a,xxx,a)" = "xxx" +test016 = "$(s a,xxx,abcd)" = "xxxbcd" +test017 = "$(s a,xxx,dcba)" = "dcbxxx" +test018 = "$(s a,xxx,abba,g)" = "xxxbbxxx" +test019 = "$(s aaa,x,aaa)" = "x" +test020 = "$(s aaa,x,aaabcd)" = "xbcd" +test021 = "$(s aaa,x,dcbaaa)" = "dcbx" +test022 = "$(s aaa,x,aaabbaaa,g)" = "xbbx" +test023 = "$(s a,x,aaa,g)" = "xxx" + ### END OF TEST EXPRESSIONS ### test%: |