File tree 2 files changed +21
-7
lines changed
2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ tests/node_modules/.bin/rescript:
37
37
38
38
test : dce tests/node_modules/.bin/rescript
39
39
@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
43
40
./test.sh
44
41
45
42
clean :
Original file line number Diff line number Diff line change @@ -2,16 +2,33 @@ for file in tests/src/*.{res,resi}; do
2
2
output=" $( dirname $file ) /expected/$( basename $file ) .txt"
3
3
./rescript-editor-analysis.exe test $file & > $output
4
4
# CI
5
- echo " inside loop now"
6
- echo $RUNNER_OS
7
5
if [ " $RUNNER_OS " == " Windows" ]; then
8
6
echo " sedding..."
9
7
sed -i " " $output
10
8
fi
11
- echo " catting"
12
- cat -A $output
13
9
done
14
10
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
+
15
32
warningYellow=' \033[0;33m'
16
33
successGreen=' \033[0;32m'
17
34
reset=' \033[0m'
You can’t perform that action at this time.
0 commit comments