diff options
author | dcashman <dcashman@google.com> | 2016-03-07 10:32:05 -0800 |
---|---|---|
committer | dcashman <dcashman@google.com> | 2016-03-14 10:42:31 -0700 |
commit | 16d6e19fcb5f50ad38a569253c1a4e6ea849e3b5 (patch) | |
tree | 241b360fbe464510f5efa99f0a2cb4a266f5ea82 /tests/kernel.config/Android.mk | |
parent | 3fa224edef81d5bccc6522c8340118364e29b673 (diff) | |
download | extras-16d6e19fcb5f50ad38a569253c1a4e6ea849e3b5.tar.gz |
Migrate aslr test to gtest.
Create tests which test the values of mmap_rnd_bits, and
mmap_rnd_compat_bits, if applicable, and verify that the address space
is randomized as expected given the provided values.
Also add a pair of tests to CTS that enforce that the observed entropy
is at least as high as a designated value. That value will start as our
default value, which also corresponds to the maximum value of some
configurations.
Packaging of executables along with a nativetest suite is not supported,
so add a dummy nativetest suite, scrape_mmap_addr, which ensure that the
executables are present along with the given tests at predictable
locations.
(cherry-pick of internal commit: d661642651a6689c76d3f575b4b5dbf04e6b75bd)
Bug: 26512380
Change-Id: I8c4a68f3d10a57f9a51bdc6084df622cf8517b51
Diffstat (limited to 'tests/kernel.config/Android.mk')
-rw-r--r-- | tests/kernel.config/Android.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/kernel.config/Android.mk b/tests/kernel.config/Android.mk index 7a02521a..fc90f669 100644 --- a/tests/kernel.config/Android.mk +++ b/tests/kernel.config/Android.mk @@ -16,6 +16,7 @@ test_c_flags := \ # Required Tests cts_src_files := \ + aslr_test.cpp \ multicast_test.cpp \ pstore_test.cpp \ sysvipc_test.cpp \ @@ -24,6 +25,7 @@ cts_src_files := \ # Required plus Recommended Tests test_src_files := \ $(cts_src_files) \ + aslr_rec_test.cpp \ mmc_max_speed_test.cpp \ cts_executable := CtsKernelConfigTestCases @@ -68,3 +70,10 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk include $(BUILD_HOST_NATIVE_TEST) endif # ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64)) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES := \ + scrape_mmap_addr.cpp + +LOCAL_MODULE := scrape_mmap_addr +include $(BUILD_NATIVE_TEST) |