@@ -34,11 +34,17 @@ call "%_SBT_CMD%" "dotty-bench/jmh:run 1 1 tests/pos/alias.scala"
34
34
if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
35
35
36
36
rem # The above is here as it relies on the bootstrapped library.
37
+ if %_DEBUG% == 1 echo [%_BASENAME% ] call " %_SBT_CMD% " " dotty-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala"
37
38
call " %_SBT_CMD% " " dotty-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala"
39
+ if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
40
+ if %_DEBUG% == 1 echo [%_BASENAME% ] call " %_SBT_CMD% " " dotty-bench-bootstrapped/jmh:run 1 1 -with-compiler compiler/src/dotty/tools/dotc/core/Types.scala"
38
41
call " %_SBT_CMD% " " dotty-bench-bootstrapped/jmh:run 1 1 -with-compiler compiler/src/dotty/tools/dotc/core/Types.scala"
42
+ if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
39
43
40
44
echo testing scala.quoted.Expr.run from sbt dotr
45
+ if %_DEBUG% == 1 echo [%_BASENAME% ] call " %_SBT_CMD% " " ;dotty-compiler-bootstrapped/dotc tests/run-with-compiler/quote-run.scala; dotty-compiler-bootstrapped/dotr -with-compiler Test" ^ > " %_TMP_FILE% "
41
46
call " %_SBT_CMD% " " ;dotty-compiler-bootstrapped/dotc tests/run-with-compiler/quote-run.scala; dotty-compiler-bootstrapped/dotr -with-compiler Test" > " %_TMP_FILE% "
47
+ if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
42
48
call :grep " val a: scala.Int = 3" " %_TMP_FILE% "
43
49
if not %_EXITCODE% == 0 goto end
44
50
@@ -52,8 +58,10 @@ echo testing ./bin/dotc and ./bin/dotr
52
58
call :clear_out " %_OUT_DIR% "
53
59
if %_DEBUG% == 1 echo [%_BASENAME% ] call %_BIN_DIR% \dotc.bat " %_SOURCE% " -d " %_OUT_DIR% "
54
60
call %_BIN_DIR% \dotc.bat " %_SOURCE% " -d " %_OUT_DIR% "
61
+ if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
55
62
if %_DEBUG% == 1 echo [%_BASENAME% ] call %_BIN_DIR% \dotr.bat -classpath " %_OUT_DIR% " " %_MAIN% " ^ > " %_TMP_FILE% "
56
63
call %_BIN_DIR% \dotr.bat -classpath " %_OUT_DIR% " " %_MAIN% " > " %_TMP_FILE% "
64
+ if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
57
65
if %_DEBUG% == 1 echo [%_BASENAME% ] call :test_pattern " %_EXPECTED_OUTPUT% " " %_TMP_FILE% "
58
66
call :test_pattern " %_EXPECTED_OUTPUT% " " %_TMP_FILE% "
59
67
if not %_EXITCODE% == 0 goto end
@@ -63,14 +71,14 @@ echo testing ./bin/dotc -from-tasty and dotr -classpath
63
71
call :clear_out " %_OUT1_DIR% "
64
72
if %_DEBUG% == 1 echo [%_BASENAME% ] call %_BIN_DIR% \dotc.bat -from-tasty -classpath " %_OUT_DIR% " -d " %_OUT1_DIR% " " %_MAIN% "
65
73
call %_BIN_DIR% \dotc.bat -from-tasty -classpath " %_OUT_DIR% " -d " %_OUT1_DIR% " " %_MAIN% "
74
+ if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
66
75
if %_DEBUG% == 1 echo [%_BASENAME% ] call %_BIN_DIR% \dotr.bat -classpath " %_OUT1_DIR% " " %_MAIN% " ^ > " %_TMP_FILE% "
67
76
call %_BIN_DIR% \dotr.bat -classpath " %_OUT1_DIR% " " %_MAIN% " > " %_TMP_FILE% "
77
+ if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
68
78
if %_DEBUG% == 1 echo [%_BASENAME% ] call :test_pattern " %_EXPECTED_OUTPUT% " " %_TMP_FILE% "
69
79
call :test_pattern " %_EXPECTED_OUTPUT% " " %_TMP_FILE% "
70
80
if not %_EXITCODE% == 0 goto end
71
81
72
- rem # echo ":quit" | ./dist-bootstrapped/target/pack/bin/dotr # not supported by CI
73
-
74
82
echo testing ./bin/dotd
75
83
call :clear_out " %_OUT_DIR% "
76
84
if %_DEBUG% == 1 echo [%_BASENAME% ] call %_BIN_DIR% \dotd.bat -project Hello -siteroot " %_OUT_DIR% " " %_SOURCE% "
0 commit comments