aboutsummaryrefslogtreecommitdiff
path: root/tests.mk
diff options
context:
space:
mode:
authorDmitry Mikhirev2015-03-06 21:55:42 +0300
committerDmitry Mikhirev2015-03-06 21:55:42 +0300
commite32303b41512e3386b83893b8331fb2d4f83be95 (patch)
tree7268e305930ab94661fec603362e1065b6fbc9e1 /tests.mk
parent68ff1e50c953ba421e8f266c4d9e2b690260c2c8 (diff)
downloadmake_pcre-e32303b41512e3386b83893b8331fb2d4f83be95.tar.gz
make_pcre-e32303b41512e3386b83893b8331fb2d4f83be95.tar.bz2
make_pcre-e32303b41512e3386b83893b8331fb2d4f83be95.tar.xz
make_pcre-e32303b41512e3386b83893b8331fb2d4f83be95.zip
added php-like `S' option
Diffstat (limited to 'tests.mk')
-rw-r--r--tests.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests.mk b/tests.mk
index 353735a..6838b1c 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 = 34
+NUMTESTS = 36
tests := $(foreach num,$(shell seq -f%03g $(NUMTESTS)),test$(num))
load pcre.so
@@ -129,6 +129,13 @@ endef
test034 = "$(m line\d$,$(subj034))" = "line2" -a -z "$(m line\d$,$(subj034),D)" -a \
"$(m test$,test,D)" = "test"
+# test `S' option
+# no way to check directly that it really works, so just enshure that
+# it does not break anything
+# TODO: add indirect (speed) test
+test035 = "$(m test,test,S)" = test
+test036 = "$(s a,x,a,S)" = "x"
+
### END OF TEST EXPRESSIONS ###
test%: