diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-02-10 13:45:46 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-02-10 13:50:48 +0100 |
commit | 83649228748092cf80ba2e600b530e37b4ac3c6b (patch) | |
tree | b2792c0d7224dff474e4b747eb127595fd4edd04 | |
parent | b2e5ff53b0195c84eca50dfce214a2cf88803149 (diff) | |
download | shared-mime-info-83649228748092cf80ba2e600b530e37b4ac3c6b.tar.gz |
tests: Add test for git clone on case insensitive filesystems
See: https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/125
-rwxr-xr-x | tests/test-case-sensitivity.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-case-sensitivity.sh b/tests/test-case-sensitivity.sh new file mode 100755 index 00000000..5cdfce29 --- /dev/null +++ b/tests/test-case-sensitivity.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +SRC_ROOT_DIR=`dirname $0`/.. +OUTPUT=$(find $SRC_ROOT_DIR | grep -v './.git' | tr '[:upper:]' '[:lower:]' | sort | uniq -d) + +if test -n "$OUTPUT" ; then + echo "There will be a case collision for a number of files on case insensitive filesystems" + exit 1 +fi +exit 0 |