Use README.md in setup.py long_description
[stgit.git] / t / t3200-non-ascii-filenames.sh
blob5825bce587e7ccdd4757f0dfb52727a4be0d1987
1 #!/bin/sh
2 test_description='Handle files with non-ASCII characters in their names'
4 . ./test-lib.sh
6 # Ignore our own output files.
7 cat >> .git/info/exclude <<EOF
8 /expected.txt
9 /output.txt
10 EOF
12 test_expect_success 'Setup' '
13 echo "Fjäderholmarna" > skärgårdsö.txt &&
14 stg add skärgårdsö.txt &&
15 git commit -m "Create island" &&
16 stg init &&
17 echo foo > unrelated.txt &&
18 stg add unrelated.txt &&
19 stg new p0 -m "Unrelated file" &&
20 stg refresh &&
21 stg pop &&
22 rm skärgårdsö.txt &&
23 git commit -a -m "Remove island" &&
24 git tag upstream &&
25 git reset --hard HEAD^ &&
26 stg push
29 test_expect_success 'Rebase onto changed non-ASCII file' '
30 stg rebase upstream
33 test_expect_success 'Setup' '
34 stg delete p0 &&
35 git reset --hard HEAD^ &&
36 echo "-- ett liv mitt ute i vattnet" >> skärgårdsö.txt &&
37 stg new p1 -m "Describe island"
40 cat > expected.txt <<EOF
41 M "sk\303\244rg\303\245rds\303\266.txt"
42 EOF
43 test_expect_success 'Status of modified non-ASCII file' '
44 stg status > output.txt &&
45 test_cmp expected.txt output.txt
48 test_expect_success 'Refresh changes to non-ASCII file' '
49 stg refresh
52 cat > expected.txt <<EOF
53 EOF
54 test_expect_success 'Status after refresh' '
55 stg status > output.txt &&
56 test_cmp expected.txt output.txt
59 test_done