1# Copyright 2006 The Android Open Source Project 2 3LOCAL_PATH:= $(call my-dir) 4 5include $(CLEAR_VARS) 6LOCAL_SRC_FILES := timetest.c 7LOCAL_MODULE := timetest 8LOCAL_MODULE_TAGS := tests 9LOCAL_FORCE_STATIC_EXECUTABLE := true 10LOCAL_STATIC_LIBRARIES := libc 11include $(BUILD_NATIVE_TEST) 12 13# ----------------------------------------------------------------------------- 14# Unit tests. 15# ----------------------------------------------------------------------------- 16 17test_c_flags := \ 18 -fstack-protector-all \ 19 -g \ 20 -Wall -Wextra \ 21 -Werror \ 22 -fno-builtin \ 23 24test_src_files := \ 25 rtc_test.cpp 26 27include $(CLEAR_VARS) 28LOCAL_MODULE := time-unit-tests 29LOCAL_COMPATIBILITY_SUITE := device-tests 30LOCAL_MODULE_TAGS := tests 31LOCAL_CFLAGS += $(test_c_flags) 32LOCAL_SRC_FILES := $(test_src_files) 33include $(BUILD_NATIVE_TEST) 34 35