| # Copyright 2023 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/go/go_library.gni") |
| import("//build/go/go_test.gni") |
| |
| go_library("idle_test_lib") { |
| sources = [ |
| "idle_test.go", |
| "measurepower.go", |
| ] |
| deps = [ "//src/lib/go-benchmarking" ] |
| } |
| |
| go_test("idle_test") { |
| library = ":idle_test_lib" |
| |
| environments = [ |
| { |
| dimensions = { |
| device_type = "Vim3" |
| } |
| tags = [ "power-measurement" ] |
| }, |
| ] |
| } |
| |
| group("idle_test_spec") { |
| testonly = true |
| deps = [ ":idle_test($host_toolchain)" ] |
| } |