summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorMichał Kiedrowicz <michal.kiedrowicz@gmail.com>2011-05-09 21:52:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-09 23:29:54 (GMT)
commit8f852ce613650b0cccf02adecbc18865d8e21fb6 (patch)
treeb86012dbb1d7b5d691f241331608a1c8611d7f33 /t/test-lib.sh
parenta119f91e57f23f89b1f9170613d517d62a91c97d (diff)
downloadgit-8f852ce613650b0cccf02adecbc18865d8e21fb6.zip
git-8f852ce613650b0cccf02adecbc18865d8e21fb6.tar.gz
git-8f852ce613650b0cccf02adecbc18865d8e21fb6.tar.bz2
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/test-lib.sh')
-rw-r--r--t/test-lib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index abc47f3..d3ed598 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -1067,6 +1067,7 @@ esac
test -z "$NO_PERL" && test_set_prereq PERL
test -z "$NO_PYTHON" && test_set_prereq PYTHON
+test -n "$USE_LIBPCRE" && test_set_prereq LIBPCRE
# Can we rely on git's output in the C locale?
if test -n "$GETTEXT_POISON"