File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,26 @@ echo "testing sbt scalac -decompile from file"
47
47
./bin/scalac -decompile -color:never " $OUT /$TASTY " > " $tmp "
48
48
grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
49
49
50
+ # check that `sbt scalac -print-tasty` runs
51
+ echo " testing sbt scalac -print-tasty from file"
52
+ ./bin/scalac -print-tasty -color:never " $OUT /$TASTY " > " $tmp "
53
+ grep -qe " 118: STRINGconst 32 \[hello world\]" " $tmp "
54
+
50
55
echo " testing loading tasty from .tasty file in jar"
51
56
clear_out " $OUT "
52
57
./bin/scalac -d " $OUT /out.jar" " $SOURCE "
53
58
./bin/scalac -decompile -color:never " $OUT /out.jar" > " $tmp "
54
59
grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
55
60
61
+ echo " testing printing tasty from .tasty file in jar"
62
+ ./bin/scalac -print-tasty -color:never " $OUT /out.jar" > " $tmp "
63
+ grep -qe " 118: STRINGconst 32 \[hello world\]" " $tmp "
64
+
65
+ echo " testing -script from scalac"
66
+ clear_out " $OUT "
67
+ ./bin/scalac -script " $SOURCE " > " $tmp "
68
+ test " $EXPECTED_OUTPUT " = " $( cat " $tmp " ) "
69
+
56
70
echo " testing sbt scalac with suspension"
57
71
clear_out " $OUT "
58
72
" $SBT " " scala3-compiler-bootstrapped/scalac -d $OUT tests/pos-macros/macros-in-same-project-1/Bar.scala tests/pos-macros/macros-in-same-project-1/Foo.scala" > " $tmp "
You can’t perform that action at this time.
0 commit comments