Skip to content

Commit 1b8afc4

Browse files
committed
Try a simpler test
1 parent c009463 commit 1b8afc4

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

analysis/test.sh

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
1-
for file in tests/src/*.{res,resi}; do
2-
output="$(dirname $file)/expected/$(basename $file).txt"
3-
./rescript-editor-analysis.exe test $file &> $output
4-
# CI. We use LF, and the CI OCaml fork prints CRLF. Convert.
5-
if [ "$RUNNER_OS" == "Windows" ]; then
6-
perl -pi -e 's/\r\n/\n/g' -- $output
7-
fi
8-
done
9-
10-
warningYellow='\033[0;33m'
11-
successGreen='\033[0;32m'
12-
reset='\033[0m'
13-
14-
diff=$(git ls-files --modified tests/src/expected)
15-
if [[ $diff = "" ]]; then
16-
printf "${successGreen}✅ No unstaged tests difference.${reset}\n"
17-
else
18-
printf "${warningYellow}⚠️ There are unstaged differences in tests/! Did you break a test?\n${diff}\n${reset}"
19-
git --no-pager diff tests/src/expected
20-
exit 1
21-
fi
1+
./rescript-editor-analysis.exe --help
2+
./rescript-editor-analysis.exe hover ./tests/src/Auto.res 2 14

0 commit comments

Comments
 (0)