1# Copyright (C) 2019 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15 16include trusty/user/app/sample/stats-test/usertests-inc.mk 17 18TRUSTY_USER_TESTS += \ 19 trusty/user/app/sample/app-mgmt-test/client\ 20 trusty/user/app/sample/binder-test/client \ 21 trusty/user/app/sample/binder-test/service \ 22 trusty/user/app/sample/hwcrypto-unittest \ 23 trusty/user/app/sample/hwrng-unittest \ 24 trusty/user/app/sample/manifest-test \ 25 trusty/user/app/sample/memref-test \ 26 trusty/user/app/sample/memref-test/lender \ 27 trusty/user/app/sample/memref-test/receiver \ 28 trusty/user/app/sample/timer \ 29 trusty/user/app/sample/spi/swspi-srv \ 30 trusty/user/app/sample/spi/swspi-test \ 31 trusty/user/app/sample/skel_rust \ 32 trusty/user/app/sample/skel2 \ 33 trusty/user/app/sample/rust_no_std \ 34 35ifneq (true,$(call TOBOOL,$(UNITTEST_COVERAGE_ENABLED))) 36TRUSTY_USER_TESTS += \ 37 trusty/user/app/sample/hwrng-bench 38endif 39 40TRUSTY_RUST_USER_TESTS += \ 41 trusty/user/app/authmgr/authmgr-be/lib \ 42 trusty/user/app/sample/hwcryptohal/common \ 43 trusty/user/app/sample/hwcryptohal/server \ 44 trusty/user/app/sample/hwcryptokey-test \ 45 trusty/user/app/sample/memref-test/rust \ 46 trusty/user/app/sample/rust-hello-world \ 47 48ifeq (true,$(call TOBOOL,$(USER_SCS_ENABLED))) 49TRUSTY_USER_TESTS += \ 50 trusty/user/app/sample/userscs-test/default \ 51 trusty/user/app/sample/userscs-test/custom \ 52 53# TODO: We cannot robustly support trusty apps that opt out of shadow call 54# stacks until support for library variants is added to the SDK. Blocked on 55# https://android-review.googlesource.com/c/trusty/lib/+/1706286 56# USER_COVERAGE_ENABLED is set for fuzzing builds and causes apps to be 57# instrumented to track coverage. When user shadow call stacks are enabled 58# system wide, even apps that opt out are linked against the sanitizer 59# coverage runtime that uses shadow call stacks which causes crashes. 60ifeq (false,$(call TOBOOL,$(USER_COVERAGE_ENABLED))) 61# TODO: This app requires a libc without shadow call stacks which we cannot 62# currently provide for the reasons stated in the comment above. 63# TRUSTY_USER_TESTS += \ 64# trusty/user/app/sample/userscs-test/disabled \ 65 66endif 67endif # USER_SCS_ENABLED 68 69ifneq (,$(findstring arm,$(TRUSTY_USER_ARCH))) 70TRUSTY_USER_TESTS += \ 71 trusty/user/app/sample/prebuilts-test \ 72 73endif 74 75TRUSTY_LOADABLE_USER_TASKS += \ 76 trusty/user/app/sample/app-mgmt-test/boot-start-srv \ 77 trusty/user/app/sample/app-mgmt-test/dev-only-srv \ 78 trusty/user/app/sample/app-mgmt-test/never-start-srv \ 79 trusty/user/app/sample/app-mgmt-test/port-start-srv \ 80 trusty/user/app/sample/app-mgmt-test/port-start-fail-srv \ 81 trusty/user/app/sample/app-mgmt-test/restart-srv \ 82 trusty/user/app/sample/app-mgmt-test/port-waiter-srv \ 83 trusty/user/app/sample/storage-test \ 84