aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorDmitry Mikhirev2014-11-27 20:13:15 +0300
committerDmitry Mikhirev2014-11-27 20:13:15 +0300
commit2dac8d16aaf4041411249d3d52c4a9af259687de (patch)
tree0d2f99ffce8e4aacaa41850ee594e4f3d33a38ed /GNUmakefile
parentb2bb204fa2146d7606aa62cf138315d487206289 (diff)
downloadmake_pcre-2dac8d16aaf4041411249d3d52c4a9af259687de.tar.gz
make_pcre-2dac8d16aaf4041411249d3d52c4a9af259687de.tar.bz2
make_pcre-2dac8d16aaf4041411249d3d52c4a9af259687de.tar.xz
make_pcre-2dac8d16aaf4041411249d3d52c4a9af259687de.zip
added global search option
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 266bf8a..b18dcbf 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -5,7 +5,8 @@ PCRE_CFLAGS := $(shell $(PCRE_CONFIG) --cflags)
PCRE_LIBS := $(shell $(PCRE_CONFIG) --libs)
LIBS = $(PCRE_LIBS)
-tests = test001 test002 test003 test004 test005 test006 test007
+tests = test001 test002 test003 test004 test005 test006 test007 test008 \
+ test009
ifneq ($(findstring 4.,$(MAKE_VERSION)),4.)
$(error GNU make version 4.x is required)
@@ -50,6 +51,13 @@ test006 = "$(m ^TEST+,testtttt,iU)" = test
# test passing `$' characters to variable
test007 = "$(m a(.*)b,a\$$b)" = "a\$$b" -a "$(1)" = "\$$"
+# test global search
+test008 = "$(m test\d,test1test2test3,g)" = "test1 test2 test3" -a \
+ "$(m test,TestesT,gi)" = "Test"
+
+# check that search performed only once without `g' option
+test009 = "$(m test\d,test1test2test3)" = "test1"
+
### END OF TEST EXPRESSIONS ###