Debian Codegraph @

tests/kernel.config/Android.mk

raw
1 # Copyright 2016 The Android Open Source Project
2
3 LOCAL_PATH:= $(call my-dir)
4
5 # -----------------------------------------------------------------------------
6 # Unit tests.
7 # -----------------------------------------------------------------------------
8
9 test_c_flags := \
10 -fstack-protector-all \
11 -g \
12 -Wall -Wextra \
13 -Werror \
14 -fno-builtin \
15
16 # Required Tests
17 cts_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
25 test_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
32 include $(CLEAR_VARS)
33 LOCAL_MODULE := kernel-config-unit-tests
34 LOCAL_MODULE_TAGS := tests
35 LOCAL_CFLAGS := $(test_c_flags)
36 LOCAL_CFLAGS += -DHAS_KCMP
37 LOCAL_SRC_FILES := $(test_src_files)
38 LOCAL_SHARED_LIBRARIES := libbase
39 include $(BUILD_NATIVE_TEST)
40
41 include $(CLEAR_VARS)
42 LOCAL_MODULE := CtsKernelConfigTestCases
43 LOCAL_MODULE_TAGS := optional
44 LOCAL_CFLAGS := $(test_c_flags)
45 LOCAL_CFLAGS += -DHAS_KCMP
46 LOCAL_SRC_FILES := $(cts_src_files)
47 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
48 LOCAL_MULTILIB := both
49 LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32
50 LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64
51 LOCAL_SHARED_LIBRARIES := libbase
52 LOCAL_STATIC_LIBRARIES := libgtest libgtest_main
53
54 LOCAL_COMPATIBILITY_SUITE := cts vts
55 LOCAL_CTS_TEST_PACKAGE := android.kernel.config
56 include $(BUILD_CTS_EXECUTABLE)
57
58 include $(CLEAR_VARS)
59 LOCAL_SRC_FILES := \
60 scrape_mmap_addr.cpp
61
62 LOCAL_MODULE := scrape_mmap_addr
63 LOCAL_CFLAGS := -Wall -Werror
64 include $(BUILD_NATIVE_TEST)