forked from cockroachdb/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metamorphic: randomly use disk for tests
Currently, by default, the metamorphic tests use a MemFS-backed DB by default. The `-disk` flag can be used to override all tests to use a disk-backed filesystem. The behavior is "all or nothing". To better simulate use of Pebble with a real, disk-backed filesystem, randomly generate test configurations that use disk. Tweak the flags to allow specifying an override filesystem type. In the case that "mem" or "disk" are specified, all metamorphic tests will use that FS type, ignoring the randomly generated FS type. The default is to use the randomly generated FS types. Disk-backed filesystems are used 10% of the time for the randomly generated configurations. Related to cockroachdb/cockroach#69414.
- Loading branch information
Showing
2 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters