This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 149
/
Makefile.tests
132 lines (122 loc) · 4.84 KB
/
Makefile.tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# First include the GoogleTest library module definitions.
include $(LOCAL_PATH)/distrib/googletest/Android.mk
EMULATOR_UNITTESTS_SOURCES := \
android/avd/util_unittest.cpp \
android/base/containers/HashUtils_unittest.cpp \
android/base/containers/PodVector_unittest.cpp \
android/base/containers/PointerSet_unittest.cpp \
android/base/containers/ScopedPointerSet_unittest.cpp \
android/base/containers/StringVector_unittest.cpp \
android/base/containers/TailQueueList_unittest.cpp \
android/base/EintrWrapper_unittest.cpp \
android/base/files/PathUtils_unittest.cpp \
android/base/files/ScopedFd_unittest.cpp \
android/base/files/ScopedStdioFile_unittest.cpp \
android/base/Log_unittest.cpp \
android/base/memory/LazyInstance_unittest.cpp \
android/base/memory/MallocUsableSize_unittest.cpp \
android/base/memory/ScopedPtr_unittest.cpp \
android/base/memory/QSort_unittest.cpp \
android/base/misc/HttpUtils_unittest.cpp \
android/base/misc/StringUtils_unittest.cpp \
android/base/misc/Utf8Utils_unittest.cpp \
android/base/sockets/ScopedSocket_unittest.cpp \
android/base/sockets/SocketDrainer_unittest.cpp \
android/base/sockets/SocketWaiter_unittest.cpp \
android/base/String_unittest.cpp \
android/base/StringFormat_unittest.cpp \
android/base/StringView_unittest.cpp \
android/base/synchronization/ConditionVariable_unittest.cpp \
android/base/synchronization/Lock_unittest.cpp \
android/base/synchronization/MessageChannel_unittest.cpp \
android/base/system/System_unittest.cpp \
android/base/threads/Thread_unittest.cpp \
android/base/threads/ThreadStore_unittest.cpp \
android/emulation/CpuAccelerator_unittest.cpp \
android/filesystems/ext4_utils_unittest.cpp \
android/filesystems/fstab_parser_unittest.cpp \
android/filesystems/partition_types_unittest.cpp \
android/filesystems/ramdisk_extractor_unittest.cpp \
android/filesystems/testing/TestSupport.cpp \
android/kernel/kernel_utils_unittest.cpp \
android/opengl/EmuglBackendList_unittest.cpp \
android/opengl/EmuglBackendScanner_unittest.cpp \
android/opengl/emugl_config_unittest.cpp \
android/opengl/GpuFrameBridge_unittest.cpp \
android/qt/qt_setup.cpp \
android/qt/qt_setup_unittest.cpp \
android/utils/aconfig-file_unittest.cpp \
android/utils/bufprint_unittest.cpp \
android/utils/dirscanner_unittest.cpp \
android/utils/eintr_wrapper_unittest.cpp \
android/utils/file_data_unittest.cpp \
android/utils/format_unittest.cpp \
android/utils/host_bitness_unittest.cpp \
android/utils/path_unittest.cpp \
android/utils/property_file_unittest.cpp \
android/utils/x86_cpuid_unittest.cpp \
android/wear-agent/PairUpWearPhone_unittest.cpp \
android/wear-agent/testing/WearAgentTestUtils.cpp \
android/wear-agent/WearAgent_unittest.cpp \
telephony/gsm_unittest.cpp \
telephony/gsm.c \
ifeq (windows,$(HOST_OS))
EMULATOR_UNITTESTS_SOURCES += \
android/base/files/ScopedHandle_unittest.cpp \
android/base/system/Win32Utils_unittest.cpp \
android/utils/win32_cmdline_quote_unittest.cpp \
endif
$(call start-emulator-program, emulator_unittests)
LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) $(LOCAL_PATH)/include
LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
LOCAL_CFLAGS += -O0
LOCAL_STATIC_LIBRARIES += \
libandroid-wear-agent \
emulator-common \
emulator-libext4_utils \
emulator-libsparse \
emulator-libselinux \
emulator-zlib \
emulator-libgtest
$(call end-emulator-program)
$(call start-emulator64-program, emulator64_unittests)
LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) $(LOCAL_PATH)/include
LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
LOCAL_CFLAGS += -O0
LOCAL_STATIC_LIBRARIES += \
lib64android-wear-agent \
emulator64-common \
emulator64-libext4_utils \
emulator64-libsparse \
emulator64-libselinux \
emulator64-zlib \
emulator64-libgtest
$(call end-emulator-program)
# Android skin unit tests
ANDROID_SKIN_UNITTESTS := \
android/skin/keycode_unittest.cpp \
android/skin/keycode-buffer_unittest.cpp \
android/skin/rect_unittest.cpp \
android/skin/region_unittest.cpp \
$(call start-emulator-program, android_skin_unittests)
LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) $(LOCAL_PATH)/include
LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
LOCAL_SRC_FILES := $(ANDROID_SKIN_UNITTESTS)
LOCAL_CFLAGS += -O0
LOCAL_STATIC_LIBRARIES += \
emulator-libui \
emulator-common \
emulator-libgtest
$(call end-emulator-program)
$(call start-emulator64-program, android64_skin_unittests)
LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) $(LOCAL_PATH)/include
LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
LOCAL_SRC_FILES := $(ANDROID_SKIN_UNITTESTS)
LOCAL_CFLAGS += -O0
LOCAL_STATIC_LIBRARIES += \
emulator64-libui \
emulator64-common \
emulator64-libgtest
$(call end-emulator-program)