Skip to content

Commit

Permalink
Disable native runtime tests (see antlr#3521)
Browse files Browse the repository at this point in the history
  • Loading branch information
KvanTTT committed Jan 31, 2022
1 parent 09d853c commit 48645fd
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 60 deletions.
31 changes: 14 additions & 17 deletions .circleci/scripts/run-tests-python2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@ set -euo pipefail

python2 --version

pushd runtime/Python2/tests
echo "running native tests..."
python2 run.py
rc=$?
if [ $rc != 0 ]; then
echo "failed running native tests"
fi
popd
# TODO: https://github.com/antlr/antlr4/issues/3521
#
# pushd runtime/Python2/tests
# echo "running native tests..."
# python2 run.py
# rc=$?
# if [ $rc != 0 ]; then
# echo "failed running native tests"
# fi
# popd

if [ $rc == 0 ]; then
pushd runtime-testsuite
echo "running maven tests..."
mvn -Dparallel=classes -DthreadCount=4 -Dtest=python2.** test
rc=$?
popd
fi

# return $rc
pushd runtime-testsuite
echo "running maven tests..."
mvn -Dparallel=classes -DthreadCount=4 -Dtest=python2.** test
popd
31 changes: 14 additions & 17 deletions .circleci/scripts/run-tests-python3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@ set -euo pipefail

python3 --version

pushd runtime/Python3/tests
echo "running native tests..."
python3 run.py
rc=$?
if [ $rc != 0 ]; then
echo "failed running native tests"
fi
popd

if [ $rc == 0 ]; then
pushd runtime-testsuite
echo "running maven tests..."
mvn -Dparallel=classes -DthreadCount=4 -Dtest=python3.** test
rc=$?
popd
fi
# TODO: https://github.com/antlr/antlr4/issues/3521
#
# pushd runtime/Python3/tests
# echo "running native tests..."
# python3 run.py
# rc=$?
# if [ $rc != 0 ]; then
# echo "failed running native tests"
# fi
# popd

# return $rc
pushd runtime-testsuite
echo "running maven tests..."
mvn -Dparallel=classes -DthreadCount=4 -Dtest=python3.** test
popd
29 changes: 14 additions & 15 deletions .circleci/scripts/run-tests-swift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@

set -euo pipefail

pushd runtime/Swift
echo "running native tests..."
./boot.py --test
rc=$?
if [ $rc != 0 ]; then
echo "failed running native tests"
fi
popd

# TODO: https://github.com/antlr/antlr4/issues/3521
#
# pushd runtime/Swift
# echo "running native tests..."
# ./boot.py --test
# rc=$?
# if [ $rc != 0 ]; then
# echo "failed running native tests"
# fi
# popd

if [ $rc == 0 ]; then
pushd runtime-testsuite
echo "running maven tests..."
mvn -Dparallel=classes -DthreadCount=4 -Dtest=swift.** test
popd
fi
pushd runtime-testsuite
echo "running maven tests..."
mvn -Dparallel=classes -DthreadCount=4 -Dtest=swift.** test
popd
23 changes: 12 additions & 11 deletions .github/scripts-macosx/run-tests-swift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@ swift --version
swift build --version

# run swift tests
pushd runtime/Swift
./boot.py --test
rc=$?
popd

if [ $rc == 0 ]; then
# run java tests
cd runtime-testsuite/
# TODO: https://github.com/antlr/antlr4/issues/3521
# pushd runtime/Swift
# ./boot.py --test
# rc=$?
# popd

# run java tests
cd runtime-testsuite/
# mvn -e -Dparallel=classes -DthreadCount=4 -Dtest=swift.** test
# I don't know swift enough to make it parallel. revert to single threaded
mvn -e -Dtest=swift.** test
rc=$?
cat target/surefire-reports/*.dumpstream || true
fi
mvn -e -Dtest=swift.** test
rc=$?
cat target/surefire-reports/*.dumpstream || true

exit $rc
1 change: 1 addition & 0 deletions runtime/Swift/Tests/Antlr4Tests/RuntimeMetaDataTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class RuntimeMetaDataTests: XCTestCase {
doGetMajorMinorVersionTest("4.9.1-SNAPSHOT", "4.9")
doGetMajorMinorVersionTest("4.9.2-SNAPSHOT", "4.9")
doGetMajorMinorVersionTest("4.9.3-SNAPSHOT", "4.9")
doGetMajorMinorVersionTest("4.10-SNAPSHOT", "4.10")
}
}

Expand Down

0 comments on commit 48645fd

Please sign in to comment.