| # Copyright 2019 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/test.gni") |
| |
| test("cmdline") { |
| output_name = "cmdline-test" |
| |
| sources = [ |
| "args_parser_unittest.cc", |
| "optional_unittest.cc", |
| ] |
| |
| deps = [ |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/cmdline", |
| ] |
| } |
| |
| fuchsia_unittest_package("cmdline-test-pkg") { |
| package_name = "cmdline-test" |
| deps = [ ":cmdline" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":cmdline($host_toolchain)", |
| ":cmdline-test-pkg", |
| ] |
| } |