Skip to content

Commit e32c9e4

Browse files
committed
Revise test script
1 parent b48fb12 commit e32c9e4

File tree

1 file changed

+9
-2
lines changed
  • compiler/lib/test/codegen/CppWriter

1 file changed

+9
-2
lines changed

compiler/lib/test/codegen/CppWriter/run

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
cpp_doc_ok()
66
{
7-
./build && \
87
./hpp > C.hpp && \
98
./cpp > C.cpp && \
109
gcc -c C.cpp
@@ -14,4 +13,12 @@ tests="
1413
cpp_doc_ok
1514
"
1615

17-
run_suite $tests
16+
echo 'compiling Scala source'
17+
if ./build > build_log.txt 2>&1
18+
then
19+
run_suite $tests
20+
else
21+
echo 'compilation failed'
22+
echo 'scalac version 2.13.1 or greater required'
23+
echo 'see build_log.txt for details'
24+
fi

0 commit comments

Comments
 (0)