-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #3886: add tests for dotc/dotr/dotd #3892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
90a5ede
e32d238
a36f49d
8388c4b
f8b059a
3a45c04
9aeb1b9
e7653fc
e7ef82d
4d64987
df14e43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
# check that benchmarks can run | ||
./project/scripts/sbt "dotty-bench/jmh:run 1 1 tests/pos/alias.scala" | ||
|
||
|
@@ -66,3 +68,30 @@ else | |
echo "failed output check" | ||
exit -1 | ||
fi | ||
|
||
|
||
# check that benchmarks can run | ||
./project/scripts/sbt "dotty-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala" | ||
|
||
# setup for `dotc`/`dotr` script tests | ||
./project/scripts/sbt dist-bootstrapped/pack | ||
|
||
# check that `dotc` compiles and `dotr` runs it | ||
echo "testing ./bin/dotc and ./bin/dotr" | ||
mkdir -p out/scriptedtest0 | ||
./bin/dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest0 | ||
./bin/dotr -classpath out/scriptedtest0 dotrtest.Test | ||
|
||
# check that `dotc -from-tasty` compiles and `dotr` runs it | ||
echo "testing ./bin/dotc -from-tasty and dotr -classpath" | ||
mkdir -p out/scriptedtest1 | ||
mkdir -p out/scriptedtest2 | ||
./bin/dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest1/ | ||
./bin/dotc -from-tasty -classpath out/scriptedtest1/ -d out/scriptedtest2/ dotrtest.Test | ||
./bin/dotr -classpath out/scriptedtest2/ dotrtest.Test | ||
|
||
./project/scripts/sbt ";dist-bootstrapped/pack" | ||
./dist-bootstrapped/target/pack/bin/dotc tests/run/hello.scala | ||
./dist-bootstrapped/target/pack/bin/dotr Test | ||
# echo ":quit" | ./dist-bootstrapped/target/pack/bin/dotr # not supported by CI | ||
mkdir -p _site && ./dist-bootstrapped/target/pack/bin/dotd -project Hello -siteroot _site tests/run/hello.scala | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe use EDIT: Oups we don't have it. My bad. Maybe add an alias? |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove the three lines above. Lines 82-83 already exercise this