Changes to our Filesystem Test Suite

34 views
Skip to first unread message

Chris Suter

unread,
Jul 7, 2021, 9:00:29 PM7/7/21
to storage-dev
Hi folks,

Some changes have landed recently that mean it's now possible to easily run the filesystem test suite against filesystem implementations (including out-of-tree implementations).

It should be as simple as adding something like:

import("//src/storage/fs_test/suite.gni")
 
fs_test_suite("anyfs") {
  # The dependencies should include the filesystem binary.
  deps = [ ":anyfs_bin" ]
  config = {
    timestamp_granularity = 1
    supports_hard_links = true
    supports_resize = true
    max_file_size = 9223372036854775807
  }
}

to your BUILD.gn file. See https://fuchsia.googlesource.com/fuchsia/+/refs/heads/main/src/storage/fs_test/suite.gni. The schema for the configuration can be found here: https://fuchsia.googlesource.com/fuchsia/+/refs/heads/main/src/storage/fs_test/fs_test.schema.json. The name and binary_path properties will be derived if not specified. It should be possible to enable or disable most tests depending on what might be supported by a filesystem. There are examples of its use to be found in https://fuchsia.googlesource.com/fuchsia/+/refs/heads/main/src/storage.

The schema of the config and other aspects of the template are subject to change so shouldn't be considered stable (yet).

Feedback is welcome.

Cheers,

Chris
Reply all
Reply to author
Forward
0 new messages