blob: 31c82d9afe7ac5a06a15ff973835f7c419de18bb [file] [log] [blame]
# Copyright 2020 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
import("//build/test.gni")
group("tests") {
testonly = true
deps = [ ":arch-tests($host_toolchain)" ]
}
if (is_host) {
test("arch-tests") {
sources = [
"arm64-smccc-tests.cc",
"arm64-system-tests.cc",
"bug-tests.cc",
"cpuid-basic-tests.cc",
"cpuid-corpus-tests.cc",
"fake-cpuid-tests.cc",
"fake-msr-tests.cc",
"nop-tests.cc",
"paging-tests.cc",
"power-tests.cc",
"riscv64-feature-tests.cc",
"speculation-tests.cc",
]
deps = [
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
"//zircon/kernel/lib/arch",
"//zircon/kernel/lib/arch/testing",
"//zircon/system/ulib/hwreg",
"//zircon/system/ulib/zx",
]
}
}
if (is_kernel) {
source_set("kernel-tests") {
sources = [ "random-tests.cc" ]
deps = [
"//zircon/kernel/lib/arch",
"//zircon/kernel/lib/unittest",
]
}
}