File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ echo "testing sbt dotc -decompile"
1818" $SBT " " ;dotc -decompile -color:never -classpath $OUT $MAIN " > " $tmp "
1919grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
2020
21+ echo " testing sbt dotc -decompile from file"
22+ " $SBT " " ;dotc -decompile -color:never -classpath $OUT $OUT /$TASTY " > " $tmp "
23+ grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
24+
2125echo " testing sbt dotr with no -classpath"
2226clear_out " $OUT "
2327" $SBT " " ;dotc $SOURCE ; dotr $MAIN " > " $tmp "
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ SBT="./project/scripts/sbt" # if run on CI
55
66SOURCE=" tests/pos/HelloWorld.scala"
77MAIN=" HelloWorld"
8+ TASTY=" HelloWorld.tasty"
89EXPECTED_OUTPUT=" hello world"
910
1011OUT=$( mktemp -d)
You can’t perform that action at this time.
0 commit comments