| # Copyright 2020 The Fuchsia Authors |
| # |
| # Use of this source code is governed by a MIT-style |
| # license that can be found in the LICENSE file or at |
| # https://opensource.org/licenses/MIT |
| |
| import("//build/test.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":zxc-tests", |
| ":zxc_unittests($host_toolchain)", |
| ] |
| } |
| |
| test("zxc_unittests") { |
| testonly = true |
| output_name = "zxc_unittests" |
| sources = [ |
| "result_tests.cc", |
| "type_traits_tests.cc", |
| ] |
| deps = [ |
| "//zircon/public/lib/zxc", |
| "//zircon/public/lib/zxtest", |
| ] |
| |
| if (is_fuchsia) { |
| deps += [ "//sdk/lib/fdio" ] |
| } |
| } |
| |
| unittest_package("zxc-tests") { |
| deps = [ ":zxc_unittests" ] |
| |
| tests = [ |
| { |
| name = "zxc_unittests" |
| environments = [ emu_env ] |
| }, |
| ] |
| } |