1# Copyright 2016 The Android Open Source Project 2 3LOCAL_PATH:= $(call my-dir) 4 5# ----------------------------------------------------------------------------- 6# Unit tests. 7# ----------------------------------------------------------------------------- 8 9test_c_flags := \ 10 -fstack-protector-all \ 11 -g \ 12 -Wall -Wextra \ 13 -Werror \ 14 -fno-builtin \ 15 16# Required Tests 17cts_src_files := \ 18 logger_test.cpp \ 19 multicast_test.cpp \ 20 nfs_test.cpp \ 21 sysvipc_test.cpp \ 22 23# Required plus Recommended Tests 24# TODO: move aslr_test.cpp back to cts_src_files b/36888825 25test_src_files := \ 26 $(cts_src_files) \ 27 aslr_test.cpp \ 28 aslr_rec_test.cpp \ 29 mmc_max_speed_test.cpp \ 30 pstore_test.cpp \ 31 32include $(CLEAR_VARS) 33LOCAL_MODULE := kernel-config-unit-tests 34LOCAL_MODULE_TAGS := tests 35LOCAL_CFLAGS := $(test_c_flags) 36LOCAL_CFLAGS += -DHAS_KCMP 37LOCAL_SRC_FILES := $(test_src_files) 38LOCAL_SHARED_LIBRARIES := libbase 39include $(BUILD_NATIVE_TEST) 40 41include $(CLEAR_VARS) 42LOCAL_MODULE := CtsKernelConfigTestCases 43LOCAL_MODULE_TAGS := optional 44LOCAL_CFLAGS := $(test_c_flags) 45LOCAL_CFLAGS += -DHAS_KCMP 46LOCAL_SRC_FILES := $(cts_src_files) 47LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest 48LOCAL_MULTILIB := both 49LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 50LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 51LOCAL_SHARED_LIBRARIES := libbase 52LOCAL_STATIC_LIBRARIES := libgtest libgtest_main 53 54LOCAL_COMPATIBILITY_SUITE := cts vts10 55LOCAL_CTS_TEST_PACKAGE := android.kernel.config 56include $(BUILD_CTS_EXECUTABLE) 57 58include $(CLEAR_VARS) 59LOCAL_SRC_FILES := \ 60 scrape_mmap_addr.cpp 61 62LOCAL_MODULE := scrape_mmap_addr 63LOCAL_CFLAGS := -Wall -Werror 64include $(BUILD_NATIVE_TEST) 65