File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,17 @@ clear_out "$OUT1"
38
38
./bin/scala -classpath " $OUT1 " " $MAIN " > " $tmp "
39
39
test " $EXPECTED_OUTPUT " = " $( cat " $tmp " ) "
40
40
41
+ # check that `sbt scalac -decompile` runs
42
+ echo " testing sbt scalac -decompile from file"
43
+ ./bin/scalac -decompile -color:never " $OUT /$TASTY " > " $tmp "
44
+ grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
45
+
46
+ echo " testing loading tasty from .tasty file in jar"
47
+ clear_out " $OUT "
48
+ ./bin/scalac -d " $OUT /out.jar" " $SOURCE "
49
+ ./bin/scalac -decompile -color:never " $OUT /out.jar" > " $tmp "
50
+ grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
51
+
41
52
# echo ":quit" | ./dist/target/pack/bin/scala # not supported by CI
42
53
43
54
echo " testing ./bin/scalad"
Original file line number Diff line number Diff line change @@ -18,22 +18,11 @@ clear_out "$OUT"
18
18
" $SBT " " ;scalac -d $OUT /out.jar $SOURCE ;scalac -from-tasty -d $OUT1 $OUT /out.jar ;scala -classpath $OUT1 $MAIN " > " $tmp "
19
19
grep -qe " $EXPECTED_OUTPUT " " $tmp "
20
20
21
- # check that `sbt scalac -decompile` runs
22
- echo " testing sbt scalac -decompile from file"
23
- " $SBT " " ;scalac -decompile -color:never $OUT /$TASTY " > " $tmp "
24
- grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
25
-
26
21
echo " testing sbt scala with no -classpath"
27
22
clear_out " $OUT "
28
23
" $SBT " " ;scalac $SOURCE ; scala $MAIN " > " $tmp "
29
24
grep -qe " $EXPECTED_OUTPUT " " $tmp "
30
25
31
- echo " testing loading tasty from .tasty file in jar"
32
- clear_out " $OUT "
33
- " $SBT " " ;scalac -d $OUT /out.jar $SOURCE ; scalac -decompile -color:never $OUT /out.jar" > " $tmp "
34
- grep -qe " def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" " $tmp "
35
-
36
-
37
26
echo " testing that paths SourceFile annotations are relativized"
38
27
clear_out " $OUT "
39
28
" $SBT " " scalac -d $OUT /out.jar -sourceroot tests/pos $( pwd) /tests/pos/i10430/lib.scala $( pwd) /tests/pos/i10430/app.scala"
You can’t perform that action at this time.
0 commit comments