|
31 | 31 | #fi
|
32 | 32 |
|
33 | 33 | # check that `sbt dotc -decompile` runs
|
34 |
| -echo "testing sbt dotc -decompile" |
35 |
| -./project/scripts/sbt ";dotc -decompile -color:never -classpath out/scriptedtest1 dotrtest.Test" > sbtdotc3.out |
36 |
| -cat sbtdotc3.out |
37 |
| -if grep -e "def main(args: Array\[String\]): Unit =" sbtdotc3.out; then |
38 |
| - echo "output ok" |
39 |
| -else |
40 |
| - echo "failed output check" |
41 |
| - exit -1 |
42 |
| -fi |
43 |
| -echo "testing sbt dotr with no -classpath" |
44 |
| -./project/scripts/sbt ";dotc tests/pos/sbtDotrTest.scala; dotr dotrtest.Test" > sbtdotr3.out |
45 |
| -cat sbtdotr3.out |
46 |
| -if grep -e "dotr test ok" sbtdotr3.out; then |
47 |
| - echo "output ok" |
48 |
| -else |
49 |
| - exit -1 |
50 |
| -fi |
| 34 | +#echo "testing sbt dotc -decompile" |
| 35 | +#./project/scripts/sbt ";dotc -decompile -color:never -classpath out/scriptedtest1 dotrtest.Test" > sbtdotc3.out |
| 36 | +#cat sbtdotc3.out |
| 37 | +#if grep -e "def main(args: Array\[String\]): Unit =" sbtdotc3.out; then |
| 38 | +# echo "output ok" |
| 39 | +#else |
| 40 | +# echo "failed output check" |
| 41 | +# exit -1 |
| 42 | +#fi |
| 43 | +#echo "testing sbt dotr with no -classpath" |
| 44 | +#./project/scripts/sbt ";dotc tests/pos/sbtDotrTest.scala; dotr dotrtest.Test" > sbtdotr3.out |
| 45 | +#cat sbtdotr3.out |
| 46 | +#if grep -e "dotr test ok" sbtdotr3.out; then |
| 47 | +# echo "output ok" |
| 48 | +#else |
| 49 | +# exit -1 |
| 50 | +#fi |
51 | 51 |
|
52 |
| -echo "testing loading tasty from .tasty file in jar" |
53 |
| -./project/scripts/sbt ";dotc -d out/scriptedtest4.jar -YemitTasty tests/pos/sbtDotrTest.scala; dotc -decompile -classpath out/scriptedtest4.jar -color:never dotrtest.Test" > sbtdot4.out |
54 |
| -cat sbtdot4.out |
55 |
| -if grep -e "def main(args: Array\[String\]): Unit =" sbtdot4.out; then |
56 |
| - echo "output ok" |
57 |
| -else |
58 |
| - echo "failed output check" |
59 |
| - exit -1 |
60 |
| -fi |
| 52 | +#echo "testing loading tasty from .tasty file in jar" |
| 53 | +#./project/scripts/sbt ";dotc -d out/scriptedtest4.jar -YemitTasty tests/pos/sbtDotrTest.scala; dotc -decompile -classpath out/scriptedtest4.jar -color:never dotrtest.Test" > sbtdot4.out |
| 54 | +#cat sbtdot4.out |
| 55 | +#if grep -e "def main(args: Array\[String\]): Unit =" sbtdot4.out; then |
| 56 | +# echo "output ok" |
| 57 | +#else |
| 58 | +# echo "failed output check" |
| 59 | +# exit -1 |
| 60 | +#fi |
61 | 61 |
|
62 | 62 | echo "testing scala.quoted.Expr.run from sbt dotr"
|
63 | 63 | ./project/scripts/sbt ";dotc -classpath compiler/target/scala-2.12/classes tests/run-with-compiler/quote-run.scala; dotr -with-compiler Test" > sbtdot5.out
|
|
0 commit comments