diff options
| author | Dmitry Mikhirev | 2014-11-29 00:33:06 +0300 | 
|---|---|---|
| committer | Dmitry Mikhirev | 2014-11-29 00:33:06 +0300 | 
| commit | acfc677a762e482446f0a4046cb9105f80723b58 (patch) | |
| tree | 01d82653fbab0729890fd2ad9a7a5a05652cf076 | |
| parent | 5501181eab94441e4f32b65ae40fc56957123bec (diff) | |
| download | make_pcre-acfc677a762e482446f0a4046cb9105f80723b58.tar.gz make_pcre-acfc677a762e482446f0a4046cb9105f80723b58.tar.bz2 make_pcre-acfc677a762e482446f0a4046cb9105f80723b58.tar.xz make_pcre-acfc677a762e482446f0a4046cb9105f80723b58.zip | |
added test for error message
| -rw-r--r-- | GNUmakefile | 15 | 
1 files changed, 13 insertions, 2 deletions
| diff --git a/GNUmakefile b/GNUmakefile index b18dcbf..96771be 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -6,7 +6,7 @@ PCRE_LIBS := $(shell $(PCRE_CONFIG) --libs)  LIBS = $(PCRE_LIBS)  tests = test001 test002 test003 test004 test005 test006 test007 test008 \ -        test009 +        test009 test010  ifneq ($(findstring 4.,$(MAKE_VERSION)),4.)      $(error GNU make version 4.x is required) @@ -55,11 +55,22 @@ test007 = "$(m a(.*)b,a\$$b)" = "a\$$b" -a "$(1)" = "\$$"  test008 = "$(m test\d,test1test2test3,g)" = "test1 test2 test3" -a \            "$(m test,TestesT,gi)" = "Test" -# check that search performed only once without `g' option +# check that search performed only once without `g" option  test009 = "$(m test\d,test1test2test3)" = "test1" +# test regexp compilation error +test010 = -n "$(shell \ +    ( \ +    echo load\ pcre.so ; \ +    echo a\ =\ \$\(m\ \{2\}test,test\) ; \ +    echo all: ; \ +    echo \\	@true; \ +    ) | $(MAKE) -f - 2>&1 | \ +    grep Stop.)" +  ### END OF TEST EXPRESSIONS ### +#$(info $(value test010))  test%:  	@if [ $($@) ] ; then \ | 
