summaryrefslogtreecommitdiff
path: root/t/t4209-log-pickaxe.sh
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-03-22 18:15:54 +0100
committerJunio C Hamano <gitster@pobox.com>2014-03-24 15:12:44 -0700
commit65a3402f427e76e50e540dbfbe2317d5c66a537d (patch)
treeb921159375179defc9ff89c6e981b84042a97735 /t/t4209-log-pickaxe.sh
parente7880fcd41dd4424a79efb0a939f1c008c5519c0 (diff)
downloadgit-65a3402f427e76e50e540dbfbe2317d5c66a537d.tar.gz
t4209: use helper functions to test --grep
Also add tests for non-matching cases. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4209-log-pickaxe.sh')
-rwxr-xr-xt/t4209-log-pickaxe.sh18
1 files changed, 4 insertions, 14 deletions
diff --git a/t/t4209-log-pickaxe.sh b/t/t4209-log-pickaxe.sh
index 919b371169..eaa14a057c 100755
--- a/t/t4209-log-pickaxe.sh
+++ b/t/t4209-log-pickaxe.sh
@@ -55,20 +55,10 @@ test_expect_success setup '
git rev-parse --verify HEAD >expect_second
'
-test_expect_success 'log --grep' '
- git log --grep=initial --format=%H >actual &&
- test_cmp expect_initial actual
-'
-
-test_expect_success 'log --grep --regexp-ignore-case' '
- git log --regexp-ignore-case --grep=InItial --format=%H >actual &&
- test_cmp expect_initial actual
-'
-
-test_expect_success 'log --grep -i' '
- git log -i --grep=InItial --format=%H >actual &&
- test_cmp expect_initial actual
-'
+test_log expect_initial --grep initial
+test_log expect_nomatch --grep InItial
+test_log_icase expect_initial --grep InItial
+test_log_icase expect_nomatch --grep initail
test_expect_success 'log --author --regexp-ignore-case' '
git log --regexp-ignore-case --author=person --format=%H >actual &&