Commit Graph

449 Commits

Author SHA1 Message Date
parrt 6b3f9816cb [maven-release-plugin] prepare for next development iteration 2016-01-29 14:13:15 -08:00
parrt b446c50722 [maven-release-plugin] prepare release 4.5.2 2016-01-29 14:13:11 -08:00
Peter Boyer 92b8f9f891 Various test fixes 2016-01-19 10:44:16 -05:00
Peter Boyer 86d65cf719 Fix lexer test failures 2016-01-16 17:11:00 -05:00
Peter Boyer 8f70a6f553 Fix test and GetRuleInvocationStack 2016-01-13 21:19:13 -05:00
Peter Boyer 7fc028409e Fix some more tests 2016-01-12 09:42:29 -05:00
Peter Boyer 7473c21b1e Even more test fixes yayaya 2016-01-08 16:57:54 -05:00
Peter Boyer 857600be43 Numerous test fixes 2016-01-08 09:28:38 -05:00
Peter Boyer 096f26d3ae Minor fixes for left recursive rules 2016-01-07 09:46:00 -05:00
Peter Boyer 21999adb6e Fix a bunch of compiler errors in Go runtime-testsuite 2016-01-06 19:12:37 -05:00
Peter Boyer 81b47eedd7 Various minor fixes 2016-01-05 17:05:12 -05:00
Peter Boyer 960c59e373 Fix more issues in code generation 2016-01-05 12:16:35 -05:00
Peter Boyer 977a1c3ae7 Fix issue with tests 2016-01-05 09:30:28 -05:00
Peter Boyer f2852686a7 Some of the runtime-testsuite tests now pass 2016-01-04 14:57:47 -05:00
Peter Boyer a2e273c5f6 Stub out runtime-testsuite test generator 2015-12-23 18:10:47 -06:00
Peter Boyer 7c812fb320 Various minor fixes, update of runtime-testsuite for go 2015-12-20 19:41:12 -05:00
Peter Boyer c1f473e6ef Stubbed out test suite 2015-12-18 16:39:49 -05:00
Terence Parr 05b50325a8 Merge pull request #991 from michaelpj/sync-before-predict
Reinstitute `sync` calls before `adaptivePredict`
2015-11-19 12:37:09 -08:00
Eric Vergnaud 5c101e750e re-enable full csharp test suite 2015-09-19 02:43:28 +08:00
Eric Vergnaud 7beb07bfc3 SUCCESS!!!! All ANTLR targets successfully build and pass tests on travis-ci! 2015-09-19 02:42:20 +08:00
Eric Vergnaud 2cea58868f get errors from xbuild 2015-09-19 01:33:17 +08:00
Eric Vergnaud f21ec5826e More info, maybe? 2015-09-19 00:59:19 +08:00
Eric Vergnaud 6d859a5168 Get compile error for failing test 2015-09-19 00:51:37 +08:00
Eric Vergnaud 8bf760a437 now try mono 2015-09-19 00:02:47 +08:00
Eric Vergnaud cbd3fad083 fix maven warnings 2015-09-18 23:39:39 +08:00
Eric Vergnaud 68cdaea368 now trying mono! 2015-09-18 23:29:52 +08:00
Eric Vergnaud 50e1512e4f ok, now locate python3.4! 2015-09-18 23:17:40 +08:00
Eric Vergnaud f05c9962df force travis build 2015-09-18 02:28:48 +08:00
Eric Vergnaud 377fd29f85 try again 2015-09-18 02:13:53 +08:00
Eric Vergnaud 6e9680f9cf trying to get python3 tests to run on travis-ci 2015-09-18 02:09:52 +08:00
Eric Vergnaud f7a9a73d64 fix test generation parameters, enable non-java targets 2015-09-17 02:51:10 +08:00
Eric Vergnaud a24b4fdf06 fix TestGenerator unclear path detection, enable generation of all targets except javascript browsers 2015-09-17 02:50:09 +08:00
Michael Peyton Jones 0c29b54fcb Update generated test source 2015-09-07 17:47:02 +01:00
Michael Peyton Jones af00e52de6 Correctly append newline to test output 2015-09-07 17:37:05 +01:00
Michael Peyton Jones 797cf08111 Delete remaining commented out syncs.
These sync calls are truly redundant - when we are in a simple
alternative block, we can recover sufficiently with `recoverInline`, and
so the syncs do not add anything.
2015-09-07 17:37:05 +01:00
Michael Peyton Jones 940cbcf19f Uncomment syncs before adaptivePredict
These allow slightly better error recovery before we run
`adaptivePredict`, as illustrated by the test.
2015-09-07 11:56:30 +01:00
Eric Vergnaud a80052fa2a Fixed a bug when locating JavaScript runtime, and refactored common code 2015-09-03 23:23:01 +08:00
Eric Vergnaud b65d521574 Fix test generator to support browser tests generation when generating all tests 2015-09-03 23:20:02 +08:00
Eric Vergnaud ebf8b9aaea Fix templates which were referring to a missing class 2015-09-03 23:18:58 +08:00
Eric Vergnaud bf00f6b57e Switch to selenium v46 2015-09-03 23:17:37 +08:00
parrt c07aa4ede1 [maven-release-plugin] prepare for next development iteration 2015-08-20 12:11:58 -07:00
parrt 3611fde621 [maven-release-plugin] prepare release 4.5.1-1 2015-08-20 12:11:55 -07:00
parrt 3d181af904 [maven-release-plugin] prepare for next development iteration 2015-07-15 14:45:48 -07:00
parrt 79dae1e6f6 [maven-release-plugin] prepare release 4.5.1 2015-07-15 14:45:45 -07:00
Jason van Zyl 398f7fcf53 Run all Java target tests by default
And we will use the "tests" profile to initiate the tests for the rest of the targets.
2015-06-29 22:03:16 -04:00
Jason van Zyl f48aa50a61 Add a command and README.md for the generation of the runtime test harness.
The workflow we want to support is for an Antlr dev to tweak the harness, examine the output
and when it's desirable checkin the results. This is an offline process done by a dev.
2015-06-29 18:09:39 -07:00
Jason van Zyl ee4bb93449 Enable the generation of the runtime tests
Note: I had to tweak generator not to assume a particular directory structure. I will
revisit this but the whole maven build is working.
2015-06-29 18:09:39 -07:00
Jason van Zyl a13352d8e7 Make javascript test sources compile. Jetty and Selenium required. 2015-06-29 18:09:39 -07:00
Jason van Zyl fd13f137f2 All projects are now building and tests passing from Maven 2015-06-29 18:09:39 -07:00
Terence Parr e921ba69c8 tweak java version 2015-06-29 18:09:38 -07:00
parrt b05e3ccdb8 messing with poms to get test generation in there. it doesn't seem to compiled and properly though. mvn compile works but mvn install doesn't finished compiling generated tests. 2015-06-29 18:09:38 -07:00
Sam Harwell eeb158d9ec rm circular dependency; update a comment 2015-06-29 18:09:38 -07:00
Sam Harwell 9247334a07 Update getTargetNameFromTemplatesFileName() to also work on Windows systems 2015-06-29 18:09:38 -07:00
Terence Parr dec5d26a3d tweak pom so it compiles in `compile` phase and `install` phase but doesn't run tests correctly. 2015-06-29 18:09:37 -07:00
parrt 8e361ef401 gen all targets now pays attention to -o option. Simplified target spec. `Regen tests with java org.antlr.v4.testgen.TestGenerator -root /Users/parrt/antlr/code/antlr4` from command-line. 2015-06-29 18:09:37 -07:00
parrt 7b5ac5a751 fix Node test gen 2015-06-29 18:09:37 -07:00
parrt da818c0c5c got javascript/node tests passing; folded in all js targets 2015-06-29 18:09:36 -07:00
parrt 8e89af918f all Python2 runtime tests pass 2015-06-29 18:09:35 -07:00
parrt d1f95085fe all Python3 runtime tests pass. Using same "get resource" mechanism to find runtime python code as I did for C#. 2015-06-29 18:09:35 -07:00
parrt ef870a4703 reset resource locations to entire runtime dir. 2015-06-29 18:09:34 -07:00
parrt 80b011adef reset resource locations to target name under antlr4/runtime for consistency. 2015-06-29 18:09:34 -07:00
parrt 3b641b0e22 ugh. intellij missed a file for commit (again!) wtf? 2015-06-29 18:09:34 -07:00
parrt 6711cdf321 Got C# target runtime tests working by finding files as resource not relative path. updated intellij proj to include correct stuff as resources. 2015-06-29 18:09:34 -07:00
parrt e8c4bc4b09 Manual copy/add-to-git from antlr4-csharp repo (w/o history) to show how C# target should get injected into main antlr4 repo. Pieces go into tool for code gen, runtime-testsuite, and of course the runtime module. 2015-06-29 18:09:34 -07:00
parrt 1cd4ad125c add import for BaseTest so tool tests compile. it all appears to compile and tool tests pass. 2015-06-29 18:09:33 -07:00
parrt e1c22147f8 Ooops. do the same update for ErrorQueue, which also moved location. 2015-06-29 18:09:32 -07:00
parrt 66ccef187e update test gen templates and the generated templates themselves to use the new location for BaseTest. 2015-06-29 18:09:32 -07:00
parrt 0430833450 move ErrorQueue, used by BaseTest, to the runtime test area. 2015-06-29 18:09:32 -07:00
parrt 8ae7f22f86 move BaseTest to be in the runtime test area to be consistent with other targets. 2015-06-29 18:09:32 -07:00
parrt fdcfe5482f mv tool tests into their own top level directory; mv test template support .stg into the runtime-testsuite area 2015-06-29 18:09:32 -07:00
parrt 9170f57aff tweak TestGenerator so it sorts test names so order is always same in TestX.java files. 2015-06-24 16:36:40 -07:00
parrt fcd8a67965 don't allow recursive subdirs of tests 2015-06-24 12:54:02 -07:00
Jason van Zyl 46202d98a2 Integrating tests for all supported targets
- A profile "rts" has been created which runs the integration tests. By default the the project containing the runtimes tests will not run so that users casually checking out and building the project do not have to install the tools required to test all the supported Antlr targets.

