blob: 5201b1b475b62195f4501d71903a183ed3f01fdb [file] [log] [blame]
Robert Shih588f2e62023-01-04 11:18:49 -08001# 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
16test_suite_name := wvts
17test_suite_tradefed := wvts-tradefed
18test_suite_dynamic_config := test/wvts/tools/wvts-tradefed/DynamicConfig.xml
19test_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
24include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk
25
26.PHONY: wvts
27wvts: $(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
34define 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 $@)
38endef
39
40# Reset temp vars
41wvts_api_coverage_dependencies :=
42wvts_system_api_coverage_dependencies :=
43wvts-combined-coverage-report :=
44wvts-combined-xml-coverage-report :=
45wvts-verifier-coverage-report :=
46wvts-test-coverage-report :=
47wvts-system-api-coverage-report :=
48wvts-system-api-xml-coverage-report :=
49api_xml_description :=
50api_text_description :=
51system_api_xml_description :=
52napi_xml_description :=
53napi_text_description :=
54coverage_out :=
55dexdeps_exe :=
56wvts_api_coverage_exe :=
57wvts_verifier_apk :=
58android_wvts_zip :=