| # 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. |
| |
| ########################################## |
| # Though under //zircon, this build file # |
| # is meant to be used in the Fuchsia GN # |
| # build. # |
| # See fxbug.dev/36139. # |
| ########################################## |
| |
| assert(!defined(zx) || zx != "/", |
| "This file can only be used in the Fuchsia GN build.") |
| |
| import("//build/test.gni") |
| import("//build/testing/bootfs_test.gni") |
| |
| test("memfs") { |
| output_dir = "$root_out_dir/zircon-migrated" |
| |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ |
| "fidl-tests.cc", |
| "memfs-tests.cc", |
| "vmofile-tests.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io_llcpp", |
| "//sdk/lib/fdio", |
| "//zircon/public/lib/async", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/async-default", |
| "//zircon/system/ulib/async-loop", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fdio-caller", |
| "//zircon/system/ulib/fs", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/memfs", |
| "//zircon/system/ulib/memfs:memfs-cpp", |
| "//zircon/system/ulib/trace-engine", |
| ] |
| } |
| |
| bootfs_test("memfs-bootfs-test") { |
| name = "memfs" |
| deps = [ ":memfs" ] |
| } |