| # Copyright 2021 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 = [ ":f2fs-compatibility-test-pkg" ] |
| } |
| |
| test_sources = [ |
| "compatibility.cc", |
| "compatibility.h", |
| "file_backed_block_device.cc", |
| "file_backed_block_device.h", |
| ] |
| |
| test_deps = [ |
| "//src/storage/f2fs:f2fs", |
| "//src/virtualization/tests/lib", |
| "//src/virtualization/tests/lib:test_main", |
| "//third_party/googletest:gtest", |
| ] |
| |
| test("f2fs-dir-compatibility-test") { |
| testonly = true |
| |
| sources = [ "dir.cc" ] + test_sources |
| |
| deps = test_deps |
| } |
| |
| test("f2fs-dir-slow-compatibility-test") { |
| testonly = true |
| |
| sources = [ "dir_slow.cc" ] + test_sources |
| |
| deps = test_deps |
| } |
| |
| test("f2fs-file-attr-compatibility-test") { |
| testonly = true |
| |
| sources = [ "file_attr.cc" ] + test_sources |
| |
| deps = test_deps |
| } |
| |
| test("f2fs-file-rw-compatibility-test") { |
| testonly = true |
| |
| sources = [ "file_rw.cc" ] + test_sources |
| |
| deps = test_deps |
| } |
| |
| test("f2fs-file-slow-compatibility-test") { |
| testonly = true |
| |
| sources = [ "file_slow.cc" ] + test_sources |
| |
| deps = test_deps |
| } |
| |
| test("f2fs-inline-compatibility-test") { |
| testonly = true |
| |
| sources = [ "inline.cc" ] + test_sources |
| |
| deps = test_deps |
| } |
| |
| test("f2fs-mkfs-fsck-compatibility-test") { |
| testonly = true |
| |
| sources = [ "mkfs_fsck_test.cc" ] + test_sources |
| |
| deps = test_deps |
| } |
| |
| component_deps = [ "//src/virtualization/tests:test_images" ] |
| |
| fuchsia_test_component("f2fs-dir-compatibility-test-cmp") { |
| component_name = "f2fs-dir-compatibility-test-cmp" |
| deps = [ ":f2fs-dir-compatibility-test" ] + component_deps |
| manifest = "f2fs_dir_compatibility.cml" |
| |
| # Needed to access HypervisorResource |
| test_type = "system" |
| } |
| |
| fuchsia_test_component("f2fs-dir-slow-compatibility-test-cmp") { |
| component_name = "f2fs-dir-slow-compatibility-test-cmp" |
| deps = [ ":f2fs-dir-slow-compatibility-test" ] + component_deps |
| manifest = "f2fs_dir_slow_compatibility.cml" |
| |
| # Needed to access HypervisorResource |
| test_type = "system" |
| } |
| |
| fuchsia_test_component("f2fs-file-attr-compatibility-test-cmp") { |
| component_name = "f2fs-file-attr-compatibility-test-cmp" |
| deps = [ ":f2fs-file-attr-compatibility-test" ] + component_deps |
| manifest = "f2fs_file_attr_compatibility.cml" |
| |
| # Needed to access HypervisorResource |
| test_type = "system" |
| } |
| |
| fuchsia_test_component("f2fs-file-rw-compatibility-test-cmp") { |
| component_name = "f2fs-file-rw-compatibility-test-cmp" |
| deps = [ ":f2fs-file-rw-compatibility-test" ] + component_deps |
| manifest = "f2fs_file_rw_compatibility.cml" |
| |
| # Needed to access HypervisorResource |
| test_type = "system" |
| } |
| |
| fuchsia_test_component("f2fs-file-slow-compatibility-test-cmp") { |
| component_name = "f2fs-file-slow-compatibility-test-cmp" |
| deps = [ ":f2fs-file-slow-compatibility-test" ] + component_deps |
| manifest = "f2fs_file_slow_compatibility.cml" |
| |
| # Needed to access HypervisorResource |
| test_type = "system" |
| } |
| |
| fuchsia_test_component("f2fs-inline-compatibility-test-cmp") { |
| component_name = "f2fs-inline-compatibility-test-cmp" |
| deps = [ ":f2fs-inline-compatibility-test" ] + component_deps |
| manifest = "f2fs_inline_compatibility.cml" |
| |
| # Needed to access HypervisorResource |
| test_type = "system" |
| } |
| |
| fuchsia_test_component("f2fs-mkfs-fsck-compatibility-test-cmp") { |
| component_name = "f2fs-mkfs-fsck-compatibility-test-cmp" |
| deps = [ ":f2fs-mkfs-fsck-compatibility-test" ] + component_deps |
| manifest = "f2fs_mkfs_fsck_compatibility.cml" |
| |
| # Needed to access HypervisorResource |
| test_type = "system" |
| } |
| |
| fuchsia_test_package("f2fs-compatibility-test-pkg") { |
| package_name = "f2fs-compatibility-test-pkg" |
| test_components = [ |
| ":f2fs-dir-compatibility-test-cmp", |
| ":f2fs-dir-slow-compatibility-test-cmp", |
| ":f2fs-file-attr-compatibility-test-cmp", |
| ":f2fs-file-rw-compatibility-test-cmp", |
| ":f2fs-file-slow-compatibility-test-cmp", |
| ":f2fs-inline-compatibility-test-cmp", |
| ":f2fs-mkfs-fsck-compatibility-test-cmp", |
| ] |
| subpackages = |
| [ "//src/virtualization/bin/guest_manager:debian_guest_manager" ] |
| test_specs = { |
| environments = guest_envs |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |