Skip to content

Commit 672c824

Browse files
committed
Enable Tests
1 parent dfd800d commit 672c824

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

project/scripts/sbtBootstrappedTests

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
echo "testing sbt dotc and dotr"
1212
mkdir out/scriptedtest0
1313
./bin/dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest0
14+
1415
# FIXME #3477
15-
#./bin/dotr -classpath out/scriptedtest0 dotrtest.Test" > sbtdotr1.out
16-
#if grep -e "dotr test ok" sbtdotr1.out; then
17-
# echo "output ok"
18-
#else
19-
# exit -1
20-
#fi
16+
./bin/dotr -classpath out/scriptedtest0 dotrtest.Test" > sbtdotr1.out
17+
if grep -e "dotr test ok" sbtdotr1.out; then
18+
echo "output ok"
19+
else
20+
exit -1
21+
fi
2122
2223
2324
# check that `dotc` compiles and `dotr` runs it
@@ -26,10 +27,11 @@ mkdir out/scriptedtest1
2627
mkdir out/scriptedtest2
2728
./bin/dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest1/
2829
./bin/dotc -tasty -classpath out/scriptedtest1/ -d out/scriptedtest2/ dotrtest.Test
30+
2931
# FIXME #3477
30-
#./bin/dotr -classpath out/scriptedtest2/ dotrtest.Test" > sbtdotr2.out
31-
#if grep -e "dotr test ok" sbtdotr2.out; then
32-
# echo "output ok"
33-
#else
34-
# exit -1
35-
#fi
32+
./bin/dotr -classpath out/scriptedtest2/ dotrtest.Test" > sbtdotr2.out
33+
if grep -e "dotr test ok" sbtdotr2.out; then
34+
echo "output ok"
35+
else
36+
exit -1
37+
fi

0 commit comments

Comments
 (0)