blob: 4e83de59745f2df49a240708aac4397c479ab915 [file] [log] [blame]
nelsonli3d51ac072019-07-24 16:25:05 +08001# Copyright (C) 2019 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
Dan Shi155ffd42020-03-26 15:55:31 -070015test_suite_name := vts
16test_suite_tradefed := vts-tradefed
Dan Shi796ff4f2019-09-13 10:05:46 -070017test_suite_readme := test/vts/tools/vts-core-tradefed/README
Dan Shi5e062882020-02-18 14:59:22 -080018
19# TODO(b/149249068): Clean up after all VTS tests are converted.
20vts_test_artifact_paths :=
21# Some repo may not include vts project.
22-include test/vts/tools/build/tasks/framework/vts_for_core_suite.mk
23
Dan Shi7d1f8ce2020-04-23 16:21:05 -070024# Copy kernel test modules to testcases directories
25kernel_test_host_out := $(HOST_OUT_TESTCASES)/vts_kernel_tests
26kernel_test_vts_out := $(HOST_OUT)/$(test_suite_name)/android-$(test_suite_name)/testcases/vts_kernel_tests
27kernel_test_modules := \
28 $(kselftest_modules) \
29 ltp \
30 $(ltp_packages)
31
32kernel_test_copy_pairs := \
33 $(call target-native-copy-pairs,$(kernel_test_modules),$(kernel_test_vts_out)) \
34 $(call target-native-copy-pairs,$(kernel_test_modules),$(kernel_test_host_out))
35
36copy_kernel_tests := $(call copy-many-files,$(kernel_test_copy_pairs))
37
38# PHONY target to be used to build and test `vts_kernel_tests` without building full vts
39.PHONY: vts_kernel_tests
40vts_kernel_tests: $(copy_kernel_tests)
41
Dan Shi796ff4f2019-09-13 10:05:46 -070042include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk
Dan Shi796ff4f2019-09-13 10:05:46 -070043
Dan Shi7d1f8ce2020-04-23 16:21:05 -070044$(compatibility_zip): $(copy_kernel_tests)
45
Dan Shi155ffd42020-03-26 15:55:31 -070046.PHONY: vts
Dan Shi5e062882020-02-18 14:59:22 -080047$(compatibility_zip): $(vts_test_artifact_paths)
Dan Shi155ffd42020-03-26 15:55:31 -070048vts: $(compatibility_zip)
49$(call dist-for-goals, vts, $(compatibility_zip))
nelsonlie7b71a12019-08-14 09:47:21 +080050
Dan Shi155ffd42020-03-26 15:55:31 -070051tests: vts