DescriptionAdd new GN junit binary template and new GYP java binary template.
Adds a new junit_binary template for gyp which makes it easy to
make new Junit test suites by setting a lot of the options and
necessary dependencies for you.
Also, adds a new java_binary.gypi file which uses the
create_java_binary_script.py similiar to how the java_binary
GN template works when main_class is specified. This lets
GYP and GN work similiar when building a junit binary, so
our test runner can run them the same way.
Finally, because of the slightly different way were now running
the junit binary, the java classpath contains all of the jars
instead of just the test jar (before we were running
java -jar test_jar.jar which set the classpath to just be
test_jar.jar). Therefore, we can simplify things and just look
in the classpath for the paths to the Robolectric dependencies
when running Robolectric junit tests.
BUG=
Committed: https://crrev.com/1ad64324d470c43b29854282d5ad5b1ff75dfc6c
Cr-Commit-Position: refs/heads/master@{#324093}
Patch Set 1 #Patch Set 2 : #
Total comments: 11
Patch Set 3 : Addressed jbudorick's comments and merged java_binary.gypi with host_jar.gypi. #Patch Set 4 : Fixed some preexisting errors to host_jar.gypi. #
Total comments: 5
Patch Set 5 : Addressed cjhopman's feedback. #Messages
Total messages: 16 (3 generated)
|