summaryrefslogtreecommitdiffstats
path: root/test/run-test
Commit message (Collapse)AuthorAgeFilesLines
* Support compiling run-tests with jackSebastien Hertz2015-07-091-9/+75
| | | | | | | | | | | | | | | | | | | | | | | | This CL adds support to compile run-test source files with jack. When a test needs to rely on class files, we use jill to convert them to a jack library. We need to pass the full classpath to jack containing at least core classes (like java.lang.Object). This means the Android tree must have been compiled with jack first so we find all the necessary classes.jack files. Some tests still rely on dex files generated with the old toolchain. We keep building them this way for the moment and will update them later, when they get ready for Jack. Also updates a few tests dealing with garbage collection to avoid a situation where a reference can be retained by a local DEX register. Bug: 19467889 (cherry picked from commit 19ac0276208f0afef6ba8a4ab34b74a59b8d11d7) Change-Id: Ia5a989b83430ffe8298a869a1da970b756721bb0
* ART: Fix streaming tracing issuesAndreas Gampe2015-06-261-1/+18
| | | | | | | | | | | | 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
* ART: Fix RegisterNative orderAndreas Gampe2015-05-201-0/+3
| | | | | | | | | | | | | | | | | First check for both direct and virtual methods in the current class, then move to the parent. Optimize registration by checking first whether the current method under test is native. This slows down registering implementations in parent classes. Add a CheckJNI warning for this. Add a run-test to check the behavior. Fix host comparison testing. Bug: 19569721 (cherry picked from commit 3f1dc56914177993b1b018bf21ce7d39d7feecda) Change-Id: I61e77117d96310632aad123d7f1279d0f834dc99
* Update script now that optimizing is default.Nicolas Geoffray2015-03-231-2/+2
| | | | | | bug:19872972 Change-Id: I648078483af5a0db3a13b0f94c36d083cbc4d2df
* Unbreak checker.Nicolas Geoffray2015-03-171-1/+1
| | | | Change-Id: Idabb8c04c29d265330ef9ae28c1df01129abe9dd
* [optimizing] Use baseline when debuggable is set.Nicolas Geoffray2015-03-161-1/+3
| | | | | | | | | SSA form conflicts with JDWP's SetValue functionality. Because we do not deopt all the call stack, we may call SetValue on a compiled frame, which doesn't work with optimizing. Simplest solution for now is to just use baseline. Change-Id: I91738b363eec8fef145486bd96681aea73a1baa8
* Revert "Revert "More Makefile fun for --debuggable.""Nicolas Geoffray2015-03-091-1/+5
| | | | | | This reverts commit 9728a930fdf717cca60b48d9c2b715d0eed497fd. Change-Id: Ieca964a793e58f11931f78f50be47a4a9f0dc21f
* Revert "More Makefile fun for --debuggable."Nicolas Geoffray2015-03-091-5/+1
| | | | | | This reverts commit bd648cd3aef1ce82aaaa85924b1178a7f499cc29. Change-Id: I9be508730dc5c25b9d08f914c5628e88bc4aa15b
* More Makefile fun for --debuggable.Nicolas Geoffray2015-03-061-1/+5
| | | | Change-Id: Icd4a4cf53907bf04b0d45211e264c9985045b55c
* Change JIT tests to use interpreter imageMathieu Chartier2015-02-271-1/+1
| | | | | Bug: 19528920 Change-Id: I079cfcca7bb57e492c82a44f104e41228cb33b4f
* Fix jit testsMathieu Chartier2015-02-271-0/+1
| | | | | | | | Missing image suffix was missing causing tests to fail. Also added missing phony targets. Bug: 19524713 Change-Id: Ib40d39b1fc16e1adfdc01744a199ae9b0b562664
* Revert "Revert "Add JIT""Mathieu Chartier2015-02-241-0/+4
| | | | | | | | Added missing EntryPointToCodePointer. This reverts commit a5ca888d715cd0c6c421313211caa1928be3e399. Change-Id: Ia74df0ef3a7babbdcb0466fd24da28e304e3f5af
* Revert "Add JIT"Nicolas Geoffray2015-02-241-4/+0
| | | | | | | | | | | | | | | Sorry, run-test crashes on target: 0-05 12:15:51.633 I/DEBUG (27995): Abort message: 'art/runtime/mirror/art_method.cc:349] Check failed: PcIsWithinQuickCode(reinterpret_cast<uintptr_t>(code), pc) java.lang.Throwable java.lang.Throwable.fillInStackTrace() pc=71e3366b code=0x71e3362d size=ad000000' 10-05 12:15:51.633 I/DEBUG (27995): r0 00000000 r1 0000542b r2 00000006 r3 00000000 10-05 12:15:51.633 I/DEBUG (27995): r4 00000006 r5 b6f9addc r6 00000002 r7 0000010c 10-05 12:15:51.633 I/DEBUG (27995): r8 b63fe1e8 r9 be8e1418 sl b6427400 fp b63fcce0 10-05 12:15:51.633 I/DEBUG (27995): ip 0000542b sp be8e1358 lr b6e9a27b pc b6e9c280 cpsr 40070010 10-05 12:15:51.633 I/DEBUG (27995): Bug: 17950037 This reverts commit 2535abe7d1fcdd0e6aca782b1f1932a703ed50a4. Change-Id: I6f88849bc6f2befed0c0aaa0b7b2a08c967a83c3
* Add JITMathieu Chartier2015-02-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently disabled by default unless -Xjit is passed in. The proposed JIT is a method JIT which works by utilizing interpreter instrumentation to request compilation of hot methods async during runtime. JIT options: -Xjit / -Xnojit -Xjitcodecachesize:N -Xjitthreshold:integervalue The JIT has a shared copy of a compiler driver which is accessed by worker threads to compile individual methods. Added JIT code cache and data cache, currently sized at 2 MB capacity by default. Most apps will only fill a small fraction of this cache however. Added support to the compiler for compiling interpreter quickened byte codes. Added test target ART_TEST_JIT=TRUE and --jit for run-test. TODO: Clean up code cache. Delete compiled methods after they are added to code cache. Add more optimizations related to runtime checks e.g. direct pointers for invokes. Add method recompilation. Move instrumentation to DexFile to improve performance and reduce memory usage. Bug: 17950037 Change-Id: Ifa5b2684a2d5059ec5a5210733900aafa3c51bca
* run-test: enable checker in dev modeCalin Juravle2015-01-271-2/+12
| | | | | | | Also, use explicit flush (instead of passing flush parameter to print) to enable better compatibility across python versions. Change-Id: Iaf294d88e932b778d5dce7f3c2b8eca775849973
* ART: Invoke Checker from run-test scriptsDavid Brazdil2015-01-191-4/+34
| | | | | | | | | | | | | | | This patch moves Checker-based tests of the optimizing compiler into the art/test directory and modifies the run-test scripts to dump the CFG during compilation and to verify the graph using Checker as part of the "running" stage. Outputs generated by running the test and running Checker are concatenated and compared with expected.txt. Checker is invoked only if the test's name name matches the format "<number>-checker-*" and it's currently enabled only for optimizing + host configs. The tests are still invoked on other configs but without Checker. Change-Id: Ib24da808cd4bca66f07e0dbeb913a418065f2859
* ART: Mips64 runtime supportAndreas Gampe2015-01-151-1/+1
| | | | | | Interpret-only Mips64 runtime support. Change-Id: Iee22d0c8c77105d9b2f03a67dc4e09957fe0ab0a
* Follow up on CL 122665.Hiroshi Yamauchi2015-01-131-1/+2
| | | | | | | | | | | | | | | | | | We now do the two-step memory protection strategy (first protect the from space with PROT_READ and later protect it with PROT_NONE) only if the from space is a rosalloc space (excluding the more common bump pointer space case). This strengthens the GC verification for the bump pointer space case as we avoid the case where mutators run while the from space is PROT_READ rather than PROT_NONE. Add a command line flag to override the minimum interval for the hspace compaction for OOM and set it to zero in the gcstress/gcverify run-tests to run the hspace compaction more frequently in tests. Fix some comments. Bug: 18960494 Change-Id: I518b011e026f578e53c4ec269cfb82865b0fae68
* ART: Swap-space in the compilerAndreas Gampe2014-12-221-0/+4
| | | | | | | | | | | Introduce a swap-space and corresponding allocator to transparently switch native allocations to memory backed by a file. Bug: 18596910 (cherry picked from commit 62746d8d9c4400e4764f162b22bfb1a32be287a9) Change-Id: I131448f3907115054a592af73db86d2b9257ea33
* Explicitly give compiler options to test scriptsNicolas Geoffray2014-12-031-0/+4
| | | | | | This makes tests pass when ART_USE_OPTIMIZING_COMPILER=true. Change-Id: I579c0371033435ead6b06830f15c00dbf7e98005
* Add a way to pass GDB commandsMathieu Chartier2014-12-021-0/+5
| | | | | | | | | | | Passing --gdb-arg to run-test sends the arg to GDB, example: test/run-test --host --gdb --gdb-arg "--command=command.txt" 001-HelloWorld Would run the test with the GDB script at command.txt on the host, this is useful for running tests in GDB in a loop. Bug: 17387969 Change-Id: I5ad455159a6d92783eacb17eecbb0f1e670cb4a3
* Increase run-test output on error.Ian Rogers2014-11-231-1/+1
| | | | | | | | On the host with many cores its possible for the message of an abort to be lost due to the amount of debug output. Bug: 18469797 Change-Id: Ibf210fc113166b8cc06ee9aed206780c981d236c
* Fix failure in --no-dex2oat invocation of 425-invokesuper.Nicolas Geoffray2014-11-171-3/+15
| | | | | | | | | | | | | We had two issues: - dexmerger is broken and sometimes produces invalid dex files, thus the test was always failing. b/18051191. - The reason only no-dex2oat caught it is because it doesn't prebuild, and our scripts just do not report an error when the prebuild failed. I also gave up trying to emit the dex2oat error output in the console. I clearly don't speak bash. Change-Id: I34c40902855452ea0f3e0d4733e4149c87236cfe
* Provide an option to run run-tests with a local dalvikvm.Nicolas Geoffray2014-10-291-35/+47
| | | | | | | | 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: PIC testingAndreas Gampe2014-10-281-2/+9
| | | | | | | | | | | 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
* ART: Create and use multiple core imagesAndreas Gampe2014-10-281-2/+9
| | | | | | | | | | | | | 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
* ART: Typo fixAndreas Gampe2014-10-271-1/+1
| | | | Change-Id: If544f02117b6f1bbc1279444c70cb9f2a0534c6f
* ART: Fix test 089Andreas Gampe2014-10-271-4/+4
| | | | | | Another two lines of build failure output that need to be stripped. Change-Id: I85c2a3b3e8553b2f5da8e043dd561ada380ef2fe
* Extra debug output in run-test.Ian Rogers2014-10-271-1/+5
| | | | | | | Dump PATH_MAX and NAME_MAX on failure. Also fix typo in dumping args. Change-Id: I3df0dbc45db0659c975ac86a12f338df2a7291dc
* C++11 related clean-up of DISALLOW_..Ian Rogers2014-10-221-3/+0
| | | | | | | | | | | | | | | | | | Move DISALLOW_COPY_AND_ASSIGN to delete functions. By no having declarations with no definitions this prompts better warning messages so deal with these by correcting the code. Add a DISALLOW_ALLOCATION and use for ValueObject and mirror::Object. Make X86 assembly operand types ValueObjects to fix compilation errors. Tidy the use of iostream and ostream. Avoid making cutils a dependency via mutex-inl.h for tests that link against libart. Push tracing dependencies into appropriate files and mutex.cc. x86 32-bit host symbols size is increased for libarttest, avoid copying this in run-test 115 by using symlinks and remove this test's higher than normal ulimit. Fix the RunningOnValgrind test in RosAllocSpace to not use GetHeap as it returns NULL when the heap is under construction by Runtime. Change-Id: Ia246f7ac0c11f73072b30d70566a196e9b78472b
* ART: Print args in case of run-test build failureAndreas Gampe2014-10-221-0/+2
| | | | | Bug: 17959926 Change-Id: If1a6bf0341248818bef6c2a11e0677803c07ad3f
* ART: Fix run-test scriptAndreas Gampe2014-10-211-3/+3
| | | | | | | Correctly pipe error information to the output file. Bug: 17959926 Change-Id: Ifccf2a2a22517b2523228718be6d2a57250847c2
* Merge "Merge reference-run-test-classes and run-test-jar."Nicolas Geoffray2014-10-141-1/+1
|\
| * Merge reference-run-test-classes and run-test-jar.Nicolas Geoffray2014-10-071-1/+1
| | | | | | | | Change-Id: Ic35e87ffe6ac2d86d8bab89b2dd954ec632df1ea
* | ART: Add smali-based run-testAndreas Gampe2014-10-101-0/+10
|/ | | | | | | | | Add run-test 800 for smali-based tests. To use, drop a smali file into the src/ directory and add a TestCase in src/Main.java. Bug: 17814475 Change-Id: Ica9eb830689862cb3a4ffa0019fbc447c01af744
* Merge host-run-test-jar and push-and-run-test-jar.Nicolas Geoffray2014-10-061-6/+5
| | | | | | | - Too many code duplication between the two files. - Also fix --zygote and --gdb invocations. Change-Id: I1f99320e63a7a0f19ad1ad2b12693901b8c6bb43
* Merge "Merge push-and-run-{prebuilt}-test-jar files."Nicolas Geoffray2014-10-041-7/+2
|\
| * Merge push-and-run-{prebuilt}-test-jar files.Nicolas Geoffray2014-10-031-7/+2
| | | | | | | | | | | | Can't find a reason why those two files forked... Change-Id: I5ef3dd76aa3b2d843c8b4b57365edec3bf2c3f3b
* | Add test for getDeclaredClasses of with missing classBrian Carlstrom2014-10-031-0/+1
|/ | | | | Bug: 17782530 Change-Id: I399621344c3835226c9df9678217fca62cbd5c92
* Fix darwin run-test problemsBrian Carlstrom2014-09-081-3/+3
| | | | | | | | Bug: 17428908 (cherry picked from commit 8a4064e2c0987637b11afcc656478d3113d81618) Change-Id: Ica403bef3e7d93bf6e9197c44b77e39683e04d55
* Really fix tests.Alex Light2014-08-271-0/+20
| | | | | | | | | | | | Remove extra line in Android.run-test.mk. Update junit code in 082 and 021. Set correct bootclasspath for --no-image. Make host core.art depend on dex files being installed. Make 118 pass in the correct bootclasspath. Bug: 17290452 Change-Id: I415eddfa3632ec7eda927abe95925202de193749
* Add run-test support for running without a working patchoat/dex2oatAlex Light2014-08-261-0/+26
| | | | | | | | Also add it to the test-art target. Bug: 17262039 Change-Id: Id31130194c46df66fc48852d6f8884f14cb08db4
* ART: More failure output on run-testAndreas Gampe2014-08-181-0/+3
| | | | Change-Id: Ifdf1516e950117069b3cfa58c4bda03281dad661
* ART: Fix run-test in case of relative TMPDIRAndreas Gampe2014-08-141-0/+8
| | | | | | | | | | | Relative paths should be resolved to absolute paths, as we are chdir-ing in the test. Bug: 16499668 (cherry picked from commit f8b9bbb9680fff693d1056d884c96eaf5360d0d6) Change-Id: Ic7db35e21f519ced77c4ac468d8e909bcb40b24d
* Added --gcstress and --gcverify shortcut flags to run-testAlex Light2014-08-121-0/+22
| | | | Change-Id: Ia11fcbc71488710ca32f397c3c1b19613e294d1e
* ART: Use TMPDIR for test directoriesAndreas Gampe2014-08-061-1/+5
| | | | | Bug: 16499668 Change-Id: I0d3db4697ef7b1706807e7daa5e000bb89df14e0
* Add --always-clean flag to run-test.Alex Light2014-07-301-15/+33
| | | | | | | | | 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
* ART: Native bridge command-line parameterAndreas Gampe2014-07-261-0/+3
| | | | | | | | | | | Add a command-line parameter for the native bridge library, slight refactor/cleanup. Add run-test 115 to test the native bridge interface. Currently the tests are black-listed for the target, as the setup for the test is too complicated in the current infrastructure. Change-Id: I6ccf19485e8c30b96e9f2fd5425278cb1ebd403f
* Use a (somewhat) more documented environment variable.Nicolas Geoffray2014-07-241-4/+4
| | | | | | | I believe OUT is not mandatory to define, whereas ANDROID_PRODUCT_OUT is. Not sure our continuous tests define it. Change-Id: I7cd23971384df265e59587b49760aba29133a59c
* Fix run-test --trace option if --host is specified after.Jeff Hao2014-07-231-1/+6
| | | | Change-Id: I3911428ba762657c4433ab23e60f1771c9ddb2fe