forked from openkylin/platform_build
Merge "[VTS] copy ltp and kselftest to testcase folder"
This commit is contained in:
commit
6c04458129
|
@ -21,8 +21,28 @@ vts_test_artifact_paths :=
|
||||||
# Some repo may not include vts project.
|
# Some repo may not include vts project.
|
||||||
-include test/vts/tools/build/tasks/framework/vts_for_core_suite.mk
|
-include test/vts/tools/build/tasks/framework/vts_for_core_suite.mk
|
||||||
|
|
||||||
|
# Copy kernel test modules to testcases directories
|
||||||
|
kernel_test_host_out := $(HOST_OUT_TESTCASES)/vts_kernel_tests
|
||||||
|
kernel_test_vts_out := $(HOST_OUT)/$(test_suite_name)/android-$(test_suite_name)/testcases/vts_kernel_tests
|
||||||
|
kernel_test_modules := \
|
||||||
|
$(kselftest_modules) \
|
||||||
|
ltp \
|
||||||
|
$(ltp_packages)
|
||||||
|
|
||||||
|
kernel_test_copy_pairs := \
|
||||||
|
$(call target-native-copy-pairs,$(kernel_test_modules),$(kernel_test_vts_out)) \
|
||||||
|
$(call target-native-copy-pairs,$(kernel_test_modules),$(kernel_test_host_out))
|
||||||
|
|
||||||
|
copy_kernel_tests := $(call copy-many-files,$(kernel_test_copy_pairs))
|
||||||
|
|
||||||
|
# PHONY target to be used to build and test `vts_kernel_tests` without building full vts
|
||||||
|
.PHONY: vts_kernel_tests
|
||||||
|
vts_kernel_tests: $(copy_kernel_tests)
|
||||||
|
|
||||||
include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk
|
include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk
|
||||||
|
|
||||||
|
$(compatibility_zip): $(copy_kernel_tests)
|
||||||
|
|
||||||
.PHONY: vts
|
.PHONY: vts
|
||||||
$(compatibility_zip): $(vts_test_artifact_paths)
|
$(compatibility_zip): $(vts_test_artifact_paths)
|
||||||
vts: $(compatibility_zip)
|
vts: $(compatibility_zip)
|
||||||
|
|
Loading…
Reference in New Issue