From 1b73bfbd97aa8bc44a67cbdcafd7eb990f031da6 Mon Sep 17 00:00:00 2001 From: Robert Shih Date: Wed, 4 Jan 2023 11:18:49 -0800 Subject: [PATCH] Resubmit: Initial add wvts to build [ Merge of pa/2264578 ] Test: make wvts Bug: 209663123 Change-Id: If1382ed06a93bc34d327ee88bf46ff290e84f786 --- core/main.mk | 3 +++ core/tasks/wvts.mk | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 core/tasks/wvts.mk diff --git a/core/main.mk b/core/main.mk index 0453cdac86..656343f6a0 100644 --- a/core/main.mk +++ b/core/main.mk @@ -92,6 +92,9 @@ $(shell mkdir -p $(EMPTY_DIRECTORY) && rm -rf $(EMPTY_DIRECTORY)/*) -include test/catbox/tools/build/config.mk # CTS-Root-specific config. -include test/cts-root/tools/build/config.mk +# WVTS-specific config. +-include test/wvts/tools/build/config.mk + # Clean rules .PHONY: clean-dex-files diff --git a/core/tasks/wvts.mk b/core/tasks/wvts.mk new file mode 100644 index 0000000000..a79f61386b --- /dev/null +++ b/core/tasks/wvts.mk @@ -0,0 +1,30 @@ +# Copyright (C) 2022 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. + +# Widevine test suite for non-GMS partners: go/android-wvts +ifneq ($(wildcard test/wvts/tools/wvts-tradefed/README),) +test_suite_name := wvts +test_suite_tradefed := wvts-tradefed +test_suite_dynamic_config := test/wvts/tools/wvts-tradefed/DynamicConfig.xml +test_suite_readme := test/wvts/tools/wvts-tradefed/README + +$(call declare-1p-target,$(test_suite_dynamic_config),wvts) +$(call declare-1p-target,$(test_suite_readme),wvts) + +include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk + +.PHONY: wvts +wvts: $(compatibility_zip) $(compatibility_tests_list_zip) +$(call dist-for-goals, wvts, $(compatibility_zip) $(compatibility_tests_list_zip)) +endif