File tree 4 files changed +32
-35
lines changed
4 files changed +32
-35
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,14 @@ pipeline:
27
27
commands :
28
28
- cp -R . /tmp/1/ && cd /tmp/1/
29
29
- ./project/scripts/sbt ";compile ;test"
30
- - ./project/scripts/sbtTests
30
+ - ./project/scripts/cmdTests
31
31
32
32
test_bootstrapped :
33
33
group : test
34
34
image : lampepfl/dotty:2018-01-17
35
35
commands :
36
36
- cp -R . /tmp/2/ && cd /tmp/2/
37
37
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
38
- - ./project/scripts/sbtBootstrappedTests
39
38
40
39
test_optimised :
41
40
group : test
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " >& /dev/null && pwd) /.."
4
+
5
+ eval " $ROOT /bin/common" " $ROOT /dist-bootstrapped/target/pack/bin/dotd" " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -eux
4
+
3
5
# check that benchmarks can run
4
6
./project/scripts/sbt " dotty-bench/jmh:run 1 1 tests/pos/alias.scala"
5
7
66
68
echo " failed output check"
67
69
exit -1
68
70
fi
71
+
72
+
73
+ # check that benchmarks can run
74
+ ./project/scripts/sbt " dotty-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala"
75
+
76
+ # setup for `dotc`/`dotr` script tests
77
+ ./project/scripts/sbt dist-bootstrapped/pack
78
+
79
+ # check that `dotc` compiles and `dotr` runs it
80
+ echo " testing ./bin/dotc and ./bin/dotr"
81
+ mkdir -p out/scriptedtest0
82
+ ./bin/dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest0
83
+ ./bin/dotr -classpath out/scriptedtest0 dotrtest.Test
84
+
85
+ # check that `dotc -from-tasty` compiles and `dotr` runs it
86
+ echo " testing ./bin/dotc -from-tasty and dotr -classpath"
87
+ mkdir -p out/scriptedtest1
88
+ mkdir -p out/scriptedtest2
89
+ ./bin/dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest1/
90
+ ./bin/dotc -from-tasty -classpath out/scriptedtest1/ -d out/scriptedtest2/ dotrtest.Test
91
+ ./bin/dotr -classpath out/scriptedtest2/ dotrtest.Test
92
+
93
+ # echo ":quit" | ./dist-bootstrapped/target/pack/bin/dotr # not supported by CI
94
+ mkdir -p _site && ./bin/dotd -project Hello -siteroot _site tests/run/hello.scala
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments