1
- function exp {
2
- echo " $( dirname $1 ) /expected/$( basename $1 ) .txt"
3
- }
4
-
5
1
for file in tests/src/* .{res,resi}; do
6
- ./rescript-editor-analysis.exe test $file & > $( exp $file )
2
+ output=" $( dirname $file ) /expected/$( basename $file ) .txt"
3
+ ./rescript-editor-analysis.exe test $file & > $output
4
+ # CI
5
+ echo $RUNNER_OS
6
+ if [ " $RUNNER_OS " == " Windows" ]; then
7
+ echo " sedding..."
8
+ sed -i " s/\r\n/\n/g" $output
9
+ fi
7
10
done
8
11
9
12
./testmore.exe > helloworld.txt
@@ -26,21 +29,17 @@ echo "------"
26
29
echo " cat helloworld3.txt"
27
30
cat -A helloworld3.txt
28
31
echo " ------"
29
- echo " dox2unix helloworld.txt"
30
- dos2unix helloworld.txt
31
- echo " ------"
32
- echo " dox2unix helloworld2.txt"
33
- dos2unix helloworld2.txt
34
- echo " ------"
35
- echo " dox2unix helloworld3.txt"
36
- dos2unix helloworld3.txt
37
- echo " ------"
38
- echo " ========all done!========="
39
32
40
- # # CI
41
- # if [ "$RUNNER_OS" == "Windows" ]; then
42
- # dos2unix tests/src/expected/*
43
- # fi
33
+ # echo "dox2unix helloworld.txt"
34
+ # dos2unix helloworld.txt
35
+ # echo "------"
36
+ # echo "dox2unix helloworld2.txt"
37
+ # dos2unix helloworld2.txt
38
+ # echo "------"
39
+ # echo "dox2unix helloworld3.txt"
40
+ # dos2unix helloworld3.txt
41
+ # echo "------"
42
+ # echo "========all done!========="
44
43
45
44
warningYellow=' \033[0;33m'
46
45
successGreen=' \033[0;32m'
0 commit comments