summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorMichał Kiedrowicz <michal.kiedrowicz@gmail.com>2011-05-09 23:52:07 +0200
committerJunio C Hamano <gitster@pobox.com>2011-05-09 16:29:54 -0700
commit8f852ce613650b0cccf02adecbc18865d8e21fb6 (patch)
treeb86012dbb1d7b5d691f241331608a1c8611d7f33 /t/README
parenta119f91e57f23f89b1f9170613d517d62a91c97d (diff)
downloadgit-8f852ce613650b0cccf02adecbc18865d8e21fb6.tar.gz
grep: Add basic tests
This modest patch adds simple tests for git grep -P/--perl-regexp and its interoperation with -i and -w. Tests are only enabled when prerequisite LIBPCRE is defined (it's automatically set based on USE_LIBPCRE in test-lib.sh). Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/README')
-rw-r--r--t/README5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/README b/t/README
index 428ee05c4a..238729c5b7 100644
--- a/t/README
+++ b/t/README
@@ -587,6 +587,11 @@ use these, and "test_set_prereq" for how to define your own.
Test is not run by root user, and an attempt to write to an
unwritable file is expected to fail correctly.
+ - LIBPCRE
+
+ Git was compiled with USE_LIBPCRE=YesPlease. Wrap any tests
+ that use git-grep --perl-regexp or git-grep -P in these.
+
Tips for Writing Tests
----------------------