55source $( dirname $0 ) /cmdTestsCommon.inc.sh
66
77# check that benchmarks can run
8- " $SBT " " scala3-bench/jmh:run 1 1 tests/pos/alias.scala"
9- # The above is here as it relies on the bootstrapped library.
10- " $SBT " " scala3-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala"
11- " $SBT " " scala3-bench-bootstrapped/jmh:run 1 1 -with-compiler compiler/src/dotty/tools/dotc/core/Types.scala"
8+ # "$SBT" "scala3-bench/jmh:run 1 1 tests/pos/alias.scala"
9+ # # The above is here as it relies on the bootstrapped library.
10+ # "$SBT" "scala3-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala"
11+ # "$SBT" "scala3-bench-bootstrapped/jmh:run 1 1 -with-compiler compiler/src/dotty/tools/dotc/core/Types.scala"
1212
13- echo " testing scala.quoted.Expr.run from sbt scala"
14- " $SBT " " ;scala3-compiler-bootstrapped/scalac -with-compiler tests/run-staging/quote-run.scala; scala3-compiler-bootstrapped/scala -with-compiler Test" > " $tmp "
15- grep -qe " val a: scala.Int = 3" " $tmp "
13+ # echo "testing scala.quoted.Expr.run from sbt scala"
14+ # "$SBT" ";scala3-compiler-bootstrapped/scalac -with-compiler tests/run-staging/quote-run.scala; scala3-compiler-bootstrapped/scala -with-compiler Test" > "$tmp"
15+ # grep -qe "val a: scala.Int = 3" "$tmp"
1616
1717
1818# setup for `scalac`/`scala` script tests
19- " $SBT " dist/pack
19+ # "$SBT" dist/pack
2020
2121# check that `scalac` compiles and `scala` runs it
2222echo " testing ./bin/scalac and ./bin/scala"
@@ -25,11 +25,14 @@ clear_out "$OUT"
2525./bin/scala -classpath " $OUT " " $MAIN " > " $tmp "
2626test " $EXPECTED_OUTPUT " = " $( cat " $tmp " ) "
2727
28+ # Test scaladoc based on compiled classes
29+ ./bin/scaladoc -project Staging -d " $OUT1 " " $OUT "
30+ clear_out " $OUT1 "
31+
2832# check that `scalac` and `scala` works for staging
2933clear_out " $OUT "
3034./bin/scalac tests/run-staging/i4044f.scala -d " $OUT "
3135./bin/scala -with-compiler -classpath " $OUT " Test > " $tmp "
32- ./bin/scalad -project Staging -siteroot " $OUT " " tests/run-staging/i4044f.scala"
3336
3437# check that `scalac -from-tasty` compiles and `scala` runs it
3538echo " testing ./bin/scalac -from-tasty and scala -classpath"
@@ -51,6 +54,6 @@ grep -qe "def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" "$tm
5154
5255# echo ":quit" | ./dist/target/pack/bin/scala # not supported by CI
5356
54- echo " testing ./bin/scalad "
55- clear_out " $OUT "
56- ./bin/scalad -project Hello -siteroot " $OUT " " $SOURCE "
57+ echo " testing ./bin/scaladoc "
58+ clear_out " $OUT1 "
59+ ./bin/scaladoc -project Hello -d " $OUT1 " " $OUT /out.jar "
0 commit comments