summaryrefslogtreecommitdiffstats
path: root/build/Android.common_test.mk
Commit message (Collapse)AuthorAgeFilesLines
* ART: Fix streaming tracing issuesAndreas Gampe2015-06-261-0/+3
| | | | | | | | | | | | Fix a lock ordering issue in streaming-mode tracing. Fix a moving-GC issue in streaming-mode tracing. DexCache objects are not good keys for a map. Expose streaming mode for testing in run-tests. Bug: 21760614 Change-Id: Idcd0575684ee3cc0cec3f81b4fdd0d5988c11e8c
* Properly compile multidex for tests when using Jack.Richard Uhler2015-03-111-3/+5
| | | | | Bug: 19687200 Change-Id: I8c5771ccd474aa06001c3a48cc82550589ac7055
* Create OatFileAssistant class for assisting with oat files.Richard Uhler2015-03-091-0/+10
| | | | | | | | | | | | | | | The oat file assistant is used for determining whether dex2oat or patchoat is needed, for running dex2oat or patchoat as needed to make an oat file up to date, and to load dex files associated with a given dex location. The introduction of the OatFileAssistant class is meant to clean up and consolidate code related to the management of oat files that was duplicated and spread across dalvik_system_DexFile.cc and class_linker.cc. Bug: 11301553 Change-Id: I0c16027b9bae4570c2c50faa9c14f581c0cbafb8
* Revert "Revert "More Makefile fun for --debuggable.""Nicolas Geoffray2015-03-091-0/+3
| | | | | | This reverts commit 9728a930fdf717cca60b48d9c2b715d0eed497fd. Change-Id: Ieca964a793e58f11931f78f50be47a4a9f0dc21f
* Revert "More Makefile fun for --debuggable."Nicolas Geoffray2015-03-091-3/+0
| | | | | | This reverts commit bd648cd3aef1ce82aaaa85924b1178a7f499cc29. Change-Id: I9be508730dc5c25b9d08f914c5628e88bc4aa15b
* More Makefile fun for --debuggable.Nicolas Geoffray2015-03-061-0/+3
| | | | Change-Id: Icd4a4cf53907bf04b0d45211e264c9985045b55c
* Add missing JIT stuff in make filesMathieu Chartier2015-02-261-0/+3
| | | | | | | Was causing core.oat to not be created. Bug: 19524713 Change-Id: I5da005fd36f9682623fdda9931280997b59c2681
* Re-enable ParallelGC test for gcstress modeMathieu Chartier2015-01-071-7/+1
| | | | | | | Ran the test hundreds of times with gcstress without any failures. Bug: 16406852 Change-Id: Idd2d248bd43bfb20ad7313e12ce3dce85bea3de5
* Fix signal test to work with gcstressMathieu Chartier2015-01-071-8/+0
| | | | | | | | | | | | | We now avoid running GC if we are handling a stack overflow, this helps prevent running past the end of the stack overflow reserved bytes. Added logic in ThrowStackOverflowError to use a stack overflow exception without a stack trace if we fail to allocate the stack trace. Bug: 16406852 Change-Id: Ib34e235cd0af6d7c4c93c9705fa822f2b9b23b38
* Add a new imgdiag tool to diff boot.art/core.art against a processIgor Murashkin2014-12-161-3/+3
| | | | | | | | | | | | | | Analyze the dirty memory pages of a running process per-object, this allows is to to fine-tune the dirty object binning algorithm in image writer. Also: * Factor out oatdump command line parsing code into cmdline.h * Factor out common build rules for building variations of binaries * Add a gtest for imgdiag Bug: 17611661 Change-Id: I3ac852a0d223af66f6d59ae5dbc3df101475e3d0
* ART: PIC testingAndreas Gampe2014-10-281-0/+6
| | | | | | | | | | | Adds run-test support for PIC testing. For the core image, enable with ART_TEST_PIC_IMAGE=true. For the tests themselves, enable with ART_TEST_PIC_TEST=true. Off by default. Bug: 18035729 Change-Id: I23e396a2fa47b9471145f45b3c63f447871ebebf
* Add more environment variable to control test granularity.Nicolas Geoffray2014-10-241-0/+6
| | | | Change-Id: I7d96b6841db097c51262aa26dba8f331ca7891ff
* Support running run-test in ndebug mode through make.Nicolas Geoffray2014-10-211-0/+6
| | | | Change-Id: I514f44f356ecd0bf64d3f5b1295a99ff52a5d7b3
* Fix valgrind errors.Nicolas Geoffray2014-09-111-9/+0
| | | | | | | | For now just stack allocate the code generator. Will think about cleaning up the root problem later (CodeGenerator being an arena object). Change-Id: I161a6f61c5f27ea88851b446f3c1e12ee9c594d7
* ART: Fix things for valgrindAndreas Gampe2014-09-101-0/+12
| | | | | | | | | | | | | | | | | | | | | | Wire up valgrind gtests. Add valgrind-test-art-host, currently only depending on valgrind-test-art-host-gtest32. Fix an Alloc setting to allow running valgrind. Refactor the fault handler to manage (and correctly release) the handlers. Fix minor failure-case leaks exposed by tests. Failing tests: The optimizing compiler is leaking non-arena-ed structures (e.g., assembler buffers), as code generators are not destroyed. The solution has been moved to a follow-up CL. Note: All 64b tests are failing as we cannot allocate a heap. Change-Id: I7f854cfd098d9f68107ce492363e7dba9a82b9fa
* Add run-test support for running without a working patchoat/dex2oatAlex Light2014-08-261-0/+9
| | | | | | | | Also add it to the test-art target. Bug: 17262039 Change-Id: Id31130194c46df66fc48852d6f8884f14cb08db4
* Use loops to build combinations of run-tests.Ian Rogers2014-08-261-8/+11
| | | | | | | | | | Add a JNI force copy test. Split tracing from GC, relocation from prebuilding. As the combinations of tests is sufficiently large to cause make serious work, only build rules for tests that will be executed. Default to small number of tests rather than full. Use ART_TEST_FULL=true to override. Change-Id: Ic25431f29071b840d2e2295be6853511c0b52cfa
* Mark ParallelGC with gcstress failing.Nicolas Geoffray2014-08-141-1/+7
| | | | Change-Id: Id943286202bf5716588a61092b819d51069a2f53
* Support x86_64 stack overflow checks in opt compiler.Nicolas Geoffray2014-08-071-12/+0
| | | | | | Also re-enable SignalTest on optimizing-32. Change-Id: I2ca13f6f9ea775c654ee07cc5026c985263d6380
* Add --always-clean flag to run-test.Alex Light2014-07-301-0/+3
| | | | | | | | | This flag makes run-test remove the test-artifacts even if it fails. Also enable this option by default when doing run-tests with make. Add a ART_TEST_RUN_TEST_ALWAYS_CLEAN environment variable to control this option. Change-Id: I7867b400d570d8d679d9822d1fa65f49eb3522ae
* Add a variable to disable PREBUILD in run-tests.Nicolas Geoffray2014-07-281-0/+3
| | | | Change-Id: I318d37a2d98972c689829258e129ec8973bdc038
* ART: Fix target test pathsAndreas Gampe2014-07-271-0/+4
| | | | | | Nativetest is now nativetest64 on 64b targets. Change-Id: I4c4c6bba1a56525df2993708caaae3e6f7f5f2f6
* ART: Turn on ART_TEST_KEEP_GOING by default, clean up unused varsAndreas Gampe2014-07-241-7/+1
| | | | Change-Id: I8db60eade0338e53e76a87ef38ad661550475e3c
* ART: Make run tests out of oat testsAndreas Gampe2014-07-231-1/+21
| | | | | | Transforms all former oat tests into run tests. Change-Id: I190dd39456454c36e5538a2c044d993965a67533
* Merge "Changed default non-full tests to be prebuild."Andreas Gampe2014-07-221-2/+2
|\
| * Changed default non-full tests to be prebuild.Alex Light2014-07-221-2/+2
| | | | | | | | | | | | Also added ability to turn off non-prebuild manually. Change-Id: I0315ac43703a9c7e79812658523013799fb5d5dd
* | Put oat test output on stderr.Ian Rogers2014-07-221-1/+1
|/ | | | Change-Id: Iad318f63263dc5d264d8a84eacedf5065a4e5248
* Runtime can now be set to require relocationAlex Light2014-07-221-0/+15
| | | | | | | | | | | | | | Add a pair of runtime flags -Xrelocate and -Xnorelocate that can force the runtime to require that all files that are run are relocated, to prevent attacks based on the known art base address. Add support for running patchoat on oat files compiled without an image. Change run-test to have new --prebuild and --relocate flags. Bug: 15358152 Change-Id: I91166c62dd1ab80e5cbcb7883a2cd0d56afca32d
* Stack overflow checks and NPE checks for optimizing.Nicolas Geoffray2014-07-221-4/+1
| | | | Change-Id: I59e97448bf29778769b79b51ee4ea43f43493d96
* Redirect failing test output to stderr.Ian Rogers2014-07-211-1/+1
| | | | Change-Id: I8feeeef569854476d33fdc613182dbe16f7ba53c
* Add a GC stress run that uses a moving collector and small heap sizes.Ian Rogers2014-07-181-0/+3
| | | | | | | | | Disable 3 run-tests for this configuration that fail for reasons relating to OOME handling. Add 012-math to the failing trace tests, it fails due to hitting a file size limit when running in the interpreter. Change-Id: Ia58f4c245d9d2d14caf5f2f2f3dcbfa40d4ccadb
* Add GC verification test rules.Ian Rogers2014-07-181-0/+3
| | | | Change-Id: I7469ecaf98f680e7e642035f3536b00bdd97b486
* Allow optimizing and trace tests to be not run.Ian Rogers2014-07-181-0/+9
| | | | | | | | | | | | Make it so that optimizing and trace tests can be chosen to be not run. mm -j32 test-art will run all optimizing and trace tests. mm -j32 test-art ART_TEST_FULL=false will not run optimizing and trace tests. mm -j32 test-art ART_TEST_FULL=false ART_TEST_OPTIMIZING=true will not run trace tests but will run optimizing tests. Change-Id: I9c04d9489f08fb837da5561d9496c97aee7c4a4a
* Use the thumb2 assembler for the optimizing compiler.Nicolas Geoffray2014-07-161-1/+2
| | | | Change-Id: I2b058f4433504dc3299c06f5cb0b5ab12f34aa82
* Fix dex file dependencies for oat tests.Ian Rogers2014-07-071-2/+3
| | | | | | | | | The initial prerequisit used as an argument to "cp" wasn't set causing dex2oat to attempt to compile dex2oat. Make the setting of host and target dex dependencies more explicit in build-art-test-dex and update the test rules appropriately. Change-Id: I4f591f817537043bcb0328c7623fe7e2f0830b60
* Re-enable tests with the optimizing compiler.Nicolas Geoffray2014-06-261-4/+6
| | | | | | | | | | | Tests run ok on my host/target. I reverted the move to using thumb2, because tests were crashing. But I could not reproduce file limits issues. Make SignalTest as crashing for optimizing. We need to implement stack overflow checks. Change-Id: Ieda575501eaf30af7aaa2c44e71544c9c467c24f
* Fix test-art-target errorBrian Carlstrom2014-06-251-1/+2
| | | | Change-Id: If1f800a056b3f95252037163784ab3ae26d9fa6d
* Multilib ART host.Ian Rogers2014-06-241-0/+117
Build ART for the host as a multilib project with dalvikvm32 and dalvikvm64 running as 32 or 64-bit repsectfully. Note, currently multilib host builds are not the default, you make the so by setting BUILD_HOST_64bit=1. Extend tests to execute in both 32 and 64-bit modes. By default both 32 and 64-bit tests are run, add 32 or 64 to the end of a test name to run it in purely that flavor. Given the extra spam, modify oat tests to only generate console output when the test fails. Change the test harness so that common commands are run when a test should be skipped, when it passes or when it fails. Use these commands to generate a summary of passing, skipped and failing tests. Tests will be skipped if they are known to be broken or if a test has already failed. Setting the variable TEST_ART_KEEP_GOING=true will force working tests not to be skipped. In this change all tests running on the optimizing compiler are marked broken due to breakages running them in a multilib environment. Break apart Android.common.mk into its constituent parts, along with other pieces of reorganization. Stylistic nit, we refer to make rule targets as targets thereby overloading the term target. While consistent with make's terminology, its confusing with the Android notion of target. I've switched to just calling targets rules to avoid confusion in host tests. Change-Id: I5190fc3de46800a949fbb06b3f4c258ca89ccde9