Skip to content

Commit 3304857

Browse files
committed
check windows bash newline behavior
1 parent c0c0922 commit 3304857

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

analysis/test.sh

+10-8
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,22 @@ echo "done---------"
1212
# node ./checkErrors.js
1313

1414
for file in tests/src/*.{res,resi}; do
15-
./rescript-editor-analysis.exe test $file &> $(exp $file)
15+
# ./rescript-editor-analysis.exe test $file &> $(exp $file)
16+
cat $file &> $(exp $file)
1617
# CI
1718
# if [ "$RUNNER_OS" == "Windows" ]; then
1819
# dos2unix $(exp $file)
1920
# fi
2021
done
2122

23+
echo "cat -A test.sh last"
24+
cat -A tests/src/expected/Auto.res.txt
25+
echo "done cat last---------"
26+
echo "git diff test.sh last"
27+
git diff tests/src/expected/Auto.res.txt
28+
echo "done git last---------"
29+
30+
2231
warningYellow='\033[0;33m'
2332
successGreen='\033[0;32m'
2433
reset='\033[0m'
@@ -30,13 +39,6 @@ else
3039
printf "${warningYellow}⚠️ There are unstaged differences in tests/! Did you break a test?\n${diff}\n${reset}"
3140
# node ./checkErrors.js
3241

33-
echo "cat -A test.sh last"
34-
cat -A tests/src/expected/Auto.res.txt
35-
echo "done cat last---------"
36-
echo "git diff test.sh last"
37-
git diff tests/src/expected/Auto.res.txt
38-
echo "done git last---------"
39-
4042
git --no-pager diff --word-diff-regex=. tests/src/expected/Auto.res.txt
4143
exit 1
4244
fi

0 commit comments

Comments
 (0)