blob: 05b15dd1eef0172cec211302436d1e98f3ce74a6 [file] [log] [blame]
# Copyright 2021 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")
group("tests") {
testonly = true
deps = [
":netstack-error-fidl-tests",
":netstack-fidl-tests",
]
}
tests = [
"debug",
"filter",
"interfaces",
"interfaces-admin",
"neighbor",
"routes",
]
foreach(test, tests) {
name = "netstack-${test}-fidl-test"
fuchsia_test_component(name) {
manifest = "meta/${name}.cml"
deps = [ test ]
}
}
fuchsia_test_package("netstack-fidl-tests") {
test_components = []
foreach(test, tests) {
test_components += [ ":netstack-${test}-fidl-test" ]
}
deps = [
# netemul-sandbox-v2 is used to create hermetic test realms.
"//src/connectivity/network/testing/netemul/service:netemul-sandbox",
# netstack is under test.
"//src/connectivity/network/netstack:component-debug",
# netstack3 is under test.
"//src/connectivity/network/netstack3:component",
]
}
fuchsia_test_component("netstack-interfaces-error-fidl-test") {
manifest = "meta/netstack-interfaces-error-fidl-test.cml"
deps = [ "interfaces:error" ]
}
# TODO(https://fxbug.dev/74868): Merge this with the above package once it is
# supported to configure acceptable error log lines.
fuchsia_test_package("netstack-error-fidl-tests") {
test_components = [ ":netstack-interfaces-error-fidl-test" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
deps = [
# netemul-sandbox-v2 is used to create hermetic test realms.
"//src/connectivity/network/testing/netemul/service:netemul-sandbox",
# netstack is under test.
"//src/connectivity/network/netstack:component-debug",
# netstack3 is under test.
"//src/connectivity/network/netstack3:component",
]
}