blob: 9623538f589bdffd19184251a9cb27e49c7a11d1 [file] [log] [blame] [edit]
# 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/public/lib/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/public/lib/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/public/lib/fbl",
]
}
}
group("tests") {
testonly = true
deps = [
":host_fs_test($host_toolchain)",
":host_maxfile_test($host_toolchain)",
":host_rw_workers_test($host_toolchain)",
]
}