blob: 4c87c127f38a7af12dff0ac8c154e4e930011cbe [file] [log] [blame]
# Copyright 2022 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/components.gni")
import("//build/test.gni")
source_set("zxtest") {
testonly = true
sources = [ "zxtest.cc" ]
deps = [
"//sdk/lib/driver/runtime:driver_runtime_cpp",
"//sdk/lib/driver/runtime:driver_runtime_env_cpp",
"//src/devices/lib/driver:driver_runtime",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/sync:sync-cpp",
"//zircon/system/ulib/zxtest",
]
}
source_set("gtest") {
testonly = true
sources = [ "gtest.cc" ]
deps = [
"//sdk/lib/driver/runtime:driver_runtime_env_cpp",
"//src/devices/lib/driver:driver_runtime",
"//third_party/googletest:gtest",
]
}
group("tests") {
testonly = true
deps = [ ":driver-runtime-main-test" ]
}
test("zxtest-test") {
output_name = "driver-runtime-main-test"
sources = [ "zxtest_test.cc" ]
deps = [
":zxtest",
"//sdk/lib/driver/runtime:driver_runtime_cpp",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/sync:sync-cpp",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("driver-runtime-main-test") {
deps = [ ":zxtest-test" ]
}