nelsonli | 3d51ac07 | 2019-07-24 16:25:05 +0800 | [diff] [blame] | 1 | # 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 Shi | c4fa187 | 2020-05-07 09:02:26 -0700 | [diff] [blame^] | 15 | -include external/linux-kselftest/android/kselftest_test_list.mk |
| 16 | -include external/ltp/android/ltp_package_list.mk |
| 17 | |
Dan Shi | 155ffd4 | 2020-03-26 15:55:31 -0700 | [diff] [blame] | 18 | test_suite_name := vts |
| 19 | test_suite_tradefed := vts-tradefed |
Dan Shi | 796ff4f | 2019-09-13 10:05:46 -0700 | [diff] [blame] | 20 | test_suite_readme := test/vts/tools/vts-core-tradefed/README |
Dan Shi | 5e06288 | 2020-02-18 14:59:22 -0800 | [diff] [blame] | 21 | |
Dan Shi | 7d1f8ce | 2020-04-23 16:21:05 -0700 | [diff] [blame] | 22 | # Copy kernel test modules to testcases directories |
| 23 | kernel_test_host_out := $(HOST_OUT_TESTCASES)/vts_kernel_tests |
| 24 | kernel_test_vts_out := $(HOST_OUT)/$(test_suite_name)/android-$(test_suite_name)/testcases/vts_kernel_tests |
| 25 | kernel_test_modules := \ |
| 26 | $(kselftest_modules) \ |
| 27 | ltp \ |
| 28 | $(ltp_packages) |
| 29 | |
| 30 | kernel_test_copy_pairs := \ |
| 31 | $(call target-native-copy-pairs,$(kernel_test_modules),$(kernel_test_vts_out)) \ |
| 32 | $(call target-native-copy-pairs,$(kernel_test_modules),$(kernel_test_host_out)) |
| 33 | |
| 34 | copy_kernel_tests := $(call copy-many-files,$(kernel_test_copy_pairs)) |
| 35 | |
| 36 | # PHONY target to be used to build and test `vts_kernel_tests` without building full vts |
| 37 | .PHONY: vts_kernel_tests |
| 38 | vts_kernel_tests: $(copy_kernel_tests) |
| 39 | |
Dan Shi | 796ff4f | 2019-09-13 10:05:46 -0700 | [diff] [blame] | 40 | include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk |
Dan Shi | 796ff4f | 2019-09-13 10:05:46 -0700 | [diff] [blame] | 41 | |
Dan Shi | 7d1f8ce | 2020-04-23 16:21:05 -0700 | [diff] [blame] | 42 | $(compatibility_zip): $(copy_kernel_tests) |
| 43 | |
Dan Shi | 155ffd4 | 2020-03-26 15:55:31 -0700 | [diff] [blame] | 44 | .PHONY: vts |
Dan Shi | 155ffd4 | 2020-03-26 15:55:31 -0700 | [diff] [blame] | 45 | vts: $(compatibility_zip) |
| 46 | $(call dist-for-goals, vts, $(compatibility_zip)) |
nelsonli | e7b71a1 | 2019-08-14 09:47:21 +0800 | [diff] [blame] | 47 | |
Dan Shi | 155ffd4 | 2020-03-26 15:55:31 -0700 | [diff] [blame] | 48 | tests: vts |