From e32303b41512e3386b83893b8331fb2d4f83be95 Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Fri, 6 Mar 2015 21:55:42 +0300 Subject: added php-like `S' option --- tests.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests.mk') 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%: -- cgit v1.2.1