Skip to content

Commit 069c36d

Browse files
committed
Add regression test for dotc -tasty and dotr -classpath
1 parent ba2bb4a commit 069c36d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

project/scripts/sbtTests

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,15 @@ if grep -e "dotr test ok" sbtdotr.out; then
1111
else
1212
exit -1
1313
fi
14+
15+
# check that `dotc` compiles and `dotr` runs it
16+
echo "testing sbt dotc -tasty and dotr -classpath"
17+
mkdir out
18+
mkdir out/scriptedtest
19+
mkdir out/scriptedtest2
20+
./project/scripts/sbt ";dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest/; dotc -tasty -classpath out/scriptedtest/ -d out/scriptedtest2/ dotrtest.Test; dotr -classpath out/scriptedtest2/ dotrtest.Test" > sbtdotr2.out
21+
if grep -e "dotr test ok" sbtdotr2.out; then
22+
echo "output ok"
23+
else
24+
exit -1
25+
fi

0 commit comments

Comments
 (0)