]> Cypherpunks.ru repositories - goredo.git/blob - t/apenwarr/103-unicode/unicode.do
Import tests from apenwarr/redo and redo.sh
[goredo.git] / t / apenwarr / 103-unicode / unicode.do
1 # Test that redo can handle a script whose path contains non-ASCII characters.
2 # Note: the test directory is intentionally *not* a normalized unicode
3 # string, ie. filesystems like macOS will convert it to a different string
4 # at creation time. This tests weird normalization edge cases.
5 #
6 # Unfortunately, on macOS with APFS, it may helpfully normalize the path at
7 # *create* time, but not on future *open* attempts. Thus, we let the shell
8 # figure out what directory name actually got created, then pass that to redo.
9 # Hence the weird wildcard expansion loop.
10 rm -rf test-uni*.tmp
11 mkdir "test-uniçøðë.tmp"
12 for p in test-uni*.tmp; do
13         : >$p/test1.do
14         redo "$p/test1"
15 done
16