summaryrefslogtreecommitdiffstats
path: root/jack-tests
Commit message (Collapse)AuthorAgeFilesLines
* Adapt ClasspathTests to use InputJackLibraryBenoit Lamarche2015-05-292-4/+17
| | | | | | (cherry picked from commit 860b271f80ccbd6d283fe671444a9c89c0ff892d) Change-Id: Icdbad809fdfdfdacaa5c63c9b7812846fd7390c7
* Adapt incremental tests to use InputJackLibaryBenoit Lamarche2015-05-297-67/+61
| | | | | | (cherry picked from commit 097b5d6e807b250847ec9ff27f4a7ac7a336620f) Change-Id: I954bb80fe35fcc59043665400dd8331e2153427b
* Add reference for shrinking test 43mikaelpeltier2015-05-212-38/+9
| | | | | | | | | | - Remove usage of ordered-filter and single-threaded mode since they do not allow to trace type in a specific order. The ordered-filter allows only to pass java files to ecj in a lexical order, but after ecj this order is no longer guarantee. Change-Id: I32103e933f863c319aba507c8439662a9e159c8b (cherry picked from commit 0cf14ebc4189e18da422dad7be676c99e3bca6ff)
* Do not forget to trace implementation methodsmikaelpeltier2015-05-215-0/+118
| | | | | | | | | | - Tracing can forget to keep some methods due to tracing order. Trace a method that is a seed need also to trace implementation of this method for all types that are already kept. Bug: 21023926 Change-Id: I0a0df841b0f7441ddba056ad69a1f506db15afb3 (cherry picked from commit df69c567bb1903bdcf1a39be18a0e52c62709de0)
* Merge "Add complementary test for not simplifier optimization" into ↵mikaelpeltier2015-05-218-57/+459
|\ | | | | | | ub-jack-brest
| * Add complementary test for not simplifier optimizationmikaelpeltier2015-05-218-57/+459
| | | | | | | | | | Change-Id: Ie6918e1b069065b133657d19a60265202837c656 (cherry picked from commit 0d60e80a141b0b23bf2e1a0a4709dd14d1aa47e0)
* | Merge "Do not remove type of 'null' expression otherwise type is lost" into ↵mikaelpeltier2015-05-213-0/+76
|\ \ | | | | | | | | | ub-jack-brest
| * | Do not remove type of 'null' expression otherwise type is lostmikaelpeltier2015-05-213-0/+76
| |/ | | | | | | | | | | Bug: 19508222 Change-Id: I839ee69b454bf74dd93a6dffcb900c56fb68c3de (cherry picked from commit 731bf4c954500229d95fdacf424f7ccad6e5bdcf)
* | NullLiteral is allown to have throw statement as parentmikaelpeltier2015-05-213-0/+75
|/ | | | | | | | - Rework checkValidity of JLiteral to be more precise Bug: 19534642 Change-Id: I0be226832680b99ba66f5b7acda0c7f7097fea82 (cherry picked from commit 51d872af9b65433731804c7933448337494af67e)
* NotSimplifier must take into account floating typesmikaelpeltier2015-05-214-1/+142
| | | | | | | | | | - cmpl-x and cmpg-x do not return the same value for Nan operands. Consequently !(a>b) can not be replace by a<=b when using floating types otherwise the condition will not be evaluated correctly at runtime. Bug: 21212402 Change-Id: Idfd37459b0013e1d0fba274bbc0f9acc103bb605 (cherry picked from commit 0635c13e2a4581dec9e3b3e78c4b6dcd8327a2d7)
* Make multidex type partition deterministYohann Roussel2015-05-185-29/+120
| | | | | | | By sorting types by name before filling the output dex files. Bug: 19505195 Change-Id: Ib7c11bc2b072c422e40188cfce7502e7f23679c8
* Modify Api01Config and Jack to support multiple Jarjar config filesJean-Marie Henaff2015-05-1211-24/+36
| | | | | | | | Bug: 20913411 (cherry picked from commit 517dec6fa299a3755f38681b3fcea387c84873f0) Change-Id: If9c1e8f827e8ed3fd68c4999a8700608a95ce7c9
* Merge "During shrinking generate error if they are unknow types" into ub-jackmikaelpeltier2015-04-293-0/+8
|\
| * During shrinking generate error if they are unknow typesmikaelpeltier2015-04-293-0/+8
| | | | | | | | | | | | | | | | | | | | - When shrinking all used types must be passed into classpath, without these types into classpath, Jack could shrink class members that it should not. Bug: 20135591 Change-Id: I13a82b4cc47da27fa3f12330df9b630ea6628f48
* | Remove invalid library STOPSHIPsBenoit Lamarche2015-04-291-3/+9
| | | | | | | | | | | | | | I've added a bug to track the issue instead: Bug: 20685807 Change-Id: I15dd6d9b7a16a86014a4202338639d0b2f8fb1f1
* | Report unnecessaryEnclosingInstanceSpecificationBenoit Lamarche2015-04-291-1/+0
| | | | | | | | Change-Id: Id18cf1f123284d52eb3c5487638d5076fe74e20b
* | Merge "Add createTmpDir method throwing CannotCreateFileException" into ub-jackmikaelpeltier2015-04-291-2/+3
|\ \
| * | Add createTmpDir method throwing CannotCreateFileExceptionmikaelpeltier2015-04-281-2/+3
| | | | | | | | | | | | | | | Bug: 19654122 Change-Id: Ie0a0cb048efa2494a7e225e8de86453e38aaaed5
* | | Implement missing checks in getEmulationPath methodsBenoit Lamarche2015-04-291-3/+0
| |/ |/| | | | | Change-Id: Ib9856f3a0803c0f2bc6c7f5919e6d3f60330ba0a
* | Explicitely ignore some tests with Jill test toolchainJean-Marie Henaff2015-04-299-4/+539
| | | | | | | | | | Bug: 20157629 Change-Id: I91bfcf55377cfdabaa0f52eede4e41cf5748d7c5
* | Merge "Remove use of SchedLib utility class from test framework" into ub-jackJean-Marie Henaff2015-04-291-3/+3
|\ \
| * | Remove use of SchedLib utility class from test frameworkJean-Marie Henaff2015-04-281-3/+3
| | | | | | | | | | | | Change-Id: Ie8abe5be6dbd2e8ec61fb3bde40144ab3b041762
* | | Make FrontEndTests.testConflictingPackage001 deterministYohann Roussel2015-04-281-0/+2
| |/ |/| | | | | | | | | | | | | | | Looks like an Ecj problem is making it report an error or a warning depending on the compiled sources order. This is just a workaround for the test, it does not fixes the reporting problem. Bug: 20151080 Change-Id: Ib3eb99d1ed2e88d774891abbc14083e5696abc12
* | Merge "Add new Shrinking tests" into ub-jackmikaelpeltier2015-04-281-0/+52
|\ \
| * | Add new Shrinking testsmikaelpeltier2015-04-281-0/+52
| |/ | | | | | | | | | | | | | | - These test was written to show the different behavior between using imported jars or not. The class in lib contains a Class.ForName with an existing class that should be kept when the library is used as an imported library. Change-Id: I306ce629d27c4ee9c47f6203e05fc3fd1d2ee038
* | Merge "Revert "During shrinking generate error if they are unknow types"" ↵Mikael Peltier2015-04-284-140/+1
|\ \ | | | | | | | | | into ub-jack
| * | Revert "During shrinking generate error if they are unknow types"Mikael Peltier2015-04-284-140/+1
| | | | | | | | | | | | | | | | | | This reverts commit 88ac57db8ef6442d2a87aacad089104b488052e0. Change-Id: I67a420bcc60bf0ccbea0af30a551e3326d18e420
* | | Fix ClassCastException on useless qualifier errorYohann Roussel2015-04-284-5/+60
|/ / | | | | | | Change-Id: I8442a0e196cc598f6afd7db84173936abb26e87a
* | During shrinking generate error if they are unknow typesmikaelpeltier2015-04-284-1/+140
|/ | | | | | | | | - When shrinking all used types must be passed into classpath, without these types into classpath, Jack could shrink class members that it should not. Bug: 20135591 Change-Id: I4b4b03581141df0e40b1f27ccfc2f3a481b5d069
* Merge "Be more precise in test toolchain request in ClasspathTests" into ub-jackJean-Marie Henaff2015-04-271-1/+1
|\
| * Be more precise in test toolchain request in ClasspathTestsJean-Marie Henaff2015-04-161-1/+1
| | | | | | | | Change-Id: I49d55b32fc84bd4a4527fc6ae6662e67ec943dd2
* | Fix mapping comparison order in shrob testsJean-Marie Henaff2015-04-2719-38/+46
| | | | | | | | | | | | | | | | | | | | - Some files to be comapred were passed in the wrong order. - Changed order in test framework API to match how it's been done in other Comparators. Bug: 20150139 Change-Id: I999886b15781c1a170d578c1d8b31b6325c783af
* | Merge "Add listing comparison to ShrinkTests.test21()" into ub-jackJean-Marie Henaff2015-04-271-0/+12
|\ \
| * | Add listing comparison to ShrinkTests.test21()Jean-Marie Henaff2015-04-231-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reference listing was used for ShrinkTests.test21_001() but not for this extra test which splits compilation into 3 steps. Bug: 20151065 Change-Id: I1aedfd4bfc19162b0ffe7f972379ba272addab6b
* | | Definitely remove setShrobFlags method from test frameworkJean-Marie Henaff2015-04-232-12/+0
|/ / | | | | | | Change-Id: Ib5713ece24bb803b525b2e9e188422a807d12787
* | Modify AbstractTestTools api to detect error at compile timeJean-Marie Henaff2015-04-162-11/+9
|/ | | | | | Do for reference toolchain what's already been done for candidate toolchain. Change-Id: I375cf829e24040cdcad1b4f79c8c436915ffd38a
* Merge "Modify AbstractTestTools api to detect error at compile time" into ↵mikaelpeltier2015-04-133-8/+8
|\ | | | | | | ub-jack
| * Modify AbstractTestTools api to detect error at compile timemikaelpeltier2015-04-093-8/+8
| | | | | | | | Change-Id: Id88be0584579d551e40d95704320dcf0ede87610
* | Merge changes I73ec2f53,I77e2d9d8 into ub-jackYohann Roussel2015-04-095-3/+73
|\ \ | |/ |/| | | | | | | * changes: TypeDeclaration.binding may be null Test duplicate classes compilation error
| * TypeDeclaration.binding may be nullYohann Roussel2015-04-082-3/+0
| | | | | | | | | | | | | | | | In case of some compilation error problems. Bug: 19943598 Change-Id: I73ec2f5300338bfb60e15fa726140e6591527585
| * Test duplicate classes compilation errorYohann Roussel2015-04-084-1/+74
| | | | | | | | | | Bug: 19989019 Change-Id: I77e2d9d8a9465ed27f180bbc664f248c37dc9e33
* | Merge "Avoid ClassCastException when toolchain jack-cli is used" into ub-jackJean-Philippe Lesot2015-04-091-1/+1
|\ \
| * | Avoid ClassCastException when toolchain jack-cli is usedmikaelpeltier2015-04-091-1/+1
| |/ | | | | | | Change-Id: If75202bbc6b12a816fac30812d6dfeb2aaa6b4af
* | Fix bad redirection into test toolchainmikaelpeltier2015-04-093-16/+16
|/ | | | Change-Id: Ibb281abf5d0c8c348094a923b708de8f7fe32267
* Merge "Modify repackageclasses test to use a package separator" into ub-jackBenoit Lamarche2015-04-082-2/+2
|\
| * Modify repackageclasses test to use a package separatorBenoit Lamarche2015-04-082-2/+2
| | | | | | | | | | | | Bug: 20118240 Change-Id: I09ae7e35b7d9085cf2efe87134005abedbc07902
* | Merge "Fix bug into Java parser" into ub-jackmikaelpeltier2015-04-087-1/+207
|\ \
| * | Fix bug into Java parsermikaelpeltier2015-04-077-1/+207
| | | | | | | | | | | | | | | | | | Bug: 19613702 Bug: 19910266 Change-Id: I6d2c7011ba92e0c0b6f97cd13264ef67a19700a3
* | | Merge "Small changes around Jayce-related exceptions" into ub-jackBenoit Lamarche2015-04-083-26/+22
|\ \ \ | |/ / |/| |
| * | Small changes around Jayce-related exceptionsBenoit Lamarche2015-03-273-26/+22
| | | | | | | | | | | | | | | Bug: 19787495 Change-Id: I40f9c10404544ee1455d4996a91d64f72089570c