diff options
author | Steven Moreland <smoreland@google.com> | 2018-02-23 13:23:44 -0800 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2018-02-26 10:05:05 -0800 |
commit | 1173d5841cc9008680c325686f4a1653a27aa048 (patch) | |
tree | 3ee81bb63dbae3ee5d4f8f56390a4ef77a22092f /tests | |
parent | 8c589a9a18d7488532783ac50245c833d9566cfa (diff) | |
download | gatekeeper-1173d5841cc9008680c325686f4a1653a27aa048.tar.gz |
gatekeeper-unit-tests: mk -> bpandroid-wear-p-preview-2android-p-preview-3android-p-preview-2android-p-preview-1android-o-mr1-iot-release-1.0.1android-o-mr1-iot-release-1.0.0android-o-mr1-iot-preview-8android-o-mr1-iot-preview-7android-n-iot-release-polk-at1android-n-iot-release-lg-thinq-wk7o-mr1-iot-preview-8o-mr1-iot-preview-7
Test: m gatekeeper-unit-tests &&
adb sync &&
adb shell data/nativetest64/gatekeeper-unit-tests/gatekeeper-unit-tests
(still fails)
[ RUN ] GateKeeperDeviceTest.EnrollAndVerifyStress
system/gatekeeper/tests/gatekeeper_device_test.cpp:44: Failure
Expected equality of these values:
0
ret
Which is: -2
Bug: 37512442
Change-Id: Ic7d80b73f848d2ce6581a15e220911b620611787
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Android.bp | 37 | ||||
-rw-r--r-- | tests/Android.mk | 29 |
2 files changed, 37 insertions, 29 deletions
diff --git a/tests/Android.bp b/tests/Android.bp new file mode 100644 index 0000000..2dcfc8b --- /dev/null +++ b/tests/Android.bp @@ -0,0 +1,37 @@ +// +// Copyright (C) 2015 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +cc_test { + name: "gatekeeper-unit-tests", + + cflags: [ + "-g", + "-Wall", + "-Werror", + "-Wno-missing-field-initializers", + ], + + shared_libs: [ + "libgatekeeper", + "libcrypto", + "libhardware", + ], + static_libs: ["libscrypt_static"], + srcs: [ + "gatekeeper_messages_test.cpp", + "gatekeeper_device_test.cpp", + ], +} diff --git a/tests/Android.mk b/tests/Android.mk deleted file mode 100644 index 7fbca99..0000000 --- a/tests/Android.mk +++ /dev/null @@ -1,29 +0,0 @@ -# -# Copyright (C) 2015 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH:= $(call my-dir) - -include $(CLEAR_VARS) -LOCAL_MODULE := gatekeeper-unit-tests -LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk -LOCAL_CFLAGS += -g -Wall -Werror -Wno-missing-field-initializers -LOCAL_SHARED_LIBRARIES := libgatekeeper libcrypto libhardware -LOCAL_STATIC_LIBRARIES := libscrypt_static -LOCAL_C_INCLUDES := external/scrypt/lib/crypto -LOCAL_SRC_FILES := \ - gatekeeper_messages_test.cpp \ - gatekeeper_device_test.cpp -include $(BUILD_NATIVE_TEST) |