Debian Codegraph @

.circleci/scripts/run-tests-swift.sh

raw symbols SCIP
1 #!/bin/bash
2
3 set -euo pipefail
4
5 pushd runtime/Swift
6 echo "running native tests..."
7 ./boot.py --test
8 rc=$?
9 if [ $rc != 0 ]; then
10 echo "failed running native tests"
11 fi
12 popd
13
14 if [ $rc == 0 ]; then
15 pushd runtime-testsuite
16 echo "running maven tests..."
17 if [ $GROUP == "LEXER" ]; then
18 mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LexerTests" -Dtest=swift.* test
19 elif [ $GROUP == "PARSER" ]; then
20 mvn -q -Dgroups="org.antlr.v4.test.runtime.category.ParserTests" -Dtest=swift.* test
21 elif [ $GROUP == "RECURSION" ]; then
22 mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LeftRecursionTests" -Dtest=swift.* test
23 else
24 mvn -q -Dtest=swift.* test
25 fi
26 popd
27 fi