summaryrefslogtreecommitdiff
path: root/test/056-const-string-jumbo
AgeCommit message (Collapse)Author
2022-10-25run-test build: Explicitly call generate-sources David Srbecky
Let the scripts explicitly call it rather than making it part of the build system magic. It is much easier now with the context object. Do not spam build log output with non-error messages. Test: Generated artifacts are the same Change-Id: I03b1e317b4f542c27b635ddd9defdd5c0e2bcb3e
2022-06-28Convert run-test bash build scripts to python. David Srbecky
Tests use the build script for two distinct purposes: * Some tests generate their source code before completion. Keep this code in bash for now and rename it "generate-sources". * To customize arguments passed to the default compilation script. Since the default compilation script is in python, make this a normal python call, and add any customization as arguments. This speeds up the run-test compilation. There was small cost to pay due to the switching from python to bash to python. This added up for the thousands of run-test compilations that we do. It also removes the need for argument parser in the default script. We could also remove the data passing via environment (to-do later). It moves the definition to more build-system-like look and feel. Test: The outputs are bit-for-bit identical as before. Change-Id: Idca4181a4676036f06aae0a8f6eea3a3c30d390e
2020-11-10Verify ART run-tests' standard output and standard error separately. Roland Levillain
Introduce expected standard error files for ART run-tests. Collect tests' standard output and standard error separately and check them against the corresponding expectation file. Test: Run ART run-tests on host and device using `testrunner.py`. Test: atest --test-mapping art:all Test: atest --test-mapping cts/hostsidetests/jvmti:all Bug: 171865375 Bug: 147812905 Change-Id: Ie95bec4a4684ff6791d464124ce8976339432d1f
2020-11-05Rename ART run-tests `expected.txt` files as `expected-stdout.txt`. Roland Levillain
This is in preparation for the addition of `expected-stderr.txt` files in all ART run-test directories, which will record the expected standard error for each of these tests, and which will be verified along with `expected-stdout.txt`. Test: Run ART run-tests on host and device using `testrunner.py`. Test: atest --test-mapping art:all Bug: 171865375 Bug: 147812905 Change-Id: I37e3c4b8409475790e2fc63514cdf57156d47ff4
2018-06-26ART: Retire desugar and dx in run-tests Orion Hodson
Run-tests now use d8 for desugaring and dexing. Build scripts no longer have hand written dexer invocations. Bug: 110150973 Bug: 73711890 Test: art/test.py --host --64 -r Test: art/test.py --target --prebuild --optimizing -r Change-Id: Iae2199cf756624c1f045de7777c5ee6432398bd2
2018-05-24ART: Remove jack from test Orion Hodson
Test: art/test.py --host Change-Id: I31b0c0d57d344f54a8c0545fd32c81a893b4ec75
2016-09-20Make javac always use Java 7 when running tests using javac and dx Søren Gjesse
This adds "-source 1.7 -target 1.7" to JAVAC when --build-with-javac-dx is specified. Also make sure that dx is not run when --jvm is passed. Test: art/test/run-test --host --build-with-javac-dx 003-omnibus-opcodes Test: art/test/run-test --host --build-with-javac-dx 005-annotations Test: art/test/run-test --host --build-with-javac-dx 023-many-interfaces Test: art/test/run-test --host --build-with-javac-dx 056-const-string-jumbo Test: art/test/run-test --host --build-with-javac-dx 091-override-package-private-method Test: art/test/run-test --host --build-with-javac-dx 111-unresolvable-exception Test: art/test/run-test --host --build-with-javac-dx 113-multidex Test: art/test/run-test --host --build-with-javac-dx 124-missing-classes Test: art/test/run-test --host --build-with-javac-dx 126-miranda-multidex Test: art/test/run-test --host --build-with-javac-dx 127-checker-secondarydex Test: art/test/run-test --host --build-with-javac-dx 131-structural-change Test: art/test/run-test --host --build-with-javac-dx 138-duplicate-classes-check2 Test: art/test/run-test --host --build-with-javac-dx 303-verification-stress Test: art/test/run-test --host --build-with-javac-dx 551-checker-shifter-operand Test: art/test/run-test --host --build-with-javac-dx 555-checker-regression-x86const Test: art/test/run-test --host 003-omnibus-opcodes Test: art/test/run-test --host 005-annotations Test: art/test/run-test --host 023-many-interfaces Test: art/test/run-test --host 056-const-string-jumbo Test: art/test/run-test --host 091-override-package-private-method Test: art/test/run-test --host 111-unresolvable-exception Test: art/test/run-test --host 113-multidex Test: art/test/run-test --host 124-missing-classes Test: art/test/run-test --host 126-miranda-multidex Test: art/test/run-test --host 127-checker-secondarydex Test: art/test/run-test --host 131-structural-change Test: art/test/run-test --host 138-duplicate-classes-check2 Test: art/test/run-test --host 303-verification-stress Test: art/test/run-test --host 551-checker-shifter-operand Test: art/test/run-test --host 555-checker-regression-x86const Test: art/test/run-test --jvm 003-omnibus-opcodes Test: art/test/run-test --jvm 005-annotations Test: art/test/run-test --jvm 023-many-interfaces Test: art/test/run-test --jvm 056-const-string-jumbo Test: art/test/run-test --jvm 091-override-package-private-method Test: art/test/run-test --jvm 111-unresolvable-exception Test: art/test/run-test --jvm 113-multidex Test: art/test/run-test --jvm 124-missing-classes Test: art/test/run-test --jvm 126-miranda-multidex Test: art/test/run-test --jvm 127-checker-secondarydex Test: art/test/run-test --jvm 131-structural-change Test: art/test/run-test --jvm 138-duplicate-classes-check2 Test: art/test/run-test --jvm 303-verification-stress Test: art/test/run-test --jvm 551-checker-shifter-operand Test: art/test/run-test --jvm 555-checker-regression-x86const Change-Id: I60f8a973c0dd425988abe55223bdef426c772b97
2015-07-08Support compiling run-tests with jack Sebastien Hertz
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 Change-Id: I9eedd0705d1186d28a2acd37ea42a1762cd0ace2
2014-06-22Limit the size of files created by run-test to 2MB. Ian Rogers
In MemMap::MapAnonymous on the host, avoid creating ashmem regions that are backed by files, when the size of the file will be greater than the ulimit. Change-Id: I7cbf2ac59bf5869ed85850bea8d71898f3b7e1c7
2012-07-20fix missing dx in build server. Tsu Chiang Chuang
Change-Id: I18c49c5cc1efc97199cb076dc258c4b9b7a46e8a
2012-06-04Remove explicit dex2oat calls from run-test Brian Carlstrom
Change-Id: If7222e834602bfc1232ac199ab81e7c09c058f43
2012-04-10Fix run-test on host. TDYa127
Change-Id: I44ebb4cdc2f5966be51a063e3c7256ab3016c404
2012-03-10Do not generate run-test out files in $ANDROID_PRODUCT_OUT Brian Carlstrom
If run-test leaves cruft in $ANDROID_PRODUCT_OUT, flashall -w will make the files on the device owned by the system user. This will cause run-test 071-dexfile to fail when run as root. Change-Id: I071a1d52cbbefd0e75556706b473260cb6832fd4
2012-03-06Fix 071-dexfile by having run-test use a unique directory Brian Carlstrom
If userdata.img is flashed, the /data/art-test is owned by the system user. However, 071 requires the directory it runs in to have be owned by the running user (root in eng builds). Change-Id: I5230908291fd2ff6c5ebda98cfc3ef4c7ea7482e
2012-02-16Use debug dex2oatd in run-test Brian Carlstrom
Change-Id: Ief6e78b965081e4c884a48a048fc6d3021ca83bd
2012-02-16user build support for art (2 of 3) Brian Carlstrom
Change-Id: I4696fee58e43db48540e2442c4235fc4bb02d9e3
2012-02-01Fix a few bugs in push-and-run-test-jar. Elliott Hughes
Simon says it's "adb shell mkdir", not "adb mkdir" (which was silently failing). We shouldn't be putting test .jar and .oat files in /system/framework (silently causing --quiet to use out of date code). The runtime has been looking for X.jar.oat given X.jar for some time now (which was silently causing all modes to use out of date code in conjunction with a to-be-fixed bug that's preventing us from recognizing that the .oat file's checksum is out of date). Change-Id: I2421878159f24cc7564faa105a3e795c09929158
2012-01-05Add installd support to dex2oat Brian Carlstrom
Change-Id: Id1a64403ccea7dc2c1e8b8340d33d383d4045a33
2011-12-12Fix regression in vm tests 021 and 082 Ian Rogers
dex2oat defaults to build.art for the image which includes the junit classes used by these tests. At runtime these tests are run with core.art and so the code is missing. Change dex2oat to specify the boot image is core.art. Change-Id: Icd80560ac06798634f47922cc9fb592966f2b511
2011-12-12Revert dex2oat file locking Brian Carlstrom
Effectively "git revert 234da578a2d91ed7f2ef47b2ec23fb0033e2746b" Changed run-test to do dex2oat on the host to eliminate original motivation for dex2oat locking Change-Id: I58d64f9b2ad7cf137df865945dd31361ca57f675
2011-10-25Created --runtime-arg switch for dex2oat to pass arguments to runtime. jeffhao
This replaces the -Xms, -Xmx, and -verbose options. Change-Id: Idc023b6d369bd8b5df932b9f2eb6dbc79d591ab1
2011-10-12Move art content to /data Brian Carlstrom
oat tests, gtests, and run-test content to /data/art-test boot.oat and boot.art to /data/art-cache Change-Id: I68f9f6798bc4ea0596642ff5624f3e77dec6ccbe
2011-10-10Working ClassLoader Brian Carlstrom
Change-Id: Ia1122165e47f846a1d4506111849f830d9f14c1b
2011-10-04Use a test-specific name for each generated file. Elliott Hughes
This lets us run multiple tests in parallel (and know what we've got lying around on our devices). Change-Id: I90ecc4ceaae0ee4b323d861c2b408e2944a2f8c1
2011-10-04Simplify command line arguments Brian Carlstrom
Change-Id: I9d6902b0c447fd8fbe5600fd36139791b2ceefb7
2011-10-03Separate oat from image Brian Carlstrom
Change-Id: If2abdb99826ead14e3465d90ba2acffd89709389
2011-09-30Old tests run with new system. jeffhao
The tests are ported and run with the new system, though many currently don't pass. Some of the tests also need additional fixing to run properly. Change-Id: I3263cf5dcb0fe064a3e6c02e4aa1bb9a067f64c7
2011-09-29Adding old unit tests to test suite. jeffhao
These tests are copied straight over. They'll still run, but they're using the old system. Change-Id: If494519e52ddf858a9febfc55bdae830468cb3c8