blob: 7071eb384d7c7351495c241327bf18e91fe40056 [file] [log] [blame]
# 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")
group("tests") {
testonly = true
deps = [
":ffl($host_toolchain)",
":ffl-test-pkg",
]
}
test("ffl") {
output_name = "ffl-test"
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
if (is_fuchsia) {
fdio_config = [ "//build/config/fuchsia:fdio_config" ]
if (configs + fdio_config - fdio_config != configs) {
configs -= fdio_config
}
}
sources = [ "ffl_tests.cc" ]
deps = [
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/ffl",
]
if (is_fuchsia) {
deps += [ "//sdk/lib/fdio" ]
}
}
fuchsia_unittest_package("ffl-test-pkg") {
package_name = "ffl-test"
deps = [ ":ffl" ]
}