1# Copyright (C) 2020 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# This file lists userspace tests
16[
17    porttest("com.android.trusty.rust.storage_unittest_aidl.test", timeout=(60 * 30)),
18    # userspace tests using storage available at early boot
19    needs(
20        [
21            # init->check->clean is a side-effectful test chain
22            # so we use a composite test to preserve order
23            compositetest(
24                name="com.android.storage-unittest.tp-init-check-clean",
25                sequence=[
26                    porttest("com.android.storage-unittest.tp.init"),
27                    reboot(),
28                    porttest("com.android.storage-unittest.tp.check"),
29                    porttest("com.android.storage-unittest.tp.clean"),
30
31                ]
32            ),
33            porttest("com.android.storage-unittest.tp", timeout=(60 * 30)),
34            compositetest(
35                name="com.android.storage-unittest.tdea-init-check-clean",
36                sequence=[
37                    porttest("com.android.storage-unittest.tdea.init"),
38                    reboot(),
39                    porttest("com.android.storage-unittest.tdea.check"),
40                    porttest("com.android.storage-unittest.tdea.clean"),
41                ]
42            ),
43            porttest("com.android.storage-unittest.tdea", timeout=(60 * 30)),
44        ],
45        storage_boot=True,
46    ),
47
48    # Storage tests which require a nonsecure file
49    # These need Android or a similar resource to run, simple RPMB
50    # in testrunner is insufficient.
51    needs(
52        [
53            porttest("com.android.trusty.rust.storage_unittest_aidl_ns.test", timeout=(60 * 30)),
54            porttest("com.android.storage-unittest.nsp", timeout=(60 * 30)),
55            porttest("com.android.storage-unittest.td"),
56            porttest("com.android.storage-unittest.tdp", timeout=(60 * 30)),
57        ],
58        storage_full=True,
59    ),
60    porttest("com.android.trusty.storage.bench").type(BENCHMARK).needs(storage_full=True),
61]
62