aboutsummaryrefslogtreecommitdiff
path: root/tests.mk
diff options
context:
space:
mode:
authorDmitry Mikhirev2015-02-15 15:10:15 +0300
committerDmitry Mikhirev2015-02-15 15:10:15 +0300
commite6f7aee8c27d87047857b9daf0075e90062b4ac2 (patch)
tree0c2876dce16c20a7ae938a7314dfa8c0e1d3dbfe /tests.mk
parent15f22648cd99f392ac5cab6afeec2a0e97b85c6d (diff)
downloadmake_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.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests.mk b/tests.mk
index ce00b89..353735a 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 = 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%: