• 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-test-inc.mk
17
18# the test_os VM does not include any TAs by default
19# (except for the test TAs that are included by virt-test-inc.mk)
20#
21# tests in Trusty are mostly declared as TRUSTY_LOADABLE_USER_TESTS,
22# they also are included by default as builtin apps
23# (unless the top-level makefile initializes TRUSTY_BUILTIN_USER_TESTS,
24#  see documentation in trusty/kernel/app/trusty/user-tasks.mk)
25#
26# for virt payload, loadable TAs are generally not applicable
27# (apploader interface is not a stable ABI yet).
28# So apploader should generally be disabled.
29#
30# the Trusty build system however makes it complicated to disable
31# apploader service while still declaring tests as loadable.
32# as a short-term workaround, the test-vm will include apploader service
33# TODO(b/) evolve `trusty/kernel/app/trusty/user-tasks.mk` to support
34# disabling apploader service and rebalancing loadable test as builtin tests
35TRUSTY_BUILTIN_USER_TASKS := \
36	trusty/user/base/app/apploader \
37
38ifeq (true,$(call TOBOOL,$(USER_COVERAGE_ENABLED)))
39TRUSTY_ALL_USER_TASKS += \
40	trusty/user/base/app/coverage \
41
42endif
43
44ifeq (true,$(call TOBOOL,$(UNITTEST_COVERAGE_ENABLED)))
45TRUSTY_ALL_USER_TASKS += \
46	trusty/user/base/app/line-coverage \
47
48endif
49