3 test_description
='test case insensitive pathspec limiting'
6 if test_have_prereq CASE_INSENSITIVE_FS
8 skip_all
='skipping case sensitive tests - case insensitive file system'
12 test_expect_success
'create commits with glob characters' '
13 test_commit bar bar &&
14 test_commit bAr bAr &&
15 test_commit BAR BAR &&
17 test_commit foo/bar foo/bar &&
18 test_commit foo/bAr foo/bAr &&
19 test_commit foo/BAR foo/BAR &&
21 test_commit fOo/bar fOo/bar &&
22 test_commit fOo/bAr fOo/bAr &&
23 test_commit fOo/BAR fOo/BAR &&
25 test_commit FOO/bar FOO/bar &&
26 test_commit FOO/bAr FOO/bAr &&
27 test_commit FOO/BAR FOO/BAR
30 test_expect_success
'tree_entry_interesting matches bar' '
32 git log --format=%s -- "bar" >actual &&
33 test_cmp expect actual
36 test_expect_success
'tree_entry_interesting matches :(icase)bar' '
42 git log --format=%s -- ":(icase)bar" >actual &&
43 test_cmp expect actual
46 test_expect_success
'tree_entry_interesting matches :(icase)bar with prefix' '
52 ( cd fOo && git log --format=%s -- ":(icase)bar" ) >actual &&
53 test_cmp expect actual
56 test_expect_success
'tree_entry_interesting matches :(icase)bar with empty prefix' '
68 ( cd fOo && git log --format=%s -- ":(icase)../foo/bar" ) >actual &&
69 test_cmp expect actual
72 test_expect_success
'match_pathspec_depth matches :(icase)bar' '
78 git ls-files ":(icase)bar" >actual &&
79 test_cmp expect actual
82 test_expect_success
'match_pathspec_depth matches :(icase)bar with prefix' '
88 ( cd fOo && git ls-files --full-name ":(icase)bar" ) >actual &&
89 test_cmp expect actual
92 test_expect_success
'match_pathspec_depth matches :(icase)bar with empty prefix' '
99 ( cd fOo && git ls-files --full-name ":(icase)bar" ../bar ) >actual &&
100 test_cmp expect actual