summaryrefslogtreecommitdiffstats
path: root/Android.mk
Commit message (Collapse)AuthorAgeFilesLines
* Fix jit testsMathieu Chartier2015-02-271-0/+13
| | | | | | | | Missing image suffix was missing causing tests to fail. Also added missing phony targets. Bug: 19524713 Change-Id: Ib40d39b1fc16e1adfdc01744a199ae9b0b562664
* Add missing JIT stuff in make filesMathieu Chartier2015-02-261-0/+13
| | | | | | | Was causing core.oat to not be created. Bug: 19524713 Change-Id: I5da005fd36f9682623fdda9931280997b59c2681
* Merge "Adds the dexfuzz fuzzing tool to ART."Andreas Gampe2015-01-171-0/+1
|\
| * Adds the dexfuzz fuzzing tool to ART.Stephen Kyle2014-12-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This tool can mutate DEX files, and execute them with multiple backends of ART, making sure that all backends agree on the output of the program. This should help identify bugs in particular backends, should they produce output that disagrees with the other backends. Build with mmm tools/dexfuzz from within art/. See the README for details about how to use dexfuzz. Change-Id: I3fc5d84a08b7d142a1fdc3d43a0324ce16b43608
* | Merge "Add a new imgdiag tool to diff boot.art/core.art against a process"Igor Murashkin2014-12-171-0/+1
|\ \
| * | Add a new imgdiag tool to diff boot.art/core.art against a processIgor Murashkin2014-12-161-0/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* / Remove obsolete PRODUCT_DEX_PREOPT_.*_IN_DATABrian Carlstrom2014-12-161-4/+0
|/ | | | | Bug: 18673991 Change-Id: I8be2f997005611b791755c8d7fa44974f1816d6b
* Provide an option to run run-tests with a local dalvikvm.Nicolas Geoffray2014-10-291-0/+7
| | | | | | | | Instead of overwriting /system, use a temporary directory to push the binaries and libraries, and use them for running the tests. Change-Id: I45fa2ac51f836686d8e8676907eb26629f7ab2ab
* ART: Create and use multiple core imagesAndreas Gampe2014-10-281-13/+7
| | | | | | | | | | | | | Update test infrastructure to understand several core variants. Now compiles three core.art/oat variants: * core.art/oat, default-compiled * core-interpreter.art/oat, interpret-only * core-optimizing.art/oat, optimizing compiler The run-test variant implies which core variant is used. Change-Id: Ieeaf2df90faee2b04c209b950897e77806205fe4
* Restore valgrind-test-art-hostBrian Carlstrom2014-10-091-2/+2
| | | | Change-Id: I2586e16664dabfc543bc9d0dab471ec8d3810f34
* Make which dex2oat version to use configurable.Nicolas Geoffray2014-10-061-2/+2
| | | Change-Id: I86503a51538c0b48ad96e8624b81461c2ba3279a
* Fix make test exclusion bugs.Ian Rogers2014-09-261-3/+2
| | | | Change-Id: I439c3670a01096355c50774c628d6b0f6cb6c397
* Only include test targets if test-art* or build-art* is being built.Ian Rogers2014-09-261-8/+18
| | | | Change-Id: I229ba2a77d993b2c14acf9a76e102ef76b0aeba6
* Add adb root to test-art-target, required by adb remount.Nicolas Geoffray2014-09-191-21/+24
| | | | | Also replace our sleep 3 with wait-for-device. Change-Id: Icb53c4ad0e8d5c6e93b9610eb7e9530242720581
* Merge "ART: Fix things for valgrind"Andreas Gampe2014-09-101-0/+5
|\
| * ART: Fix things for valgrindAndreas Gampe2014-09-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Remove art-* targets in favor of build-art-* targets.Brian Carlstrom2014-09-091-19/+5
|/ | | | | | | - Build both archs version when available. - Add --64 and --32 command line flags to the art script. Change-Id: I037ec94670767f1761adb26f44aafc5592ea3a2b
* Clean-up and make the art script usable on target.Nicolas Geoffray2014-09-081-1/+6
| | | | | | Also add a phony target to build what's needed to use it. Change-Id: I0bca6b0cbe921653de05fec0ae0cbbff63df580e
* ART: Use TMPDIR for test directoriesAndreas Gampe2014-08-061-0/+5
| | | | | Bug: 16499668 Change-Id: I0d3db4697ef7b1706807e7daa5e000bb89df14e0
* Revert "Rules depend on DEX2OATD, not DEX2OATD_DEPENDENCY."Brian Carlstrom2014-08-061-1/+1
| | | | | | This reverts commit b1efe9746724f28773d185c7137c16ca8207ed47. Change-Id: I5af2fae2c7b72e6ded72f00d3f7d4f306f6703ee
* Make system use patchoat to relocate during runtime.Alex Light2014-08-051-1/+2
| | | | | | | | | | Change dalvik_system_DexFile.cc so that isDexOptNeededInternal will be able to indicate that a patchoat is required. Change default of relocate option to be on. Bug: 15358152 Change-Id: Ibe92d8b55a24bbf718b0416a21b76e5df7a2de26
* Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [art]Brian Carlstrom2014-07-301-12/+12
| | | | | | | This will allow us to conditionally change the compiler-filter based on other properties. Bug: 15165413 Change-Id: I6877a6eab221ab142909b595fd28191b5d3a095b
* ART: Make run tests out of oat testsAndreas Gampe2014-07-231-37/+24
| | | | | | Transforms all former oat tests into run tests. Change-Id: I190dd39456454c36e5538a2c044d993965a67533
* Rules depend on DEX2OATD, not DEX2OATD_DEPENDENCY.Nicolas Geoffray2014-07-231-1/+1
| | | | | | If dex2oatd changes, we need to re-run .oat/.art file generation. Change-Id: I43487e024745b22b1681f4ff558bac6fd07d9881
* Runtime can now be set to require relocationAlex Light2014-07-221-1/+1
| | | | | | | | | | | | | | 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
* art: fix host dex2oat runtime argsColin Cross2014-07-091-1/+1
| | | | | | | | | | The runtime arguments need to be prefixed with -Xmx or -Xms. This only worked before because DEX2OAT_XMS, etc. were blank due to bugs in build/, which resulted in --runtime-arg --runtime-arg and anything starting with -- as the argument to --runtime-arg is silently ignored. Change-Id: I18607a6fd8d0004466404045f8dc4495eb6ab275
* Make dex2oat heap size product configurable [art]Brian Carlstrom2014-07-081-1/+1
| | | | | Bug: 15919420 Change-Id: I1b4f3256f6352b2d3e268991406def9e8efab945
* Add patchoat tool to Art.Alex Light2014-07-071-3/+4
| | | | | | | | | | | | | Add a new executable called patchoat to art. This tool takes already compiled images and oat files and changes their base address, acting as a cheap form of relocation. Add a --include-patch-information flag to dex2oat and code to add required patch information to oat files created with the quick compiler. Bug: 15358152 Change-Id: Ie0c580db45bb14ec180deb84930def6c3628d97d
* Add make rule to debug interpreter-only modeSebastien Hertz2014-07-041-0/+10
| | | | | | | Adds "use-artd-interpret-only" make rule to run interpreter-only mode with libartd.so. Change-Id: Ib9fbcdbdcc79a89900ee751b5dc2ad554f834127
* Fix build-art-target and build-art-host rules.Nicolas Geoffray2014-07-021-2/+2
| | | | | | They did not build the right libjavacore.so for 64bits builds. Change-Id: I8475f73588ffd17933aac4591d19f8803741ef8a
* Fix art-host rule and art script after build changes.Nicolas Geoffray2014-07-021-1/+1
| | | | Change-Id: Ideb6a83d71cda126d94ad01965b2dcf5005d449a
* ART: Add arch-specific directories to host-oat-cleaning ruleAndreas Gampe2014-07-011-3/+4
| | | | Change-Id: Ia1c5b613067ba6c6648706b346258d0a155906be
* The host build has changed from lib32/lib to lib/lib64.Nicolas Geoffray2014-07-011-1/+1
| | | | | | Use the correct build variable for library dependency. Change-Id: I2f12d13b595d97b2806eb709613e2cc358f4cad4
* We can no longer use "adb shell sh -c ..." internallyBrian Carlstrom2014-06-301-1/+0
| | | | Change-Id: I9357ca59f73b79fa56686d221c83e024137eee35
* Add the dalvikvm symlink to the art-host rule.Nicolas Geoffray2014-06-281-2/+2
| | | | | | The art script requires it. Change-Id: I60bc7dbd57e7415089f5b14bf470ceffa1dcb581
* Fix use-art-*.Hiroshi Yamauchi2014-06-271-5/+5
| | | | | | Apply s/ART_DALVIK_CACHE_DIR/ART_TARGET_DALVIK_CACHE_DIR/. Change-Id: Ie052b824826c5e919c5526763aa4eb5a3e49cbec
* Fix test-art-target errorBrian Carlstrom2014-06-251-2/+6
| | | | Change-Id: If1f800a056b3f95252037163784ab3ae26d9fa6d
* Multilib ART host.Ian Rogers2014-06-241-269/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add missing parens to Makefile rule.Nicolas Geoffray2014-06-181-1/+1
| | | | Change-Id: I5bff24a696a07c734d05d0ee42f3cf6cd57c0904
* Build rules for running run-test with optimizing compiler.Nicolas Geoffray2014-06-161-2/+26
| | | | Change-Id: I9d55c456007403a6a4ffd9da2c70d500b410e51b
* Use HOST_LIBRARY_PATH to access host shared libraries.Ying Wang2014-06-101-2/+2
| | | | | | | | | | | | | With multilib host build, the build system installs host shared libraries to different directories depending on a library's bitness: - HOST_OUT_SHARED_LIBRARIES points to the library path of 64-bit; - 2ND_HOST_OUT_SHARED_LIBRARIES points to the library path of 32-bit; - If you don't care the bitness of the libraries and just want whatever version the librareies are built by default, use HOST_LIBRARY_PATH. Bug:13751317 Change-Id: I58a7ca5988d89b8619a804913461723719c9a873
* Make use of sigchainlib for signal chaining for implicit checksDave Allison2014-05-291-0/+2
| | | | | | | | | | | | | | | | This adds a preload library that overrides sigaction and sigprocmask to implement signal chaining. Signal chaining allows us to chain any signal so that the ART runtime receives it before any signal handler registered in native code by an application. If the ART signal handler doesn't want it, it will pass it on to the user's handler. ART uses signals for null pointer checks, stack overflow checks and suspend points. Also adds an OAT test to test this in isolation. Change-Id: I9545f9f7343774c091410eb810504d9855fd399f
* Move to dalvik.vm.lib.2 to force default to libartBrian Carlstrom2014-05-281-8/+8
| | | | | | | | Bug: 14298175 (cherry picked from commit b9c0c40e1f7eb38337919200f1fa328eaed92c1d) Change-Id: I453d5391d757dcdac1f6fa3b1fb7bc85144177e1
* Add TARGET_2ND_ARCH support for dump-oat-bootBrian Carlstrom2014-05-251-4/+16
| | | | Change-Id: I87f1742f401af37893d336074c53dee92993b769
* Update dump-oat-* and oatdump for new image file layoutBrian Carlstrom2014-05-221-3/+3
| | | | | Bug: 11997009 Change-Id: I30c356f3ea62b1850d17b5c6bf4af4080a466858
* ART: Fix libjavacore dependencyAndreas Gampe2014-05-211-0/+3
| | | | | | Add a dependency for libjavacore for the secondary architecture. Change-Id: I30f07c200e1cbb7d50b026fa6b21d09ab9aadd66
* Merge "Add DALVIKVM_FLAGS to test invocation."Mathieu Chartier2014-05-201-3/+3
|\
| * Add DALVIKVM_FLAGS to test invocation.Mathieu Chartier2014-05-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Now, only gtest don't use these flags. Running tests with GC options e.g: DALVIK_VM="-Xgc:GSS" mm test-art-host-oat Added a --runtime-option to test/run-test which passes the args to the test: test/run-test --runtime-option -Xgc:GSS --runtime-option -XX:UseTLAB 080 Change-Id: Ic928df32cb5aa36d3b0b55456e8b535e82ee9e97
* | Merge "Add use-artd-full."Hiroshi Yamauchi2014-05-201-0/+10
|\ \
| * | Add use-artd-full.Hiroshi Yamauchi2014-05-191-0/+10
| |/ | | | | | | Change-Id: I7bfa2da2870b6b76471d90b4110cbd17347868b0