| # 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/drivers/fhcp_test_package.gni") |
| import("//build/test.gni") |
| |
| test("sample-test-bin") { |
| output_name = "fhcp-sample-test" |
| sources = [ "sample-test.cc" ] |
| deps = [ "//zircon/system/ulib/zxtest" ] |
| } |
| |
| fuchsia_component("fhcp-sample-test-cmp") { |
| testonly = true |
| manifest = "meta/sample-test.cml" |
| component_name = "fhcp-sample-test" |
| deps = [ ":sample-test-bin" ] |
| } |
| |
| fhcp_test_package("fhcp-sample-touchpad-test") { |
| test_types = [ |
| "functional", |
| "performance", |
| ] |
| device_categories = [ |
| { |
| category = "input" |
| subcategory = "touchpad" |
| }, |
| { |
| category = "bluetooth" |
| subcategory = "" |
| }, |
| ] |
| test_components = [ ":fhcp-sample-test-cmp" ] |
| test_specs = { |
| environments = [ |
| { |
| dimensions = { |
| device_type = "AEMU" |
| } |
| tags = [ "fhcp-automated" ] |
| }, |
| ] |
| } |
| } |
| |
| fhcp_test_package("fhcp-sample-camera-test") { |
| test_types = [ "functional" ] |
| device_categories = [ |
| { |
| category = "imaging" |
| subcategory = "camera" |
| }, |
| ] |
| test_components = [ ":fhcp-sample-test-cmp" ] |
| test_specs = { |
| environments = [ |
| { |
| dimensions = { |
| device_type = "AEMU" |
| } |
| tags = [ "fhcp-automated" ] |
| }, |
| { |
| dimensions = { |
| device_type = "Intel NUC Kit NUC7i5DNHE" |
| } |
| tags = [ "fhcp-automated" ] |
| }, |
| { |
| dimensions = { |
| device_type = "Intel NUC Kit NUC11TNHv5" |
| } |
| tags = [ "fhcp-automated" ] |
| }, |
| ] |
| } |
| } |
| |
| fhcp_test_package("fhcp-sample-misc-test") { |
| test_types = [ "functional" ] |
| device_categories = [ |
| { |
| category = "misc" |
| subcategory = "" |
| }, |
| ] |
| test_components = [ ":fhcp-sample-test-cmp" ] |
| test_specs = { |
| environments = [ |
| { |
| dimensions = { |
| device_type = "AEMU" |
| } |
| tags = [ "fhcp-automated" ] |
| }, |
| { |
| dimensions = { |
| device_type = "Intel NUC Kit NUC7i5DNHE" |
| } |
| tags = [ "fhcp-automated" ] |
| }, |
| { |
| dimensions = { |
| device_type = "Intel NUC Kit NUC11TNHv5" |
| } |
| tags = [ "fhcp-automated" ] |
| }, |
| ] |
| } |
| } |
| |
| fhcp_test_package("fhcp-sample-misc-manual-test") { |
| test_types = [ "functional" ] |
| device_categories = [ |
| { |
| category = "misc" |
| subcategory = "" |
| }, |
| ] |
| test_components = [ ":fhcp-sample-test-cmp" ] |
| test_specs = { |
| environments = [ |
| { |
| dimensions = { |
| device_type = "AEMU" |
| } |
| tags = [ "fhcp-manual" ] |
| }, |
| { |
| dimensions = { |
| device_type = "Intel NUC Kit NUC7i5DNHE" |
| } |
| tags = [ "fhcp-manual" ] |
| }, |
| { |
| dimensions = { |
| device_type = "Intel NUC Kit NUC11TNHv5" |
| } |
| tags = [ "fhcp-manual" ] |
| }, |
| ] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":fhcp-sample-camera-test", |
| ":fhcp-sample-misc-manual-test", |
| ":fhcp-sample-misc-test", |
| ":fhcp-sample-touchpad-test", |
| ] |
| } |