Commit Graph

449 Commits

Author SHA1 Message Date
Camilo Roca c8ae1a89a2 refactored BaseNodeTest to use es6 classes and const/let 2020-02-23 13:09:36 +01:00
Camilo Roca a3d2ca7ef5 fix: removed unnecessary "interface" initialization on test suite 2020-02-23 13:09:36 +01:00
Eric Vergnaud bff9629414 add missing tests 2020-02-22 12:00:11 +08:00
Eric Vergnaud 2eb728eafb drop selenium and jetty dependencies 2020-02-22 11:39:17 +08:00
Eric Vergnaud ddf38ec88f fix failing tests 2020-02-22 10:35:42 +08:00
Eric Vergnaud 95521b7553 Move node tests up to simplify 2020-02-22 10:09:44 +08:00
Eric Vergnaud 653cb54bb9 drop obsolete browser tests, selenium is flaky, these tests cannot run in our CI, everybody uses some packaging, next official js runtime will be pre-packaged
overall not worth the maintenance effort anymore
2020-02-22 10:05:34 +08:00
parrt f1ffc01723 [maven-release-plugin] prepare for next development iteration 2020-01-18 13:37:08 -08:00
parrt 3f41f283d1 [maven-release-plugin] prepare release antlr4-master-4.8-1 2020-01-18 13:37:01 -08:00
parrt 54cb3f2018 trying to get 4.8-1 to fix release (all say 4.8-1-SNAPSHOT now) 2020-01-18 10:34:27 -08:00
parrt a872114f61 trying to get 4.8-1 to fix release 2020-01-18 10:07:26 -08:00
parrt 6c4b491d1b set version to 4.8-1 to fix release 2020-01-18 09:39:46 -08:00
parrt 666131841c [maven-release-plugin] prepare for next development iteration 2020-01-16 12:24:30 -08:00
parrt d569f91795 [maven-release-plugin] prepare release 4.8 2020-01-16 12:24:22 -08:00
parrt 441fea52b1 update to 4.3 version 2020-01-16 12:05:03 -08:00
Terence Parr a75c3e9318
Merge pull request #2686 from ewanmellor/swift-5
[Swift] Migrate Swift runtime to Swift 5.
2019-12-08 16:13:51 -08:00
Terence Parr 4bf2733ad6
Merge pull request #2637 from ewanmellor/tidy-test-templates
Remove unused macros from test templates.
2019-12-08 16:13:28 -08:00
Ewan Mellor 509eeefa4a
[Swift] Migrate Swift runtime to Swift 5.
This switches from using the deprecated hashValue to hash(into:).
It also switches from using index to firstIndex (matching the change in
the standard library).

In the test template, we switch to using String directly instead of
String.characters.

This also switches all the Travis macOS tests to use the Xcode 10.2 / Mojave
image and changes the Linux Swift tests to download Swift 5.0.1.
2019-11-18 13:24:28 -08:00
Ewan Mellor 97c5057f61
[Swift] Check process exit status during tests.
Check the exit status of the processes run during the runtime-testsuite
for Swift.  This means that we'll catch low-level issues earlier.

This changeset also changes the exception handling so that exceptions
throw as far up as possible so that we don't proceed with a test when
something has already broken.
2019-11-18 13:21:06 -08:00
Marcos Passos 789d746636 PHP Target 2019-09-14 09:39:58 -03:00
Ewan Mellor f0ef1f4433
Remove unused macros from test templates.
Remove unused DeclareLocal and PlusMember macros from *.test.stg.
DeclareLocal was last used in 5c5228 (June 2015) and PlusMember was
last used in 7f16fe6 (Nov 2016).
2019-09-01 17:18:53 -07:00
Eric Vergnaud 72a33f8788 fix class format issue with jetty 10 2019-07-14 11:14:36 +08:00
parrt 70d9ddcd0a [maven-release-plugin] prepare for next development iteration 2018-12-18 10:35:34 -08:00
parrt be58ebffde [maven-release-plugin] prepare release 4.7.2 2018-12-18 10:35:24 -08:00
parrt 8fab6b98b3 [maven-release-plugin] rollback the release of 4.7.2 2018-12-18 10:33:52 -08:00
parrt 573cb86705 [maven-release-plugin] prepare release 4.7.2 2018-12-18 10:31:44 -08:00
Ewan Mellor 4201dd9cf3
[Swift] Don't catch exceptions inside the test apps.
We get much more info if we let the exception rise to the top level.
2018-11-15 15:33:10 -08:00
Ewan Mellor e54607d2ae
Change the test asserts so that we can see all the values.
Change the unit test asserts so that we can see all the values in the
event of a failure.  When debugging an error, it's useful to see both
the stdout and stderr for the failure.  Previously we would only see
one or the other (whichever one failed the assert).

This adds a helper function BaseRuntimeTest.assertCorrectOutput.

