• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2025 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 project/vm-arm-virt-inc.mk
17
18#
19# include list of test TAs for the Trusted HALs
20#
21TRUSTY_RUST_USER_TESTS := \
22	trusty/user/app/authmgr/authmgr-fe \
23	trusty/user/app/sample/hwcryptokey-test \
24	trusty/user/app/storage/test/storage-unittest-aidl \
25	trusty/user/app/storage/test/storage-unittest-aidl/ns \
26	trusty/user/app/authmgr/authmgr-be/lib \
27
28# the test-vm does not include any TAs by default
29# (except for the test TAs that are included by virt-test-inc.mk)
30#
31# tests in Trusty are mostly declared as TRUSTY_LOADABLE_USER_TESTS,
32# they also are included by default as builtin apps
33# (unless the top-level makefile initializes TRUSTY_BUILTIN_USER_TESTS,
34#  see documentation in trusty/kernel/app/trusty/user-tasks.mk)
35#
36# for virt payload, loadable TAs are generally not applicable
37# (apploader interface is not a stable ABI yet).
38# So apploader should generally be disabled.
39#
40# the Trusty build system however makes it complicated to disable
41# apploader service while still declaring tests as loadable.
42# as a short-term workaround, the test-vm will include apploader service
43# TODO(b/) evolve `trusty/kernel/app/trusty/user-tasks.mk` to support
44# disabling apploader service and rebalancing loadable test as builtin tests
45TRUSTY_BUILTIN_USER_TASKS := \
46	trusty/user/base/app/apploader \
47	trusty/user/app/authmgr/authmgr-fe/app \
48
49ifeq (true,$(call TOBOOL,$(USER_COVERAGE_ENABLED)))
50TRUSTY_ALL_USER_TASKS += \
51	trusty/user/base/app/coverage \
52
53endif
54
55ifeq (true,$(call TOBOOL,$(UNITTEST_COVERAGE_ENABLED)))
56TRUSTY_ALL_USER_TASKS += \
57	trusty/user/base/app/line-coverage \
58
59endif
60