1- function exp {
2- echo " $( dirname $1 ) /expected/$( basename $1 ) .txt"
3- }
1+ printenv
42
53for file in tests/src/* .{res,resi}; do
6- ./rescript-editor-analysis.exe test $file & > $( exp $file )
4+ output=" $( dirname $file ) /expected/$( basename $file ) .txt"
5+ ./rescript-editor-analysis.exe test $file & > $output
6+ # CI
7+ echo " inside loop now"
8+ echo $RUNNER_OS
9+ if [ " $RUNNER_OS " == " Windows" ]; then
10+ echo " sedding..."
11+ sed -i " s/\r\n/\n/g" $output
12+ fi
713done
814
915./testmore.exe > helloworld.txt
@@ -26,21 +32,17 @@ echo "------"
2632echo " cat helloworld3.txt"
2733cat -A helloworld3.txt
2834echo " ------"
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!========="
3935
40- # # CI
41- # if [ "$RUNNER_OS" == "Windows" ]; then
42- # dos2unix tests/src/expected/*
43- # fi
36+ # echo "dox2unix helloworld.txt"
37+ # dos2unix helloworld.txt
38+ # echo "------"
39+ # echo "dox2unix helloworld2.txt"
40+ # dos2unix helloworld2.txt
41+ # echo "------"
42+ # echo "dox2unix helloworld3.txt"
43+ # dos2unix helloworld3.txt
44+ # echo "------"
45+ # echo "========all done!========="
4446
4547warningYellow=' \033[0;33m'
4648successGreen=' \033[0;32m'
0 commit comments