This also removes SpecialRuntimeTestAssert, which has not been used for
2 years.
2018-11-15 15:33:10 -08:00
Ewan Mellor 3699ea5412
Exclude intermediate build products from the runtime-testsuite jar.
This means that if you build in an unclean source tree, you don't end up with
intermediate classes in the jar.  (This hasn't broken anything that I noticed,
but it bloats the jar and I wanted to make sure it wasn't messing anything up.)

This excludes .build (the Swift runtime's build directory), target (the Java
runtime's build directory) and Swift/*.xcodeproj (which is not in the source tree
but can be created by devs who are using Xcode).
2018-11-15 15:33:10 -08:00
Ewan Mellor 75d4d867ef
[Swift] Suppress "Optional" in the output when printing a value.
Suppress "Optional" in the output when printing a value in the tests and
some debugging messages.

This is a change in behavior in Swift 4.2 (SE-0054) that implicitly
unwrapped optionals are now seen as plain Optional at runtime, and so
print doesn't implicitly unwrap them any more.
2018-11-15 11:26:09 -08:00
Ewan Mellor 8e9b6f1147
Switch to using maven-jdk-tools-wrapper to find tools.jar.
This is in different locations on JDK 9 and up.  maven-jdk-tools-wrapper
does the right thing on all JDK releases.

This was mentioned in a side comment on PR #2280.
2018-11-15 11:24:54 -08:00
Terence Parr f261c36bc4
Merge pull request #2400 from nxtstep/fix/st4-dependency
Fix ST4 Snapshot dependency
2018-11-15 09:29:42 -08:00
Terence Parr d87a55576a
Merge pull request #2403 from ewanmellor/swift-perf-tests
Enable some performance tests on Swift.
2018-11-15 09:27:59 -08:00
Ewan Mellor e6feaeb489
Enable some performance tests on Swift.
These were skipped for the Javascript backends because they're still
too slow, but Swift is fine.  (Go is also excluded from these, maybe
that's a mistake, but I don't know.)
2018-11-14 20:29:56 -08:00
Ewan Mellor 842d3d7597
[Swift] Report InputMismatchException with original context information
Port 0803c74 from the Java runtime to Swift.  This was issue #1922.
Enable the corresponding tests for Swift.
2018-11-14 20:28:24 -08:00
nxtstep 36621bda6d
Fix ST4 Snapshot dependency 2018-11-15 00:13:02 +01:00
parrt 3039dc2411 update jetty server to avoid security risk 2018-11-08 16:51:15 -08:00
parrt 7591bf1705 updated ST version 2018-11-08 12:27:38 -08:00
parrt e37c9fb7ed add anaconda3 to search path. 2018-11-07 12:56:03 -08:00
parrt 1eca79ec3a update python from 3.5 to 3.6 2018-11-07 12:39:30 -08:00
Eric Vergnaud d134b6a12d Fixes #2301 2018-06-03 11:21:37 +08:00
parrt 17b6277502 [maven-release-plugin] prepare for next development iteration 2017-12-09 12:04:26 -08:00
parrt bdc05c87be [maven-release-plugin] prepare release 4.7.1 2017-12-09 12:04:17 -08:00
Terence Parr b5e6147cd5
Merge pull request #2123 from ewanmellor/swift-fix-parse-cancellation
[Swift] Fix parse-cancellation in BailErrorStrategy.
2017-11-29 09:56:09 -08:00
Terence Parr 8b86af6654
Merge pull request #2102 from ewanmellor/swift-antlrfilestream-report-errors
Report errors in ANTLRFileStream.
2017-11-29 09:47:04 -08:00
Ewan Mellor 22337f35c0
[CSharp] Add a retry if we get SIGILL when running dotnet.
Issue #2078 is a crash (SIGILL) inside the dotnet runtime when running on
macOS on Travis.  This is intermittent, so a retry may help.  Retry this
specific exit status inside runProcess.
2017-11-14 13:33:01 -08:00
Ewan Mellor cbb10279ab
[CSharp] Add extra diagnostics to the C# runtime tests.
Log the command / stdout / stderr / exit status at three places
during the C# runtime tests.

At these places we are executing subprocesses, but if those fail we
weren't logging the info that we may need to diagnose the problem.
2017-11-14 01:40:54 -08:00
Ewan Mellor 0ba9808982
[CSharp] Assert that test compilation succeeded.
Assert that the dotnet restore / build commands succeeded.  If we
get a failure at this point, the test is obviously going to fail, and
we're masking the error by trying to push on with other commands.
2017-11-14 01:40:54 -08:00
Ewan Mellor 2e0ed500dc
[CSharp] Print the stack trace if compilation fails. 2017-11-11 22:24:16 -08:00
Ewan Mellor eb9124fff8
[Swift] Fix parse-cancellation in BailErrorStrategy.
BailErrorStrategy is supposed to throw an error that's different from
the ordinary recognition error, specifically so that it can be handled
differently by client code.  This was not ported over from Java correctly.

Fix this by moving parseCancellation from ANTLRError to ANTLRException,
adding its RecognitionException argument, and throwing it from the
two handlers in BailErrorStrategy.

Also remove ANTLRException.cannotInvokeStartRule, which is unused.
(The Java runtime uses it when ParseTreePatternMatcher throws a generic
exception, but we don't have that.)
2017-11-11 10:45:38 -08:00