Skip to content

Commit faedf8a

Browse files
committed
Try all the crlf stripping
1 parent e244658 commit faedf8a

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

analysis/Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ tests/node_modules/.bin/rescript:
3737

3838
test: dce tests/node_modules/.bin/rescript
3939
@cd tests && node_modules/.bin/rescript
40-
OCAMLOPT -o testmore.exe ./testmore.ml
41-
OCAMLOPT -o testfile.exe ./testfile.ml
42-
OCAMLOPT -o testfile2.exe ./testfile2.ml
4340
./test.sh
4441

4542
clean:

analysis/test.sh

+21-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,33 @@ for file in tests/src/*.{res,resi}; do
22
output="$(dirname $file)/expected/$(basename $file).txt"
33
./rescript-editor-analysis.exe test $file &> $output
44
# CI
5-
echo "inside loop now"
6-
echo $RUNNER_OS
75
if [ "$RUNNER_OS" == "Windows" ]; then
86
echo "sedding..."
97
sed -i "" $output
108
fi
11-
echo "catting"
12-
cat -A $output
139
done
1410

11+
echo "cat auto"
12+
cat -A tests/src/expected/Auto.res.txt
13+
echo "---"
14+
echo "sed with regex"
15+
sed -i "s/\r\n/\n/g" tests/src/expected/Auto.res.txt
16+
cat -A tests/src/expected/Auto.res.txt
17+
echo "---"
18+
echo "sed with empty regex"
19+
sed -i "" tests/src/expected/Auto.res.txt
20+
cat -A tests/src/expected/Auto.res.txt
21+
echo "---"
22+
echo "perl======"
23+
perl -pi -e 's/\r\n/\n/g' -- tests/src/expected/Auto.res.txt
24+
cat -A tests/src/expected/Auto.res.txt
25+
echo "---"
26+
echo "zip unzip"
27+
zip -ll tests.zip tests/src/expected/*
28+
unzip -ll tests.zip
29+
cat -A tests/src/expected/Auto.res.txt
30+
echo "---"
31+
1532
warningYellow='\033[0;33m'
1633
successGreen='\033[0;32m'
1734
reset='\033[0m'

0 commit comments

Comments
 (0)