blob: c04b291c330b2372de7193b5070eba42928c2e5d [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) {
test("host_fs_test") {
if (is_debug) {
configs -= [ "//build/config:default_optimize" ]
configs += [ "//build/config:optimize_sanitizer" ]
}
sources = [
"fixture.cc",
"test_basic.cc",
"test_directory.cc",
"test_sparse.cc",
"test_truncate.cc",
]
deps = [
"//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 = [
"fixture.cc",
"test_maxfile.cc",
]
deps = [
"//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 = [
"fixture.cc",
"test_rw_workers.cc",
]
deps = [
"//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)",
]
}