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/cast-auth/usertests-inc.mk
17include trusty/user/app/keymaster/usertests-inc.mk
18include trusty/user/app/keymint/usertests-inc.mk
19include trusty/user/app/sample/usertests-inc.mk
20include trusty/user/app/secretkeeper/usertests-inc.mk
21include trusty/user/app/storage/usertests-inc.mk
22
23ifeq (false,$(call TOBOOL,$(CONFIRMATIONUI_DISABLED)))
24include trusty/user/app/confirmationui/usertests-inc.mk
25endif
26
27TRUSTY_USER_TESTS += \
28	trusty/user/base/app/acvp \
29	trusty/user/base/app/apploader/tests \
30	trusty/user/base/app/crash-test \
31	trusty/user/base/app/crash-test/crasher \
32	trusty/user/base/app/device_tree/tests \
33	trusty/user/base/lib/dlmalloc/test \
34	trusty/user/base/lib/dlmalloc/test/srv \
35	trusty/user/base/app/metrics/test/crasher \
36	trusty/user/base/app/hwaes-unittest \
37	trusty/user/base/lib/hwbcc/test \
38	trusty/user/base/lib/keymaster/test \
39	trusty/user/base/lib/libc-trusty/test \
40	trusty/user/base/lib/libstdc++-trusty/test \
41	trusty/user/base/lib/smc/tests \
42	trusty/user/base/lib/tipc/test/main \
43	trusty/user/base/lib/tipc/test/srv \
44	trusty/user/base/lib/uirq/test \
45	trusty/user/base/app/cfi-test \
46	trusty/user/base/app/cfi-test/cfi-crasher \
47
48ifneq (true,$(call TOBOOL,$(UNITTEST_COVERAGE_ENABLED)))
49TRUSTY_USER_TESTS += \
50	trusty/user/base/app/hwaes-benchmark \
51	trusty/user/base/app/swaes-benchmark
52endif
53
54ifeq (false,$(call TOBOOL,$(CONFIRMATIONUI_DISABLED)))
55TRUSTY_USER_TESTS += \
56	trusty/user/base/lib/secure_fb/test
57endif
58
59ifeq (true,$(call TOBOOL,$(USER_COVERAGE_ENABLED)))
60TRUSTY_USER_TESTS += \
61	trusty/user/base/lib/sancov/test/srv \
62
63endif
64
65ifeq (true,$(call TOBOOL,$(USER_HWASAN_ENABLED)))
66TRUSTY_USER_TESTS += \
67	trusty/user/base/lib/hwasan/test \
68
69endif
70
71ifeq (false,$(call TOBOOL,$(KERNEL_32BIT)))
72ifeq (false,$(call TOBOOL,$(USER_32BIT)))
73TRUSTY_USER_TESTS += \
74	trusty/user/base/lib/scudo/test \
75	trusty/user/base/lib/scudo/test/srv \
76
77endif
78endif
79
80TRUSTY_LOADABLE_USER_TASKS += \
81	trusty/user/base/app/apploader/tests/version_test_apps/v1 \
82	trusty/user/base/app/apploader/tests/version_test_apps/v2 \
83	trusty/user/base/app/apploader/tests/version_test_apps/v3 \
84	trusty/user/base/app/apploader/tests/mmio_test_apps/allowed \
85	trusty/user/base/app/apploader/tests/mmio_test_apps/bad_uuid \
86	trusty/user/base/app/apploader/tests/mmio_test_apps/bad_range_low \
87	trusty/user/base/app/apploader/tests/mmio_test_apps/bad_range_high \
88	trusty/user/base/app/apploader/tests/encryption_test_apps/encrypted_app/encryption_optional \
89	trusty/user/base/app/apploader/tests/encryption_test_apps/encrypted_app/encryption_required \
90	trusty/user/base/app/apploader/tests/encryption_test_apps/unencrypted_app/encryption_optional \
91	trusty/user/base/app/apploader/tests/encryption_test_apps/unencrypted_app/encryption_required \
92	trusty/user/base/app/apploader/tests/integrity_test_app \
93
94TRUSTY_LOADABLE_USER_TESTS += \
95	trusty/user/base/app/trusty-crasher \
96