blob: af899c88f6d7e32966d29732cf7880d049c454b6 [file] [log] [blame]
# Copyright 2020 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/test.gni")
if (is_host) {
source_set("fixture") {
public = [ "fixture.h" ]
sources = [ "fixture.cc" ]
deps = [ "//src/storage/minfs" ]
public_deps = [ "//third_party/googletest:gtest" ]
testonly = true
}
test("host_fs_test") {
if (is_debug) {
configs -= [ "//build/config:default_optimize" ]
configs += [ "//build/config:optimize_sanitizer" ]
}
sources = [
"test_basic.cc",
"test_directory.cc",
"test_sparse.cc",
"test_truncate.cc",
]
deps = [
":fixture",
"//src/lib/fxl/test:gtest_main",
"//src/storage/minfs",
"//third_party/googletest:gtest",
"//zircon/system/ulib/fbl",
]
}
test("host_maxfile_test") {
if (is_debug) {
configs -= [ "//build/config:default_optimize" ]
configs += [ "//build/config:optimize_sanitizer" ]
}
sources = [ "test_maxfile.cc" ]
deps = [
":fixture",
"//src/lib/fxl/test:gtest_main",
"//src/storage/minfs",
"//third_party/googletest:gtest",
"//zircon/system/ulib/fbl",
]
}
test("host_rw_workers_test") {
if (is_debug) {
configs -= [ "//build/config:default_optimize" ]
configs += [ "//build/config:optimize_sanitizer" ]
}
sources = [ "test_rw_workers.cc" ]
deps = [
":fixture",
"//src/lib/fxl/test:gtest_main",
"//src/storage/minfs",
"//third_party/googletest:gtest",
"//zircon/system/ulib/fbl",
]
}
}
group("tests") {
testonly = true
deps = [
":host_fs_test($host_toolchain)",
":host_maxfile_test($host_toolchain)",
":host_rw_workers_test($host_toolchain)",
]
}