Robert Shih | 588f2e6 | 2023-01-04 11:18:49 -0800 | [diff] [blame^] | 1 | # Copyright (C) 2022 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # Widevine test suite for non-GMS partners: go/android-wvts |
| 16 | test_suite_name := wvts |
| 17 | test_suite_tradefed := wvts-tradefed |
| 18 | test_suite_dynamic_config := test/wvts/tools/wvts-tradefed/DynamicConfig.xml |
| 19 | test_suite_readme := test/wvts/tools/wvts-tradefed/README |
| 20 | |
| 21 | $(call declare-1p-target,$(test_suite_dynamic_config),wvts) |
| 22 | $(call declare-1p-target,$(test_suite_readme),wvts) |
| 23 | |
| 24 | include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk |
| 25 | |
| 26 | .PHONY: wvts |
| 27 | wvts: $(compatibility_zip) $(compatibility_tests_list_zip) |
| 28 | $(call dist-for-goals, wvts, $(compatibility_zip) $(compatibility_tests_list_zip)) |
| 29 | |
| 30 | # Arguments; |
| 31 | # 1 - Name of the report printed out on the screen |
| 32 | # 2 - List of apk files that will be scanned to generate the report |
| 33 | # 3 - Format of the report |
| 34 | define generate-coverage-report-wvts |
| 35 | $(hide) mkdir -p $(dir $@) |
| 36 | $(hide) $(PRIVATE_CTS_API_COVERAGE_EXE) -d $(PRIVATE_DEXDEPS_EXE) -a $(PRIVATE_API_XML_DESC) -n $(PRIVATE_NAPI_XML_DESC) -f $(3) -o $@ $(2) |
| 37 | @ echo $(1): file://$$(cd $(dir $@); pwd)/$(notdir $@) |
| 38 | endef |
| 39 | |
| 40 | # Reset temp vars |
| 41 | wvts_api_coverage_dependencies := |
| 42 | wvts_system_api_coverage_dependencies := |
| 43 | wvts-combined-coverage-report := |
| 44 | wvts-combined-xml-coverage-report := |
| 45 | wvts-verifier-coverage-report := |
| 46 | wvts-test-coverage-report := |
| 47 | wvts-system-api-coverage-report := |
| 48 | wvts-system-api-xml-coverage-report := |
| 49 | api_xml_description := |
| 50 | api_text_description := |
| 51 | system_api_xml_description := |
| 52 | napi_xml_description := |
| 53 | napi_text_description := |
| 54 | coverage_out := |
| 55 | dexdeps_exe := |
| 56 | wvts_api_coverage_exe := |
| 57 | wvts_verifier_apk := |
| 58 | android_wvts_zip := |