diff options
author | Dmitry Mikhirev | 2015-02-15 15:10:15 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2015-02-15 15:10:15 +0300 |
commit | e6f7aee8c27d87047857b9daf0075e90062b4ac2 (patch) | |
tree | 0c2876dce16c20a7ae938a7314dfa8c0e1d3dbfe /tests.mk | |
parent | 15f22648cd99f392ac5cab6afeec2a0e97b85c6d (diff) | |
download | make_pcre-e6f7aee8c27d87047857b9daf0075e90062b4ac2.tar.gz make_pcre-e6f7aee8c27d87047857b9daf0075e90062b4ac2.tar.bz2 make_pcre-e6f7aee8c27d87047857b9daf0075e90062b4ac2.tar.xz make_pcre-e6f7aee8c27d87047857b9daf0075e90062b4ac2.zip |
added php-like options `A' and `D'
Diffstat (limited to 'tests.mk')
-rw-r--r-- | tests.mk | 14 |
1 files changed, 13 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 = 32 +NUMTESTS = 34 tests := $(foreach num,$(shell seq -f%03g $(NUMTESTS)),test$(num)) load pcre.so @@ -117,6 +117,18 @@ test030 = -z "$(m test.test,$(subj029))" -a \ test031 = "$(m x?,aaa,g)" = "" test032 = "$(s x?,!,abcd,g)" = "!a!b!c!d!" +# test `A' option +test033 = -z "$(m test,atest,A)" -a "$(m test,test,A)" = "test" + +# test `D' option +define subj034 +line1 +line2 + +endef +test034 = "$(m line\d$,$(subj034))" = "line2" -a -z "$(m line\d$,$(subj034),D)" -a \ + "$(m test$,test,D)" = "test" + ### END OF TEST EXPRESSIONS ### test%: |