summaryrefslogtreecommitdiff
path: root/test/714-invoke-custom-lambda-metafactory
AgeCommit message (Collapse)Author
2022-11-17Run test build: Rename 'experimental' to 'api_level' David Srbecky
The purpose of the 'experimental' flag is to provide named API level. Allow the API level to be string or integer instead. Test: Build artifacts are identical as before. Change-Id: I15a78979783c1a9237ba9814a48171349e4e5a00
2022-11-02Run-tests: Rename "run" files to "run.py" David Srbecky
Make it explicit that they are python files. Make the file attributes non-executable. Test: test.py -b -r --host --optimizing --64 Change-Id: I874c8453032298bcc15dbd1030a3f7c0fd58254f
2022-10-31Remove "exit status" from run-test stdout. David Srbecky
This is left over from bash. The python script already specifies the expected_exit_code, so the stdout line is redundant and confusing (since the process never actually printed such message to stdout). The python runner will still abort if the test's exit code does not match the declared expected value. Test: test.py -r --all-target --optimizing --64 Change-Id: I69555bf959337fde362108f4df0524d66daddd14
2022-10-24Revert^2 "Convert per-test run scripts to python." David Srbecky
This reverts commit 8d6a4e021e1dc4717939e05aee89c9b18e383d12. Reason for revert: Reland Test: test.py -r --all-target Test: diff emitted test commands before and after Change-Id: I8b99d9b3804615f2ebc50171a4368ad87d809300
2022-10-23Revert "Convert per-test run scripts to python." David Srbecky
This reverts commit 895c27039a57ec19efc8f526ac17b1ae28e2edd9. Reason for revert: Breaks tests Change-Id: If7d346b23731d32d1fdf31346bebcb658fbce421
2022-10-23Convert per-test run scripts to python. David Srbecky
Test: test.py -r --all-target Test: diff emitted test commands before and after Change-Id: I05003b5cde0e39ffc7d037ef875a45f13dd83755
2022-10-20Refactor individual run-test build scripts David Srbecky
Follow the same convention as run-test run scripts. The python files shall export build function, rather than doing the work when the script is loaded. This has the advantage that we now pass context/arguments to the function (rather than using environment variables). Test: the generated build artefacts are identical Change-Id: I90e0ef0d2e31b27813042d51d07b5ae132e1e704
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-02-26Use ASM for invoke-custom tests Orion Hodson
Removes the dependency of binary blobs generated by the jack compiler. Fixes the exception chain raised when a bootstrap method returns null. Bug: 73807070 Test: art/test/run-test --host 952-invoke-custom Change-Id: Iac615cdeec342b1b67f50bb1258768e199adff10
2018-02-12Revert^2 "Ensure that run-test preserves exit status" Alex Light
We failed to update the run script for test 134 which would exit non-zero in cases where dex2oat is disabled. This caused the test to fail in some configurations. This reverts commit d8c88c7125b1de357f67d61c31eeef2ecfe17dd9. Reason for revert: Fixed issue with test 134 Test: ./test/testrunner/testrunner.py --host -t 134-nodex2oat-nofallback --no-prebuild --no-relocate Change-Id: I34d0cf1b8968fd7c07f907b9453ddca90ea03605
2018-02-12Revert "Ensure that run-test preserves exit status" Nicolas Geoffray
Fails: test-art-host-run-test-debug-no-prebuild-interp-ac-no-relocate-ntrace-cms-checkjni-picimage-npictest-ndebuggable-no-jvmti-cdex-fast-134-nodex2oat-nofallback32 This reverts commit 1fbd5309858e5f70b5adaa1d70b9e438eaf18d33. Change-Id: I29809f7bb26e4a9d81634bcf24d9ce151a41a583
2018-02-09Ensure that run-test preserves exit status Alex Light
Run-test was squashing the exit status of test programs. This made it less robust then it should be. We also changed several tests that relied on this behavior to instead explicitly check for an expected exit value. Test: ./test.py --host -j50 Change-Id: Ic4455db1ce5f46cf7446f2f29909241d55beb144
2018-02-02ART: Fix call site resolution Orion Hodson
Parameter type resolution should use the target method's DEX file. Bug: 70166093 Test: art/test/run-test --host 714 Change-Id: Ic4961a905144ee85b36d02476506c4078c6cdf7a