blob: b2abee5d7c8ed01a445146890c292faa1ff6ea1e [file] [log] [blame]
Keun Soo YIM95997122018-11-29 17:30:35 -08001#
2# Copyright (C) 2018 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# Build rules for VTF (Vendor Test Framework).
18LOCAL_PATH := $(call my-dir)
19
20vtf_tradefed_modules := \
21 compatibility-common-util-tests \
22 compatibility-host-util \
23 compatibility-host-util-tests \
24 compatibility-tradefed-tests \
25 hosttestlib \
26 host-libprotobuf-java-full \
27 loganalysis \
28 tradefed \
Dan Shi855d22f2020-04-04 00:17:58 +000029 vts-tradefed \
Dan Shi2dbc23a2020-03-31 20:34:10 +000030 vts10-tradefed \
31 vts10-tradefed-tests \
Keun Soo YIM95997122018-11-29 17:30:35 -080032
33vtf_tradefed_copy_pairs := \
34 $(foreach f,$(vtf_tradefed_modules),\
35 $(HOST_OUT)/framework/$(f).jar:$(VTF_TOOLS_OUT)/$(f).jar)
36
37vtf_tradefed_additional_deps_copy_pairs := \
Dan Shi2dbc23a2020-03-31 20:34:10 +000038 test/vts/tools/vts-tradefed/etc/vts10-tradefed:$(VTF_TOOLS_OUT)/vts10-tradefed
Keun Soo YIM95997122018-11-29 17:30:35 -080039
40vtf_tradefed_additional_deps_copy_pairs += \
41 $(foreach f,$(VTF_COPY_VTF_BINARY),\
42 test/vts/tools/vts-tradefed/etc/$(f):$(VTF_TESTCASES_OUT)/$(f))
43
44vtf_package_copy_pairs := \
45 $(call copy-many-files,$(vtf_tradefed_copy_pairs)) \
46 $(call copy-many-files,$(vtf_tradefed_additional_deps_copy_pairs)) \
47
48.PHONY: vtf
49vtf: $(vtf_copy_pairs) $(vtf_package_copy_pairs)