diff options
author | Mark Salyzyn <salyzyn@google.com> | 2016-01-14 20:20:16 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-14 20:20:16 +0000 |
commit | cf24211761057d9d39cfb3cf69d3c7ee70c3ef33 (patch) | |
tree | 59e3b303244e76a02218ab1637cee28635ed9a13 /tests/timetest/Android.mk | |
parent | a6d7c72a086c994ad271b25f239765fef46a8e60 (diff) | |
parent | 7ba54e14c7bcb40169233571ebfb32821c6abba7 (diff) | |
download | extras-cf24211761057d9d39cfb3cf69d3c7ee70c3ef33.tar.gz |
Merge "Add time rtc ioctl tests" am: 83ced5b8fb
am: 7ba54e14c7
* commit '7ba54e14c7bcb40169233571ebfb32821c6abba7':
Add time rtc ioctl tests
Diffstat (limited to 'tests/timetest/Android.mk')
-rw-r--r-- | tests/timetest/Android.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/timetest/Android.mk b/tests/timetest/Android.mk index 05e21fbe..b2a1aa5b 100644 --- a/tests/timetest/Android.mk +++ b/tests/timetest/Android.mk @@ -1,6 +1,7 @@ # Copyright 2006 The Android Open Source Project LOCAL_PATH:= $(call my-dir) + include $(CLEAR_VARS) LOCAL_SRC_FILES:= timetest.c @@ -17,3 +18,25 @@ LOCAL_STATIC_LIBRARIES := libc include $(BUILD_EXECUTABLE) +# ----------------------------------------------------------------------------- +# Unit tests. +# ----------------------------------------------------------------------------- + +test_c_flags := \ + -fstack-protector-all \ + -g \ + -Wall -Wextra \ + -Werror \ + -fno-builtin \ + -std=gnu++11 + +test_src_files := \ + rtc_test.cpp + +include $(CLEAR_VARS) +LOCAL_MODULE := time-unit-tests +LOCAL_MODULE_TAGS := tests +LOCAL_CFLAGS += $(test_c_flags) +LOCAL_SRC_FILES := $(test_src_files) +include $(BUILD_NATIVE_TEST) + |