summaryrefslogtreecommitdiff
path: root/tools/build_linux_bionic_tests.sh
Commit message (Collapse)AuthorAgeFilesLines
* Remove TODOs that won't be addressed.Martin Stjernholm2020-11-261-1/+0
| | | | | | | | | | | | The intention was to make TARGET_BUILD_UNBUNDLED work in a full platform tree as well, to be able to remove the conditional that checks for framework/base. However, there is other logic in Soong that checks that directory and the combination doesn't work well. It's not worth the effort to sort that out. Test: N/A - comment changes only Bug: 159109002 Change-Id: Ib20fab3ddc24bc0429602275b094f4209e845faa
* Enable TARGET_BUILD_UNBUNDLED in master-art (reland).Martin Stjernholm2020-06-241-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the way to disable assumptions in the build system that a full system image is to be built. Soong internally checks for the absence of frameworks/base to detect a reduced master-art tree and disable some dependencies. That check is at odds with TARGET_BUILD_UNBUNDLED=true, so for now let's enable TARGET_BUILD_UNBUNDLED only on the same condition. This relands https://r.android.com/1337182 with changes in two testrunner scripts that were missed. Test: art/tools/buildbot-build.sh --host on AOSP master and master-art Test: art/tools/buildbot-build.sh --target on AOSP master and master-art Test: m installclean && art/build/apex/runtests.sh on AOSP master and master-art Test: rm -rf out && \ art/test/testrunner/run_build_test_target.py art-linux-bionic-x64 on AOSP master and master-art Test: art/test/testrunner/run_build_test_target.py art-test on AOSP master and master-art Test: art/test/testrunner/testrunner.py --target --64 --optimizing && \ art/tools/run-gtests.sh in test chroot on device on AOSP master and master-art Test: art/tools/golem/build-target.sh \ --machine-type=android-armv8 --golem=art-jit on AOSP master and master-art Bug: 159109002 Bug: 157549171 Change-Id: Ie98af1098ea1132d3db7ed0a8bf47b54e0848e57
* Revert "Enable TARGET_BUILD_UNBUNDLED in master-art."Martin Stjernholm2020-06-231-10/+2
| | | | | | | | | | | | | Reason for revert: Breaks several test systems that need TARGET_BUILD_UNBUNDLED. Reverted Changes: I0a5023be9:Add scaffolding for Runtime (Bionic) SDK. I085dc634a:Enable TARGET_BUILD_UNBUNDLED in master-art. I2f68dff3e:Avoid stderr warnings from Bionic in the run tests... I98f93d501:Drop Bionic from the tree - should now use prebuil... I9c5c7edd4:Use prebuilt Runtime (Bionic) APEX and SDK (reland... Id6513d953:Update mainline prebuilts to build 6582130. Change-Id: If20c9df9f4498f60e24c6a9b1ca3d991292d564f
* Enable TARGET_BUILD_UNBUNDLED in master-art.Martin Stjernholm2020-06-221-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is the way to disable assumptions in the build system that a full system image is to be built. Soong internally checks for the absence of frameworks/base to detect a reduced master-art tree and disable some dependencies. That check is at odds with TARGET_BUILD_UNBUNDLED=true, so for now let's enable TARGET_BUILD_UNBUNDLED only on the same condition. Test: art/tools/buildbot-build.sh on AOSP master and master-art Test: m installclean && art/build/apex/runtests.sh on AOSP master and master-art Test: rm -rf out && \ art/test/testrunner/run_build_test_target.py art-linux-bionic-x64 on AOSP master and master-art Test: art/test/testrunner/testrunner.py --target --64 --optimizing && \ art/tools/run-gtests.sh in test chroot on device on AOSP master and master-art Test: art/tools/golem/build-target.sh \ --machine-type=android-armv8 --golem=art-jit on AOSP master and master-art Bug: 159109002 Bug: 157549171 Change-Id: I085dc634a9c6e00ee53ae052b151d778cd18fd49
* Revert "Use TARGET_BUILD_UNBUNDLED in ART test builds."Martin Stjernholm2020-06-161-4/+2
| | | | | | | | | | This reverts the remaining bits of https://r.android.com/1324611. It's known to cause duplicate make modules in some cases when sdk_version is specified. Test: TH Bug: 157549171 Change-Id: Ia27a6415886820f67582eef791d2e4d4ca172527
* Use TARGET_BUILD_UNBUNDLED in ART test builds.Martin Stjernholm2020-06-111-2/+4
| | | | | | | | | | | | | | This is the way to disable assumptions in the build system that a full system image is to be built. Test: rm -rf out && \ art/test/testrunner/run_build_test_target.py art-linux-bionic-x64 Test: art/test/testrunner/testrunner.py --target --64 --optimizing && \ art/tools/run-gtests.sh in test chroot on device Test: art/tools/golem/build-target.sh --machine-type=android-armv8 --golem=art-jit Bug: 157549171 Change-Id: I053d38985a9a840cac36cabc0bb5e1f945e9ca7f
* Host gtests: Use the apex boot image instead of core.art.David Srbecky2020-03-261-1/+1
| | | | | | | | Closely mirror the behaviour of target tests. Test: m test-art-host-gtest Bug: 147817558 Change-Id: If9a1d34cef022fa93c9c09c8f31adc26ac71afdc
* Copy ubsan runtime prebuilt when building tests.Ivan Lozano2020-02-211-0/+1
| | | | | | | | | | The UBSan runtime might be required if sanitizers with diagnostics are enabled in components. This adds the prebuilt to the out path such that the built binaries can depend on it. Bug: 148289941 Test: art/test/testrunner/run_build_test_target.py art-linux-bionic-x64 Change-Id: Ibf8d4a38781838690bd1211550925700ea3d57f3
* ART: Rename timeout_dumper to signal_dumperAndreas Gampe2019-06-111-1/+1
| | | | | | | | | To reflect the more broad applicability. Bug: 134837513 Test: m test-art-host Test: manual (change timeout) Change-Id: I1206bd7b2be351ca2efae3564b677c28ea484766
* Add buildbot target using linux_bionic zipapexAlex Light2018-12-101-0/+1
| | | | | | | | | | Adds art-linux-bionic-x64-zipapex target config. This target uses binaries from the com.android.runtime.host zipapex to execute the art run-test suite. Test: ./test/testrunner/run_build_test_target.py -j72 art-linux-bionic-x64-zipapex Bug: 120436895 Change-Id: Ie0cb1b7489f698dfb4f7f6d01a4c99701343cfff
* Revert "Disable running run-test with linux_bionic"Alex Light2018-11-191-2/+3
| | | | | | | | | | | | | | | | | | | The build_linux_bionic_tests.sh script was using incorrect environment variables causing it to fail to build all required libraries when run on the bots. Reason for revert: Fixed issue with running linux_bionic run-tests on the bots. This reverts commit 1d77a70bc0e1138dbd4a57375f34854bcdb26780. Test: cd <android-root>; # don't do envsetup or lunch ./art/test/testrunner/run_build_test_target.py -j80 art-linux-bionic-x64 Bug: 119673278 Bug: 119687007 Change-Id: I6f484d0d2e2accbfab6bd90c510915d5e2eeb64d
* Add timeout_dumper to linux_bionic buildAlex Light2018-11-151-0/+1
| | | | | | | | | | timeout_dumper is required to run run-tests in an environment without gdb. That includes the host-bionic build. Test: ./art/test/testrunner/run_build_test_target.py -j72 art-linux-bionic-x64 Bug: 118778408 Change-Id: I5c049470dcde8763ef16f8287f03cd0a5803cb88
* Enable building art and tests with linux_bionicAlex Light2018-11-061-0/+101
A linux_bionic built runtime can be created by modifying the $OUT_DIR/soong/soong.config json file to add a '"Host_bionic": true' entry and then running the following command: % m --skip-make $OUT_DIR/soong/host/linux_bionic-x86/<target-file> A script 'tools/build_linux_bionic_tests.sh' was also added that will build linux-bionic versions of host-test related files. Also modify tests so they can be run. Currently all run-tests pass when run on a linux_bionic host build. All gtests pass except for the following 9 tests: ArmVIXLAssemblerTest.VixlJniHelpers ArmVIXLAssemblerTest.VixlLoadFromOffset ArmVIXLAssemblerTest.VixlStoreToOffset DwarfTest.DebugFrame DwarfTest.DebugFrame64 DwarfTest.x86_64_RegisterMapping DwarfTest.DebugLine DwarfTest.DebugLineSpecialOpcodes DwarfTest.DebugInfo Since these tests must be run manually without the standard (makefile-based) testrunner it's not clear yet whether these failures are important or what must be done to fix them. Several tests had dependencies on the actual location of the libart library that needed to be fixed, these tests might as well. Test: ./tools/build_linux_bionic_tests.sh Test: ./test/testrunner/testrunner.py --no-build --host --64 --run-test-option=--bionic Test: find $OUT_DIR/soong/host/linux_bionic-x86/nativetest64 -mindepth 2 -type f | while read abc; do $abc; done | tee all-tests.txt Test: tail -n +0 -f all-tests.txt | grep FAILED Bug: 31559095 Bug: 118778408 Change-Id: I5fae4e54371e7410678619f18fcb54a3bd34e9b0