P.Y. Laligand | e30008d | 2020-04-08 21:03:47 +0000 | [diff] [blame] | 1 | # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
P.Y. Laligand | a5aa93e | 2020-04-09 01:06:41 +0000 | [diff] [blame] | 5 | ########################################## |
| 6 | # Though under //zircon, this build file # |
| 7 | # is meant to be used in the Fuchsia GN # |
| 8 | # build. # |
Marc-Antoine Ruel | 2757e6f | 2020-09-25 00:43:46 +0000 | [diff] [blame] | 9 | # See fxbug.dev/36139. # |
P.Y. Laligand | a5aa93e | 2020-04-09 01:06:41 +0000 | [diff] [blame] | 10 | ########################################## |
| 11 | |
| 12 | assert(!defined(zx) || zx != "/", |
| 13 | "This file can only be used in the Fuchsia GN build.") |
| 14 | |
| 15 | import("//build/test.gni") |
P.Y. Laligand | e34c60c | 2020-09-21 20:53:48 +0000 | [diff] [blame] | 16 | import("//build/testing/bootfs_test.gni") |
P.Y. Laligand | a5aa93e | 2020-04-09 01:06:41 +0000 | [diff] [blame] | 17 | |
P.Y. Laligand | e30008d | 2020-04-08 21:03:47 +0000 | [diff] [blame] | 18 | group("test") { |
| 19 | testonly = true |
| 20 | deps = [ ":linenoise-test" ] |
| 21 | } |
| 22 | |
P.Y. Laligand | a5aa93e | 2020-04-09 01:06:41 +0000 | [diff] [blame] | 23 | test("linenoise-test") { |
P.Y. Laligand | a5aa93e | 2020-04-09 01:06:41 +0000 | [diff] [blame] | 24 | if (is_fuchsia) { |
| 25 | configs += [ "//build/unification/config:zircon-migrated" ] |
| 26 | } |
| 27 | if (is_fuchsia) { |
| 28 | fdio_config = [ "//build/config/fuchsia:fdio_config" ] |
| 29 | if (configs + fdio_config - fdio_config != configs) { |
| 30 | configs -= fdio_config |
| 31 | } |
| 32 | } |
P.Y. Laligand | e30008d | 2020-04-08 21:03:47 +0000 | [diff] [blame] | 33 | sources = [ "linenoise_tests.cc" ] |
| 34 | |
| 35 | deps = [ |
Suraj Malhotra | 83aa461 | 2020-06-18 21:24:59 +0000 | [diff] [blame] | 36 | "//sdk/lib/fdio", |
P.Y. Laligand | a5aa93e | 2020-04-09 01:06:41 +0000 | [diff] [blame] | 37 | "//zircon/public/lib/fbl", |
P.Y. Laligand | a5aa93e | 2020-04-09 01:06:41 +0000 | [diff] [blame] | 38 | "//zircon/public/lib/zxtest", |
P.Y. Laligand | 580c672 | 2020-05-09 06:36:23 +0000 | [diff] [blame] | 39 | "//zircon/third_party/ulib/linenoise", |
P.Y. Laligand | e30008d | 2020-04-08 21:03:47 +0000 | [diff] [blame] | 40 | ] |
| 41 | } |
Gary Boone | e738274 | 2020-08-20 00:22:40 +0000 | [diff] [blame] | 42 | |
| 43 | bootfs_test("linenoise-test-bootfs-test") { |
| 44 | name = "linenoise-test" |
| 45 | deps = [ ":linenoise-test" ] |
| 46 | } |