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/app/hwaes-benchmark \
38	trusty/user/base/app/swaes-benchmark \
39	trusty/user/base/lib/hwbcc/test \
40	trusty/user/base/lib/keymaster/test \
41	trusty/user/base/lib/libc-trusty/test \
42	trusty/user/base/lib/libstdc++-trusty/test \
43	trusty/user/base/lib/smc/tests \
44	trusty/user/base/lib/tipc/test/main \
45	trusty/user/base/lib/tipc/test/srv \
46	trusty/user/base/lib/uirq/test \
47	trusty/user/base/app/cfi-test \
48	trusty/user/base/app/cfi-test/cfi-crasher \
49
50
51ifeq (false,$(call TOBOOL,$(CONFIRMATIONUI_DISABLED)))
52TRUSTY_USER_TESTS += \
53	trusty/user/base/lib/secure_fb/test
54endif
55
56ifeq (true,$(call TOBOOL,$(USER_COVERAGE_ENABLED)))
57TRUSTY_USER_TESTS += \
58	trusty/user/base/lib/sancov/test/srv \
59
60endif
61
62ifeq (true,$(call TOBOOL,$(USER_HWASAN_ENABLED)))
63TRUSTY_USER_TESTS += \
64	trusty/user/base/lib/hwasan/test \
65
66endif
67
68ifeq (false,$(call TOBOOL,$(KERNEL_32BIT)))
69ifeq (false,$(call TOBOOL,$(USER_32BIT)))
70TRUSTY_USER_TESTS += \
71	trusty/user/base/lib/scudo/test \
72	trusty/user/base/lib/scudo/test/srv \
73
74endif
75endif
76
77TRUSTY_LOADABLE_USER_TASKS += \
78	trusty/user/base/app/apploader/tests/version_test_apps/v1 \
79	trusty/user/base/app/apploader/tests/version_test_apps/v2 \
80	trusty/user/base/app/apploader/tests/version_test_apps/v3 \
81	trusty/user/base/app/apploader/tests/mmio_test_apps/allowed \
82	trusty/user/base/app/apploader/tests/mmio_test_apps/bad_uuid \
83	trusty/user/base/app/apploader/tests/mmio_test_apps/bad_range_low \
84	trusty/user/base/app/apploader/tests/mmio_test_apps/bad_range_high \
85	trusty/user/base/app/apploader/tests/encryption_test_apps/encrypted_app/encryption_optional \
86	trusty/user/base/app/apploader/tests/encryption_test_apps/encrypted_app/encryption_required \
87	trusty/user/base/app/apploader/tests/encryption_test_apps/unencrypted_app/encryption_optional \
88	trusty/user/base/app/apploader/tests/encryption_test_apps/unencrypted_app/encryption_required \
89
90TRUSTY_LOADABLE_USER_TESTS += \
91	trusty/user/base/app/trusty-crasher \
92