blob: befde870991494e8a19ffb85d723af62f77891a5 [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 Shic4fa1872020-05-07 09:02:26 -070015-include external/linux-kselftest/android/kselftest_test_list.mk
16-include external/ltp/android/ltp_package_list.mk
17
Dan Shiab42cd02020-10-08 10:10:17 -070018include $(BUILD_SYSTEM)/tasks/tools/vts_package_utils.mk
19
Dan Shi155ffd42020-03-26 15:55:31 -070020test_suite_name := vts
21test_suite_tradefed := vts-tradefed
Dan Shi796ff4f2019-09-13 10:05:46 -070022test_suite_readme := test/vts/tools/vts-core-tradefed/README
Dan Shi5e062882020-02-18 14:59:22 -080023
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
Yihan Donge45ff682022-03-25 13:57:05 +080038test_suite_extra_deps := $(copy_kernel_tests)
39
Dan Shi7d1f8ce2020-04-23 16:21:05 -070040# PHONY target to be used to build and test `vts_kernel_tests` without building full vts
41.PHONY: vts_kernel_tests
42vts_kernel_tests: $(copy_kernel_tests)
43
Dan Shi796ff4f2019-09-13 10:05:46 -070044include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk
Dan Shi796ff4f2019-09-13 10:05:46 -070045
Dan Shi155ffd42020-03-26 15:55:31 -070046.PHONY: vts
Dan Shifd480242021-10-04 11:04:14 -070047vts: $(compatibility_zip) $(compatibility_tests_list_zip)
48$(call dist-for-goals, vts, $(compatibility_zip) $(compatibility_tests_list_zip))
nelsonlie7b71a12019-08-14 09:47:21 +080049
Dan Shi155ffd42020-03-26 15:55:31 -070050tests: vts