Commit Graph

465 Commits

Author SHA1 Message Date
Larry Li 2cb1618009 fix: run dart analyzer against google pedantic 2020-05-29 11:08:55 +10:00
Larry Li 51a9691376 fix: incorrect code generation when there are more than 65 tokens 2020-05-25 23:07:27 +10:00
Larry Li 62d56d83ae Merge branch 'master' of github.com:antlr/antlr4 into dart-clean 2020-05-25 21:01:46 +10:00
Tristan Swadell 69ba58ecbe Thread-safe ANTLR Go codegen 2020-05-01 01:57:54 -07:00
Sindre Tellevik 8962fb666a Suppressed dart execParser debug message. 2020-04-28 07:27:39 +02:00
Sindre Tellevik 187e5bb849 Escaped generic arguments <String> and <DFA>. 2020-04-28 07:27:02 +02:00
Sindre Tellevik f0f21410a9 Re-enabled test LargeLexer for Dart. 2020-04-27 13:58:42 +02:00
Sindre Tellevik cc0fe74f0b Added support for Windows in BaseDartTest. 2020-04-27 13:57:57 +02:00
Sindre Tellevik 67c981621e Fixed typo in error message. 2020-04-27 13:56:59 +02:00
Camilo Roca 1922a3744e refactored MyRuleNode to use es6 class 2020-03-20 14:52:24 +01:00
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
Larry Li fdff788689 ignore large lexer test for dart 2020-01-26 12:28:43 +11:00
Larry Li e4f312c869 aot compile large lexer test 2020-01-20 23:30:56 +11:00
Larry Li 6fb586b62c fix windows test 2020-01-20 22:10:51 +11:00
Larry Li 2a15af7579 fix appveyor 2020-01-20 00:23:22 +11:00
Larry Li 7cb0d427d4 dart test performance with aot compilation 2020-01-19 21:20:44 +11:00
Larry Li 46bd9e5569 add dart target 2020-01-19 18:22:06 +11: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