summaryrefslogtreecommitdiffstats
path: root/jack-tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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
* | | Merge "Fix issue with not existing classpath entry" into ub-jackBenoit Lamarche2015-04-071-7/+24
|\ \ \
| * | | Fix issue with not existing classpath entryBenoit Lamarche2015-04-071-7/+24
| | |/ | |/| | | | | | | | | | | | | | | | We must check existence before permissions. Bug: 20025079 Change-Id: I19d8838e2a399806bc8b70bb1dab399537c7d158
* | | Merge "Allow to use two enums with the same simple name into a class" into ↵mikaelpeltier2015-04-0711-12/+152
|\ \ \ | |/ / |/| | | | | ub-jack
| * | Allow to use two enums with the same simple name into a classmikaelpeltier2015-04-0711-12/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - To support partial recompilation with enum used into a switch statement, Jack generates a field and a method allowing to get a mapping between an enum field and an integer that will be used into a switch statement. This generated code must not take only the simple name of enumeration as discriminant, since several enum can have the same name. Thus, it is better to use his fully qualified name. Bug: 19639131 Change-Id: I2dbeef61e24e0e7b7250d3f0cfcbb619bd6e7829
* | | Add tests about BlockScope.getEmulationPathYohann Roussel2015-04-0315-1/+513
|/ / | | | | | | | | Bug: 19952019 Change-Id: I6cd7b8bebc4564f33359a550e3c56f1894301e15
* | Add a test with duplicated source filesmikaelpeltier2015-04-035-1/+98
| | | | | | | | | | | | Bug: 19678916 Change-Id: Ic6d9e5e0fdb1f9ad79f06aee721be90911a4df71
* | Add 3 frontend testsYohann Roussel2015-04-039-64/+270
| | | | | | | | | | | | | | | | | | | | | | | | Related to cases where ecj could create TypeDeclaration with a null binding. - testConflictingPackage001 and testConflictingPackage002 because CompilationUnitScope.buildTypeBinding is showing an evidence of TypeDeclaration with a null binding in case of package conflict. - testUninstanciableLocalClass001 because a comment in SafeASTVisitor (gwt) is saying that uninstanciable local classes may lead to TypeDeclaration with a null binding. Change-Id: I4aa5e9c00ff162d311b0dbd7bc16f64582a0e89c
* | Rename JAnnotation to JAnnotationTypemikaelpeltier2015-04-011-2/+2
|/ | | | | | | | - Rename also JLookup.getAnnotation to JLookup.getAnnotationType, JDefinedAnnotation to JDefinedAnnotationType and JPhantomAnnotation to JPhantomAnnotationType Change-Id: Ic9f2890201167f0dc437a1446faad4bd9fbec72f
* Add InputStreamProvider and OutputStreamProvidermikaelpeltier2015-03-231-1/+1
| | | | | | | - Add common interface between VFile and StreamFile that will allow to read or write them. Change-Id: I1721932c7e68770edae53a431d4a9a3ca664ae72
* Stop creating message in NonSuchFileException unnecessarilyPiotr Jastrzebski2015-03-191-2/+2
| | | | | | | | | | | | | | | | NoSuchFileException is thrown 29686 times during compilation of Music app but its message is not obtained even once. location.getDescription is not a cheap operation and message creation uses string concatenation as well. Instead of creating a message eagerily this change stores a reference to a location in the NonSuchFileExpection object and creates the message only when it's needed. This speeds up the creation of NoSuchFileException almost 40 times which makes a difference if we multiply it by almost 30k times it's created. We will also save on GC as it saves at least 3 object creations per NoSuchFileException which makes over 90k object creations saved. Fix also other exceptions in com.android.sched.util.file. Change-Id: Ibc2a413891a2e24be786f440196e9a4276215cc0
* Tweak CfgBuilder.setBlockOfStatementsPiotr Jastrzebski2015-03-192-0/+0
| | | | | | | | | We don't need to call entryBlock.getSuccessors() to know if there was a BasicBlock created already. Avoiding to do that saves us 1.2% of all memory allocations which for Music app compilation is 64M. Change-Id: Ib71e27824e67961edea19eeba5ebe4c4eec6be3a
* Remove reference to StandardCharsetsYohann Roussel2015-03-181-3/+5
| | | | | | Since it's java 7. Change-Id: Iaee93f5e074c0fb4c7dead6aee51a95e4660c7d6
* Adapt test-opcodes.mk to renaming of test sourcesYohann Roussel2015-03-171-4/+4
| | | | | | Renaming was done by commit 24bdf084c107acaeb33f89fcbef97ce276c3a749 Change-Id: I7072774ba9cbfc92a0899d3e1a0ca9f532eda7db
* Merge "Revert "Package jack annotations"" into ub-jackYohann Roussel2015-03-171-8/+0
|\
| * Revert "Package jack annotations"Yohann Roussel2015-03-171-8/+0
| | | | | | | | | | | | This reverts commit 654914e837381345f929ff3f788371a06ab2f085 Change-Id: I2410144d1f409f448e9c53d78a209ac8480d04ef
* | Accept more tests to run with cli-based ToolchainsJean-Marie Henaff2015-03-1713-12/+93
|/ | | | | | | About 200 tests were skipped with those toolchains. Try to reduce this number. Change-Id: I7713638275ca5fa1569dd141c367a683e9c330ae
* Load default libraries from jack.jarYohann Roussel2015-03-175-16/+30
| | | | | | | | For now the only default library contains the jack annotations. The default libraries can be ignored by "--no-default-libraries". Bug: 17803510 Change-Id: I0eb0c1a535e1d4ff808c744ba7c1924e4dd4aee6
* Speed up Ant scriptJean-Marie Hénaff2015-03-164-0/+0
| | | | | | | This reverts commit be49dc7d7d939391a5646a174df8eebe77b31fef, but also fixes a bug that made jack tests fail which is why it had been reverted. Change-Id: Iee6e3b05549c3f603558910eb45149eb88333f0a
* Revert "Speed up Ant script"Benoit Lamarche2015-03-124-0/+0
| | | | This reverts commit 6f4d464b8728997b9e7052ac8ed169272859b229.
* Add property for classpathBenoit Lamarche2015-03-121-2/+22
| | | | Change-Id: I5f99e0a9355d317b0c0cc9e037ba663937558305
* Merge "Speed up Ant script" into ub-jackJean-Marie Henaff2015-03-124-0/+0
|\
| * Speed up Ant scriptJean-Marie Henaff2015-03-124-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Avoid useless recompilation Use <uptodate> to check if something must be done Use <dependset> to ensure that a renamed type won't have its old class file packaged into the final jar file by wiping out all the output direcftory content if a change has been made. Change-Id: I54322309d7a40ecff3c45422fb3e96cccd8d0192
* | Support spaces in runtime.list property of test configurationJean-Marie Henaff2015-03-121-2/+6
|/ | | | Change-Id: I19d1c47d79306646d6352a51762656982e30d117
* Rework Jack API, add better control over versioningJean-Philippe Lesot2015-03-113-50/+57
| | | | Change-Id: I1afa95dae0177c19891c3669a672bd5481191dba
* Move all classes of DexComparator project into comparator packagemikaelpeltier2015-03-1114-34/+48
| | | | | | - Replace also occured by occurred into all toolchains Change-Id: I47e8fba64573509ea8372cfc5ddfae5639036c7a
* Merge "Update tests README and configuration template file" into ub-jackJean-Marie Henaff2015-03-112-3/+22
|\
| * Update tests README and configuration template fileJean-Marie Henaff2015-03-112-3/+22
| | | | | | | | Change-Id: I2a6c9667446dce284329de5de3b7d29804dfe7ca
* | Merge "Ignore test which require "rot13" for cli based toolchain" into ub-jackJean-Marie Henaff2015-03-113-9/+9
|\ \ | |/ |/|
| * Ignore test which require "rot13" for cli based toolchainJean-Marie Henaff2015-03-113-9/+9
| | | | | | | | | | | | | | These tests require a name provider "rot13" which is not packaged inside regular jack.jar. Change-Id: Iab6af2f8e9092ef2821e9a57a51569aaa288c4f2
* | Adapt some long tests to the new APImikaelpeltier2015-03-112-6/+4
|/ | | | Change-Id: Ib35dfd9ea5c3166fd3d6d3dbcdf5d10fdafb3e26
* Merge "Instantiate JackConfing in same ClassLoader for API test Toolchain" ↵Jean-Marie Henaff2015-03-101-8/+12
|\ | | | | | | into ub-jack
| * Instantiate JackConfing in same ClassLoader for API test ToolchainJean-Marie Henaff2015-03-101-8/+12
| | | | | | | | Change-Id: Ib9a4b90a2706d408c961a60d3149d3ab0ad69b83
* | Merge "Jack support for annotation processor." into ub-jackYohann Roussel2015-03-1021-142/+829
|\ \ | |/ |/|