3 test_description='Various filesystem issues'
7 auml=`printf '\xc3\xa4'`
8 aumlcdiar=`printf '\x61\xcc\x88'`
10 test_expect_success 'see if we expect ' '
12 test_case=test_expect_success
13 test_unicode=test_expect_success
15 echo good >junk/CamelCase &&
16 echo bad >junk/camelcase &&
17 if test "$(cat junk/CamelCase)" != good
19 test_case=test_expect_failure
20 say "will test on a case insensitive filesystem"
25 case "$(cd junk && echo *)" in
27 test_unicode=test_expect_failure
28 say "will test on a unicode corrupting filesystem"
35 test_expect_success "setup case tests" '
39 git commit -m "initial" &&
41 git checkout -b topic &&
42 git mv camelcase tmp &&
43 git mv tmp CamelCase &&
44 git commit -m "rename" &&
45 git checkout -f master
49 $test_case 'rename (case change)' '
51 git mv camelcase CamelCase &&
52 git commit -m "rename"
56 $test_case 'merge (case change)' '
58 git reset --hard initial &&
63 test_expect_success "setup unicode normalization tests" '
65 test_create_repo unicode &&
68 git add "$aumlcdiar" &&
71 git checkout -b topic &&
72 git mv $aumlcdiar tmp &&
74 git commit -m rename &&
75 git checkout -f master
79 $test_unicode 'rename (silent unicode normalization)' '
81 git mv "$aumlcdiar" "$auml" &&
86 $test_unicode 'merge (silent unicode normalization)' '
88 git reset --hard initial &&