- The base test classes that are required for running the integration tests are downloaded from the other Antlr repos, dynamically added to the compile classpath and used by the currently checked in integration tests

To run the the full build with all the integration tests use the following:

mvn clean install -Prts
2015-06-24 13:45:40 -04:00
Terence Parr 0e2e135771 tweak bild 2015-06-22 17:58:53 -07:00
Terence Parr 317ce86583 add dependency on tool for tests 2015-06-22 17:19:54 -07:00
parrt 9c57b650c1 add unit test src for now; it is altogether from all targets 2015-06-22 13:24:50 -07:00
ericvergnaud b09119e426 fix failing tests generation
those 4 tests used \r as input although \r has no impact on what is
being tested. Replaced or removed \r so tests can be generated and ran.
2015-06-22 12:34:19 -07:00
ericvergnaud fe13b23628 fix failing test generation
failed in Python because « type » is reserved
2015-06-22 12:15:11 -07:00
ericvergnaud 707dbb9f8f fix failing test generation
wrong rule was called
2015-06-22 12:13:56 -07:00
Terence Parr 5c52288845 use template name that indicates what we're testing here. AssertIsList(v). 2015-06-22 11:03:22 -07:00
Terence Parr 0330cee319 Use separate actions to get actions on line by themselves. 2015-06-22 10:58:17 -07:00
Terence Parr 162c6138a5 rm unused template 2015-06-20 12:21:51 -07:00
Terence Parr 4115a0ad47 Merge pull request #913 from sharwell/fix-909
Move TestPerformance.testExpressionGrammar to the runtime test suite
2015-06-19 12:11:12 -07:00
Jason van Zyl 8beec18283 Add Maven build
Account for the following:
- deploying snapshots to OSSRH
- releasing to Maven Central
- Shaded JAR including the treelayout dependency
- OSGi manifest
- remove Eclipse IDE metadata for clean import
- remove IDEA IDE metadata for clean import
2015-06-19 11:13:24 -07:00
parrt e0c6210d22 added a comment and removed redundant array creation from varargs. 2015-06-18 13:40:48 -07:00
Terence Parr 35794c431c Merge pull request #917 from antlr/enable-one-shot-tests-generation
added -root parameter to generate all targets
2015-06-18 13:34:38 -07:00
ericvergnaud 4499344985 added -root parameter to generate all targets 2015-06-19 02:10:19 +08:00
parrt 4bee04f114 I do not properly add the unit test 2015-06-17 17:45:14 -07:00
Sam Harwell 3c9aabfb80 Move TestPerformance.testExpressionGrammar to the runtime test suite
Fixes #909
2015-06-16 20:23:44 -05:00
parrt 441587e859 add new unit test corresponding to 2e06ed8360 2015-06-16 16:44:02 -07:00
parrt fcc15905cc got all but 4 tests passing for py3! 2015-06-16 13:33:58 -07:00
Sam Harwell 4455d526fe Merge branch 'test-generation' into master 2015-06-06 18:15:53 -05:00
parrt 3f9cb4b12f make more flexible by allowing subclass to spec test templates resource dir 2015-06-03 11:11:52 -07:00
parrt 1323e30fa9 moving around templates, deleting old stuff. C# and Java runtime tests work using branch intermediate-test-generation of C#. bild doesn't quite test stuff correctly. 2015-06-02 16:00:45 -07:00
parrt fafc7722c8 got bild to gen java tests (others commented out) and run those tests. rm'd .stg map in Index.stg. 2015-06-02 11:40:19 -07:00
parrt 07aea10ca7 allow more control of root dir. add info() 2015-06-02 10:32:25 -07:00
Terence Parr e3325ab606 add cmd-line interface, add map in Index.stg to targets-specific templates. 2015-06-01 18:18:44 -07:00
parrt b15e66985e add main to test gen. 2015-06-01 14:40:22 -07:00
Sam Harwell e355fc44e2 Extracted code generation portion of test suite generator to a separate artifact 2015-06-01 16:20:32 -05:00