platform_hardware_libhardware/tests/keymaster/Android.mk
Kenny Root 8467a6d291 Enhance keymaster tests
Check the key values of successful attempts.

For imported keys, the key values should match the
input values when they're returned.

For generated keys, the modulus size should be correct and the public
exponent should be correct.

Bug: 6736252
Bug: http://code.google.com/p/android/issues/detail?id=34212
Change-Id: I37ed97d36ebfbe4301b43426129928bcb53c39f8
2012-08-09 12:12:28 -07:00

31 lines
560 B
Makefile

# Build the keymaster unit tests
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
keymaster_test.cpp
# Note that "bionic" is needed because of stlport
LOCAL_C_INCLUDES := \
bionic \
external/gtest/include \
external/openssl/include \
external/stlport/stlport
LOCAL_SHARED_LIBRARIES := \
liblog \
libutils \
libcrypto \
libstlport \
libhardware
LOCAL_STATIC_LIBRARIES := \
libgtest \
libgtest_main
LOCAL_MODULE := keymaster_test
LOCAL_MODULE_TAGS := tests
include $(BUILD_EXECUTABLE)