diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-12-13 04:14:47 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-12-13 04:14:47 +0000 |
commit | 335ba11c90042a44da126c7024b7e206d93bd9c0 (patch) | |
tree | 83c89f1b8c2b800dc37f6df711d2aa241764cc90 | |
parent | 26e9d1973ddd89ba1920a08dd73b05198998727d (diff) | |
parent | 4a29cb9b257582baa92082f9bd978fdb764414f7 (diff) | |
download | bc-android11-s1-release.tar.gz |
Snap for 6069976 from 4a29cb9b257582baa92082f9bd978fdb764414f7 to rvc-releaseandroid-vts-11.0_r9android-vts-11.0_r8android-vts-11.0_r7android-vts-11.0_r6android-vts-11.0_r5android-vts-11.0_r4android-vts-11.0_r3android-vts-11.0_r2android-vts-11.0_r16android-vts-11.0_r15android-vts-11.0_r14android-vts-11.0_r13android-vts-11.0_r12android-vts-11.0_r11android-vts-11.0_r10android-vts-11.0_r1android-security-11.0.0_r76android-security-11.0.0_r75android-security-11.0.0_r74android-security-11.0.0_r73android-security-11.0.0_r72android-security-11.0.0_r71android-security-11.0.0_r70android-security-11.0.0_r69android-security-11.0.0_r68android-security-11.0.0_r67android-security-11.0.0_r66android-security-11.0.0_r65android-security-11.0.0_r64android-security-11.0.0_r63android-security-11.0.0_r62android-security-11.0.0_r61android-security-11.0.0_r60android-security-11.0.0_r59android-security-11.0.0_r58android-security-11.0.0_r57android-security-11.0.0_r56android-security-11.0.0_r55android-security-11.0.0_r54android-security-11.0.0_r53android-security-11.0.0_r52android-security-11.0.0_r51android-security-11.0.0_r50android-security-11.0.0_r49android-security-11.0.0_r1android-platform-11.0.0_r9android-platform-11.0.0_r8android-platform-11.0.0_r7android-platform-11.0.0_r6android-platform-11.0.0_r5android-platform-11.0.0_r40android-platform-11.0.0_r4android-platform-11.0.0_r39android-platform-11.0.0_r38android-platform-11.0.0_r37android-platform-11.0.0_r36android-platform-11.0.0_r35android-platform-11.0.0_r34android-platform-11.0.0_r33android-platform-11.0.0_r32android-platform-11.0.0_r31android-platform-11.0.0_r30android-platform-11.0.0_r3android-platform-11.0.0_r29android-platform-11.0.0_r28android-platform-11.0.0_r27android-platform-11.0.0_r26android-platform-11.0.0_r25android-platform-11.0.0_r24android-platform-11.0.0_r23android-platform-11.0.0_r22android-platform-11.0.0_r21android-platform-11.0.0_r20android-platform-11.0.0_r2android-platform-11.0.0_r19android-platform-11.0.0_r18android-platform-11.0.0_r17android-platform-11.0.0_r16android-platform-11.0.0_r15android-platform-11.0.0_r14android-platform-11.0.0_r13android-platform-11.0.0_r12android-platform-11.0.0_r11android-platform-11.0.0_r10android-platform-11.0.0_r1android-cts-11.0_r9android-cts-11.0_r8android-cts-11.0_r7android-cts-11.0_r6android-cts-11.0_r5android-cts-11.0_r4android-cts-11.0_r3android-cts-11.0_r2android-cts-11.0_r16android-cts-11.0_r15android-cts-11.0_r14android-cts-11.0_r13android-cts-11.0_r12android-cts-11.0_r11android-cts-11.0_r10android-cts-11.0_r1android-11.0.0_r6android-11.0.0_r5android-11.0.0_r4android-11.0.0_r3android-11.0.0_r25android-11.0.0_r2android-11.0.0_r17android-11.0.0_r1android11-tests-releaseandroid11-security-releaseandroid11-s1-releaseandroid11-releaseandroid11-platform-releaseandroid11-gsi
Change-Id: I9f79ab6eb96aa6405f3244a5a2f44633e8ba7818
-rw-r--r-- | Android.bp | 14 | ||||
-rw-r--r-- | TEST_MAPPING | 7 | ||||
-rw-r--r-- | bc-tests.xml | 26 | ||||
-rwxr-xr-x | run-bc-tests-on-android.sh | 15 |
4 files changed, 62 insertions, 0 deletions
@@ -61,3 +61,17 @@ cc_binary_host { name: "gavinhoward-bc", defaults: ["bc-defaults"], } + +sh_test { + name: "bc-tests", + src: "run-bc-tests-on-android.sh", + filename: "run-bc-tests-on-android.sh", + test_suites: ["general-tests"], + host_supported: true, + device_supported: false, + test_config: "bc-tests.xml", + data: [ + "functions.sh", + "tests/**/*", + ], +} diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 00000000..c05ac950 --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,7 @@ +{ + "presubmit": [ + { + "name": "bc-tests" + } + ] +} diff --git a/bc-tests.xml b/bc-tests.xml new file mode 100644 index 00000000..6d70d3c0 --- /dev/null +++ b/bc-tests.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2019 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<configuration description="Config for running bc-tests through Atest or in Infra"> + <option name="test-suite-tag" value="bc-tests" /> + <!-- This test requires a device, so it's not annotated with a null-device. --> + <test class="com.android.tradefed.testtype.binary.ExecutableHostTest" > + <option name="binary" value="run-bc-tests-on-android.sh" /> + <!-- Test script assumes a relative path with the tests/ folders. --> + <option name="relative-path-execution" value="true" /> + <!-- Tests shouldn't be that long but set 15m to be safe. --> + <option name="per-binary-timeout" value="15m" /> + </test> +</configuration> diff --git a/run-bc-tests-on-android.sh b/run-bc-tests-on-android.sh new file mode 100755 index 00000000..d957a7e8 --- /dev/null +++ b/run-bc-tests-on-android.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Copy the tests across. +adb shell rm -rf /data/local/tmp/bc-tests/ +adb shell mkdir /data/local/tmp/bc-tests/ +adb push tests/ /data/local/tmp/bc-tests/ +adb push functions.sh /data/local/tmp/bc-tests/ + +if tty -s; then + dash_t="-t" +else + dash_t="" +fi + +exec adb shell $dash_t /data/local/tmp/bc-tests/tests/all.sh bc 0 1 0 1 bc |