| # Copyright 2020 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/dart/test.gni") | |
| import("//build/testing/environments.gni") | |
| dart_test("time_sync_test") { | |
| sources = [ "time_sync_test.dart" ] | |
| deps = [ | |
| "//sdk/testing/sl4f/client", | |
| "//third_party/dart-pkg/pub/test", | |
| ] | |
| environments = [ | |
| nuc_env, | |
| { | |
| dimensions = { | |
| device_type = "Astro" | |
| } | |
| }, | |
| ] | |
| # Runs on "main" builders (try and ci) in QEMU environments, but only on x64, | |
| # as we don't currently support Dart on arm64 hosts. | |
| if (is_host && target_cpu == "x64") { | |
| environments += [ emu_env ] | |
| } | |
| } | |
| group("test") { | |
| testonly = true | |
| deps = [ ":time_sync_test($host_toolchain)" ] | |
| } |