1# Copyright (C) 2023 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 15load("@gbl//toolchain:build_and_run_tests.bzl", "build_and_run_tests") 16 17test_suite( 18 name = "tests", 19 tests = [ 20 ":build_and_run_tests", 21 # Doc tests does not work for `build_and_run_tests` because it accesses 22 # `../rules_rust/util/process_wrapper` and its path can't be correctly provided as test 23 # data. 24 "@gbl//libstorage:libstorage_doc_test", 25 ], 26) 27 28build_and_run_tests( 29 name = "build_and_run_tests", 30 # We need to re-specify the runtime data needed by tests. 31 data = ["@gbl//libgbl/testdata"], 32 tests = [ 33 "@gbl//:readme_test", 34 "@gbl//efi:test", 35 "@gbl//libabr:libabr_test", 36 "@gbl//libasync:cyclic_executor_test", 37 "@gbl//libasync:libasync_test", 38 "@gbl//libbootimg:libbootimg_test", 39 "@gbl//libbootparams:test", 40 "@gbl//libc:libc_c_test", 41 "@gbl//libc:libc_test", 42 "@gbl//libdttable:libdttable_test", 43 "@gbl//libefi:libefi_test", 44 "@gbl//libefi:mocks_test", 45 "@gbl//libefi_types:libefi_types_test", 46 "@gbl//libelf:relocation_test", 47 "@gbl//liberror:liberror_test", 48 "@gbl//libfastboot:libfastboot_test", 49 "@gbl//libfdt:libfdt_test", 50 "@gbl//libgbl:libgbl_test", 51 "@gbl//libmisc:libmisc_test", 52 "@gbl//libsafemath:libsafemath_test", 53 "@gbl//libstorage:libstorage_test", 54 "@gbl//libutils:test", 55 "@zbi//:zbi_test", 56 ], 57) 58