2
2
3
3
source cmdTestsCommon.inc.sh
4
4
5
- # check that benchmarks can run
6
- " $SBT " " dotty-bench/jmh:run 1 1 tests/pos/alias.scala"
7
- " $SBT " " dotty-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala"
8
- " $SBT " " dotty-bench-bootstrapped/jmh:run 1 1 -with-compiler compiler/src/dotty/tools/dotc/core/Types.scala"
9
-
10
5
# check that `sbt dotc` compiles and `sbt dotr` runs it
11
6
echo " testing sbt dotc and dotr"
12
7
" $SBT " " ;dotc $SOURCE -d $OUT ;dotr -classpath $OUT $MAIN " > " $tmp "
@@ -33,34 +28,6 @@ clear_out "$OUT"
33
28
" $SBT " " ;dotc -d $OUT /out.jar $SOURCE ; dotc -decompile -classpath $OUT /out.jar -color:never $MAIN " > " $tmp "
34
29
grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
35
30
36
- echo " testing scala.quoted.Expr.run from sbt dotr"
37
- " $SBT " " ;dotty-compiler-bootstrapped/dotc tests/run-with-compiler/quote-run.scala; dotty-compiler-bootstrapped/dotr -with-compiler Test" > " $tmp "
38
- grep -qe " val a: scala.Int = 3" " $tmp "
39
-
40
-
41
- # setup for `dotc`/`dotr` script tests
42
- " $SBT " dist-bootstrapped/pack
43
-
44
- # check that `dotc` compiles and `dotr` runs it
45
- echo " testing ./bin/dotc and ./bin/dotr"
46
- clear_out " $OUT "
47
- ./bin/dotc " $SOURCE " -d " $OUT "
48
- ./bin/dotr -classpath " $OUT " " $MAIN " > " $tmp "
49
- test " $EXPECTED_OUTPUT " = " $( cat " $tmp " ) "
50
-
51
- # check that `dotc -from-tasty` compiles and `dotr` runs it
52
- echo " testing ./bin/dotc -from-tasty and dotr -classpath"
53
- clear_out " $OUT1 "
54
- ./bin/dotc -from-tasty -classpath " $OUT " -d " $OUT1 " " $MAIN "
55
- ./bin/dotr -classpath " $OUT1 " " $MAIN " > " $tmp "
56
- test " $EXPECTED_OUTPUT " = " $( cat " $tmp " ) "
57
-
58
- # echo ":quit" | ./dist-bootstrapped/target/pack/bin/dotr # not supported by CI
59
-
60
- echo " testing ./bin/dotd"
61
- clear_out " $OUT "
62
- ./bin/dotd -project Hello -siteroot " $OUT " " $SOURCE "
63
-
64
31
# # Disabled because of flakeyness, should be changed to not depend on sbt
65
32
# echo "running Vulpix meta test"
66
33
# tmp=$(mktemp)
0 commit comments