Skip to content

Commit be81325

Browse files
committed
Check sbt dotr output
1 parent 93102ab commit be81325

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

project/scripts/sbtTests

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44
./project/scripts/sbt "dotty-bench/jmh:run 1 1 tests/pos/alias.scala"
55

66
# check that `dotc` compiles and `dotr` runs it
7-
./project/scripts/sbt ";dotc tests/run/arraycopy.scala ;dotr Test"
7+
echo "testing sbt dotc and dotr"
8+
./project/scripts/sbt ";dotc tests/pos/sbtDotrTest.scala ;dotr dotrtest.Test" > sbtdotr.out
9+
if grep -e "dotr test ok" sbtdotr.out; then
10+
echo "output ok"
11+
else
12+
exit -1
13+
fi

tests/pos/sbtDotrTest.scala

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package dotrtest
2+
3+
object Test {
4+
def main(args: Array[String]): Unit = {
5+
println("dotr test ok")
6+
}
7+
}

0 commit comments

Comments
 (0)