| 1 | #!/bin/bash |
| 2 | |
| 3 | set -euo pipefail |
| 4 | |
| 5 | pushd runtime-testsuite |
| 6 | echo "running maven tests..." |
| 7 | if [ $GROUP == "LEXER" ]; then |
| 8 | mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LexerTests" -Dtest=cpp.* test |
| 9 | elif [ $GROUP == "PARSER" ]; then |
| 10 | mvn -q -Dgroups="org.antlr.v4.test.runtime.category.ParserTests" -Dtest=cpp.* test |
| 11 | elif [ $GROUP == "RECURSION" ]; then |
| 12 | mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LeftRecursionTests" -Dtest=cpp.* test |
| 13 | else |
| 14 | mvn -q -Dtest=cpp.* test |
| 15 | fi |
| 16 | popd |
| 17 |