blob: 48844a4bbfe941275578bfe3bdea097e5edda419 [file] [log] [blame]
P.Y. Laligande30008d2020-04-08 21:03:47 +00001# 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. Laliganda5aa93e2020-04-09 01:06:41 +00005##########################################
6# Though under //zircon, this build file #
7# is meant to be used in the Fuchsia GN #
8# build. #
Marc-Antoine Ruel2757e6f2020-09-25 00:43:46 +00009# See fxbug.dev/36139. #
P.Y. Laliganda5aa93e2020-04-09 01:06:41 +000010##########################################
11
12assert(!defined(zx) || zx != "/",
13 "This file can only be used in the Fuchsia GN build.")
14
15import("//build/test.gni")
P.Y. Laligande34c60c2020-09-21 20:53:48 +000016import("//build/testing/bootfs_test.gni")
P.Y. Laliganda5aa93e2020-04-09 01:06:41 +000017
P.Y. Laligande30008d2020-04-08 21:03:47 +000018group("test") {
19 testonly = true
20 deps = [ ":linenoise-test" ]
21}
22
P.Y. Laliganda5aa93e2020-04-09 01:06:41 +000023test("linenoise-test") {
P.Y. Laliganda5aa93e2020-04-09 01:06:41 +000024 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. Laligande30008d2020-04-08 21:03:47 +000033 sources = [ "linenoise_tests.cc" ]
34
35 deps = [
Suraj Malhotra83aa4612020-06-18 21:24:59 +000036 "//sdk/lib/fdio",
P.Y. Laliganda5aa93e2020-04-09 01:06:41 +000037 "//zircon/public/lib/fbl",
P.Y. Laliganda5aa93e2020-04-09 01:06:41 +000038 "//zircon/public/lib/zxtest",
P.Y. Laligand580c6722020-05-09 06:36:23 +000039 "//zircon/third_party/ulib/linenoise",
P.Y. Laligande30008d2020-04-08 21:03:47 +000040 ]
41}
Gary Boonee7382742020-08-20 00:22:40 +000042
43bootfs_test("linenoise-test-bootfs-test") {
44 name = "linenoise-test"
45 deps = [ ":linenoise-test" ]
46}