platform_build/core
Dan Willemsen d07ba4e2a6 Implement LOCAL_TEST_DATA to ship data with tests
This can be used to ship source data as test artifacts next to native
tests. It works for both local builds and the test bundles using
package_modules.mk.

You just specify a file list relative to the local directory, and those
files will be copied next to the executable under
/data/nativetest*/<module>/...:

  LOCAL_MODULE := mytest
  LOCAL_TEST_DATA := data/file1 file2

  /data/nativetest/mytest/mytest
  /data/nativetest/mytest/data/file1
  /data/nativetest/mytest/file2

If the data is in another directory, you may also specify a different
prefix for the source files:

  LOCAL_TEST_DATA := external/skia:resources/f.xml

  /data/nativetest/skia_test/resources/f.xml

And there's a new convenience macro to find a list of files in this
format:

  LOCAL_TEST_DATA := $(call find-test-data-in-subdirs,external/skia,"*.xml",resources)

I'll expand this to native benchmarks and fuzz tests in a later change,
since they don't have their own module classes yet.

Bug: 30564705
Test: m -j minikin_tests; ls $OUT/data/nativetest*/minikin_tests
Test: m -j continuous_native_tests dist; zipinfo -1 out/dist/*continuous_native_tests*.zip
Change-Id: Ic76a7b62e7f567f259c4ab1510ee97d26600ba9a
2016-12-13 17:18:36 -08:00
..
clang Remove configuration exported from Soong 2016-10-31 15:48:00 -07:00
combo Remove global linker search paths 2016-09-09 11:01:15 -07:00
no_java_path
tasks Use legacy-test instead of core-junit 2016-12-09 15:21:45 +00:00
aapt2.mk
android_manifest.mk
apicheck_msg_current.txt
apicheck_msg_last.txt
aux_config.mk introduce AUX build class of targets 2016-08-02 08:06:28 -07:00
aux_executable.mk introduce AUX build class of targets 2016-08-02 08:06:28 -07:00
aux_static_library.mk introduce AUX build class of targets 2016-08-02 08:06:28 -07:00
aux_toolchain.mk introduce AUX build class of targets 2016-08-02 08:06:28 -07:00
base_rules.mk Implement LOCAL_TEST_DATA to ship data with tests 2016-12-13 17:18:36 -08:00
binary.mk Remove aidl, proto, objc from soong_problems 2016-12-05 16:38:14 -08:00
build-system.html Fix build system documentation example 2016-05-08 19:24:58 -07:00
build_id.mk
build_rro_package.mk Install runtime resource overlay without subdir. 2016-10-05 10:03:28 +01:00
ccache.mk
checktree
cleanbuild.mk Merge "Only update previous product config when changed" am: 2fcacb5a22 am: 5f381cfcb2 2016-09-17 02:41:50 +00:00
cleanspec.mk
clear_vars.mk Implement LOCAL_TEST_DATA to ship data with tests 2016-12-13 17:18:36 -08:00
config.mk Merge "Soong now exports AIDL_CPP" 2016-12-06 02:25:36 +00:00
config_sanitizers.mk Export variable for device sanitize arch to Soong 2016-11-02 15:20:25 -07:00
configure_local_jack.mk
configure_module_stem.mk
copy_headers.mk Prohibit host modules from using LOCAL_COPY_HEADERS 2016-11-28 13:46:17 -08:00
cxx_stl_setup.mk Fix building static linux binaries 2016-09-13 17:48:07 +00:00
definitions.mk Implement LOCAL_TEST_DATA to ship data with tests 2016-12-13 17:18:36 -08:00
device.mk
dex_preopt.mk resolve merge conflicts of 3f7c348 to nyc-mr1-dev-plus-aosp 2016-06-29 15:43:54 -07:00
dex_preopt_libart.mk Merge "Generate SHA-1 build ID for host-generated *.oat files (2/2)." am: 5ccc874ba1 am: 53502853b0 2016-10-13 13:16:41 +00:00
dex_preopt_libart_boot.mk Merge "Generate SHA-1 build ID for host-generated *.oat files (2/2)." 2016-10-13 12:52:31 +00:00
dex_preopt_odex_install.mk Merge "Replace usages of my_register_name with my_all_targets" am: 077d9d5fe7 am: e373117cac 2016-09-21 02:28:59 +00:00
distdir.mk
dpi_specific_apk.mk Merge "Make apks depend on their certificates" am: f0a465c2cb 2016-05-17 04:08:25 +00:00
droiddoc.mk resolve merge conflicts of dd9aee1 to stage-aosp-master 2016-07-29 14:15:14 -07:00
dumpvar.mk introduce AUX build class of targets 2016-08-02 08:06:28 -07:00
dynamic_binary.mk Add NATIVE_TESTS class, move host native tests 2016-05-24 12:43:16 -07:00
envsetup.mk Prohibit host modules from using LOCAL_COPY_HEADERS 2016-11-29 20:42:37 +00:00
executable.mk Record module type statistics 2016-07-29 19:58:35 +00:00
executable_internal.mk Add basic VNDK support in Make 2016-11-28 13:46:17 -08:00
executable_prefer_symlink.mk Remove HOST_PREFER_32_BIT 2016-09-02 13:20:52 -07:00
filter_symbols.sh
find-jdk-tools-jar.sh
fuzz_test.mk Create sub-directory for fuzzers under nativetest. 2016-09-02 13:25:59 -07:00
goma.mk goma.mk: do not start goma compiler_proxy if NOSTART_GOMA is set. 2016-09-13 13:13:52 +09:00
help.mk
host_dalvik_java_library.mk Fix bad JACK_PLUGIN variable 2016-09-21 10:54:42 +02:00
host_dalvik_static_java_library.mk Record module type statistics 2016-07-29 19:58:35 +00:00
host_executable.mk Remove HOST_PREFER_32_BIT 2016-09-02 13:20:52 -07:00
host_executable_internal.mk Add NATIVE_TESTS class, move host native tests 2016-05-24 12:43:16 -07:00
host_fuzz_test.mk Record module type statistics 2016-07-29 19:58:35 +00:00
host_java_library.mk Add targets for building individual modules using javac 2016-09-19 13:38:51 +01:00
host_java_library_common.mk
host_native_test.mk Record module type statistics 2016-07-29 19:58:35 +00:00
host_prebuilt.mk Record module type statistics 2016-07-29 19:58:35 +00:00
host_shared_library.mk Remove HOST_PREFER_32_BIT 2016-09-02 13:20:52 -07:00
host_shared_library_internal.mk
host_shared_test_lib.mk Finish refactoring tests to NATIVE_TESTS 2016-06-22 00:27:54 -07:00
host_static_library.mk Remove HOST_PREFER_32_BIT 2016-09-02 13:20:52 -07:00
host_static_library_internal.mk
host_static_test_lib.mk Record module type statistics 2016-07-29 19:58:35 +00:00
host_test_internal.mk Finish refactoring tests to NATIVE_TESTS 2016-06-22 00:27:54 -07:00
install_jni_libs.mk
install_jni_libs_internal.mk Build: Skip JNI lib symlink in second-stage build 2016-12-06 17:56:29 -08:00
jack-default.args Disable Jack's NNode cache 2016-12-06 15:00:03 +01:00
java.mk Fix bad JACK_PLUGIN variable 2016-09-21 10:54:42 +02:00
java_common.mk Fix link_type checking 2016-09-15 14:40:39 -07:00
java_library.mk Record module type statistics 2016-07-29 19:58:35 +00:00
LINUX_KERNEL_COPYING
local_vndk.mk Add basic VNDK support in Make 2016-11-28 13:46:17 -08:00
main.mk Move some configuration from main.mk to config.mk 2016-11-10 03:32:37 +00:00
Makefile build_image: add support for specifying number of inodes 2016-12-06 21:07:23 -08:00
module_arch_supported.mk
multi_prebuilt.mk Record module type statistics 2016-07-29 19:58:35 +00:00
multilib.mk
native_benchmark.mk resolve merge conflicts of dd9aee1 to stage-aosp-master 2016-07-29 14:15:14 -07:00
native_test.mk Record module type statistics 2016-07-29 19:58:35 +00:00
ninja.mk Split (ninja|soong).mk into config and rule portions 2016-11-09 17:53:33 -08:00
ninja_config.mk Fix vendor/google/build/ninja_config.mk 2016-11-10 19:41:27 -08:00
node_fns.mk
notice_files.mk Fix PDK dupbuild issues 2016-12-09 21:15:41 -08:00
package.mk Record module type statistics 2016-07-29 19:58:35 +00:00
package_internal.mk Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES 2016-11-29 11:12:56 -08:00
pathmap.mk Add transition support library to docs path to fix build am: 9c535433df 2016-09-13 02:27:19 +00:00
pdk_config.mk Replace core-junit with legacy-test 2016-11-30 13:50:56 +00:00
pdk_fusion_modules.mk
phony_package.mk Record module type statistics 2016-07-29 19:58:35 +00:00
post_clean.mk Remove incremental workaround for aapt overlays 2016-09-12 20:30:12 -07:00
prebuilt.mk Record module type statistics 2016-07-29 19:58:35 +00:00
prebuilt_internal.mk Merge "Revert "Revert "Check prebuilt sources during checkbuild""" 2016-10-30 22:14:23 +00:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product-graph.mk
product.mk Remove variables exported by Soong 2016-10-18 17:26:07 -07:00
product_config.mk Merge "Add tool to run kati for all products" am: 480678e220 am: 652c4b4001 2016-10-05 23:04:28 +00:00
proguard.emma.flags
proguard.flags
proguard.jacoco.flags
proguard_basic_keeps.flags
proguard_tests.flags
root.mk
sdk_font.mk
setup_one_odex.mk resolve merge conflicts of 0976590 to nyc-mr1-dev-plus-aosp 2016-09-12 16:58:12 +01:00
shared_library.mk Record module type statistics 2016-07-29 19:58:35 +00:00
shared_library_internal.mk Add basic VNDK support in Make 2016-11-28 13:46:17 -08:00
shared_test_lib.mk Finish refactoring tests to NATIVE_TESTS 2016-06-22 00:27:54 -07:00
soong.mk Split (ninja|soong).mk into config and rule portions 2016-11-09 17:53:33 -08:00
soong_config.mk Pass eng product varible to soong 2016-12-08 10:05:55 -08:00
static_java_library.mk resolve merge conflicts of dd9aee1 to stage-aosp-master 2016-07-29 14:15:14 -07:00
static_library.mk Record module type statistics 2016-07-29 19:58:35 +00:00
static_library_internal.mk Cleanup NATIVE_COVERAGE, PRIVATE_ARFLAGS 2016-10-21 16:40:19 -07:00
static_test_lib.mk Record module type statistics 2016-07-29 19:58:35 +00:00
target_test_internal.mk Update NDK gtest lib names. 2016-09-08 23:10:20 -07:00
version_defaults.mk resolve merge conflicts of e04c941 to stage-aosp-master 2016-12-06 11:32:41 +01:00