diff options
author | Dmitry Mikhirev | 2014-11-17 14:34:33 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2014-11-17 14:34:33 +0300 |
commit | a82fb28ede37a9e81cfca1b99b18c04746bcede5 (patch) | |
tree | e282a40f447d1c09115c6e9560adf1d82c42ba74 /GNUmakefile | |
parent | 9340c70b0c57f90220f03017337eadfe78eba96f (diff) | |
download | make_pcre-a82fb28ede37a9e81cfca1b99b18c04746bcede5.tar.gz make_pcre-a82fb28ede37a9e81cfca1b99b18c04746bcede5.tar.bz2 make_pcre-a82fb28ede37a9e81cfca1b99b18c04746bcede5.tar.xz make_pcre-a82fb28ede37a9e81cfca1b99b18c04746bcede5.zip |
code comments
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index c4999b2..3557b15 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -14,11 +14,23 @@ pcre.so: pcre.c check: $(tests) + +### TEST EXPRESSIONS ### +# each expression is passed to test(1) + +# simple test for pattern matching test001 = '$(m ^test$,test)' = test + +# test for pattern expansion test002: var = es test002 = '$(m ^t$(var)t$$,test,E)' = test + +# test for string capturing by number test003 = '$(m ^t(es)t$,test)$0$1' = testtestes -a -z '$(m a,b)$0$1' +### END OF TEST EXPRESSIONS ### + + test%: @if [ $($@) ] ; then \ echo '$@ PASSED'; \ |