Skip to content

Commit fe81adf

Browse files
Debug 500 second wait
1 parent ec5da87 commit fe81adf

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

project/scripts/cmdTests

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
set -eux
44

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+
524
# check that benchmarks can run
625
./project/scripts/sbt "dotty-bench/jmh:run 1 1 tests/pos/alias.scala"
726

@@ -92,22 +111,3 @@ mkdir -p out/scriptedtest2
92111

93112
# echo ":quit" | ./dist-bootstrapped/target/pack/bin/dotr # not supported by CI
94113
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

Comments
 (0)