Terence Parr
681e6c3ed0
a test bild script that works on all but a few tool tests.
2015-06-29 18:09:38 -07:00
Terence Parr
8c255b9a12
trying to get tests to run
2015-06-29 18:09:38 -07:00
Terence Parr
e921ba69c8
tweak java version
2015-06-29 18:09:38 -07:00
Sam Harwell
f98a0a7dfd
Fix copyright notices for maven plugins
2015-06-29 18:09:38 -07:00
parrt
f5b48efd46
manual cherrypick of Sam's d74781d2fe
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
f71e225cf2
Fix Travis configuration so the build passes
...
* The build failed because the `cd antlr4` step failed.
* The `mvn install` operation runs tests, so remove the duplicate `mvn test` step.
2015-06-29 18:09:38 -07:00
Sam Harwell
47c234af64
Improve m2e integration for the test generator
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
157749e825
Generate tests during the build
...
This commit enables the runtime test generator during the Maven build,
process which means the Java runtime receives the same comprehensive
testing during a Maven build as it does during a build with bild.py.
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
parrt
5494e7c73e
IDE .ipr knows how to build complete jar artifact.
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
Terence Parr
f4709f2973
tweak pom to give version of maven-jar-plugin so it doesn't fail. success reported for "maven test" but no tests run. ;)
2015-06-29 18:09:37 -07:00
Terence Parr
5d2d75d2e3
looks like i had python2 and 3 swapped. java, python3, c# pass. python2, js each have same single test failing: testCharSetWithQuote1
2015-06-29 18:09:37 -07:00
Terence Parr
99ad09ece1
ok, somehow python2 runtime got overwritten with weird stuff. it passes tests again now with fresh copy.
2015-06-29 18:09:37 -07:00
Terence Parr
9203dd193e
add gen3/4 for now to avoid bootstrap issue
2015-06-29 18:09:37 -07:00
parrt
b3133abb21
gitignore was dropping all my target generators. ugh.
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
ca80d27257
tweak list of resources to no avail for testing python
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
6d892c71b5
mv JavaTarget to new target package
2015-06-29 18:09:33 -07:00
parrt
f97183955f
temporarily add manual intellij project files so i can compile.
2015-06-29 18:09:33 -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
5ea597098a
Merge branch 'master' of github.com:antlr/antlr4
2015-06-29 16:55:18 -07:00
parrt
905314e514
add NotNull back to runtime but just for backward compatibility with 4.5; deprecated
2015-06-29 16:54:48 -07:00
Terence Parr
8d92173522
Merge pull request #941 from jvanzyl/master
...
Adding myself as a contributor
2015-06-29 11:29:18 -07:00
Jason van Zyl
8824e35a1f
Adding myself as a contributor
2015-06-29 14:28:18 -04:00
Terence Parr
e3eaeeb542
Merge pull request #939 from parrt/fix-test-gen-order
...
Fix test gen order
2015-06-24 16:38:19 -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
parrt
77e7d9ac4a
set new gen dir for tests runtime-testsuite/test/org/antlr/v4/test/runtime/python2 etc...
2015-06-24 12:31:46 -07:00
Terence Parr
a0fbded125
Merge pull request #937 from jvanzyl/master
...
Integrating tests for all supported targets
2015-06-24 12:14:09 -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
6439b40d09
Merge pull request #928 from antlr/delete-legacy-tests
...
delete legacy test generator and generated tests
2015-06-23 10:21:45 -07:00
Eric Vergnaud
5d5c582f82
tests are now with runtime-testsuite
2015-06-23 22:23:36 +08:00
Eric Vergnaud
6e0379d1e4
tests are now with runtime-testsuite
2015-06-23 22:23:17 +08:00