|
2 | 2 |
|
3 | 3 | set -eux
|
4 | 4 |
|
| 5 | +echo "running Vulpix meta test" |
| 6 | +tmp=$(mktemp) |
| 7 | +if sbt -no-colors "dotty-compiler/testOnly dotty.tools.vulpix.VulpixMetaTests" 2>&1 | tee "$tmp" ; then |
| 8 | + echo "failed: sbt exited without error on VulpixMetaTests, these tests are expected to fail" |
| 9 | + exit -1 |
| 10 | +fi |
| 11 | +tmp1=$(mktemp) |
| 12 | +cat "$tmp" | sed '/Test run started/,$!d' > "$tmp1" |
| 13 | +while read expected <&4 && read actual <&3; do |
| 14 | + if [[ "$expected" != *"SKIP" ]]; then |
| 15 | + if [ "$actual" != "$expected" ]; then |
| 16 | + echo "failed Vulpix meta: the output of sbt differs from the expected output" |
| 17 | + echo "expected : $expected" |
| 18 | + echo "actual : $actual" |
| 19 | + exit -1 |
| 20 | + fi |
| 21 | + fi |
| 22 | +done 3<"$tmp1" 4<"./tests/vulpix-tests/meta/sbt-output.check" |
| 23 | + |
5 | 24 | # check that benchmarks can run
|
6 | 25 | ./project/scripts/sbt "dotty-bench/jmh:run 1 1 tests/pos/alias.scala"
|
7 | 26 |
|
@@ -92,22 +111,3 @@ mkdir -p out/scriptedtest2
|
92 | 111 |
|
93 | 112 | # echo ":quit" | ./dist-bootstrapped/target/pack/bin/dotr # not supported by CI
|
94 | 113 | mkdir -p _site && ./bin/dotd -project Hello -siteroot _site tests/run/hello.scala
|
95 |
| - |
96 |
| -echo "running Vulpix meta test" |
97 |
| -tmp=$(mktemp) |
98 |
| -if sbt -no-colors "dotty-compiler/testOnly dotty.tools.vulpix.VulpixMetaTests" > "$tmp" 2>&1; then |
99 |
| - echo "failed: sbt exited without error on VulpixMetaTests, these tests are expected to fail" |
100 |
| - exit -1 |
101 |
| -fi |
102 |
| -tmp1=$(mktemp) |
103 |
| -cat "$tmp" | sed '/Test run started/,$!d' > "$tmp1" |
104 |
| -while read expected <&4 && read actual <&3; do |
105 |
| - if [[ "$expected" != *"SKIP" ]]; then |
106 |
| - if [ "$actual" != "$expected" ]; then |
107 |
| - echo "failed Vulpix meta: the output of sbt differs from the expected output" |
108 |
| - echo "expected : $expected" |
109 |
| - echo "actual : $actual" |
110 |
| - exit -1 |
111 |
| - fi |
112 |
| - fi |
113 |
| -done 3<"$tmp1" 4<"./tests/vulpix-tests/meta/sbt-output.check" |
0 commit comments