Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* WT-9368 Extend WT fault injection testing to support LazyFS. * Integrated the LazyFS version of random_abort into cmake. A few small fixes. * Refactored common LazyFS functionality. Added LazyFS support to two more tests. * Miscellaneous fixes. * Fixed a few Windows-related issues. * Fixed usage(). * Refactored higher-level LazyFS logic into testutil_lazyfs_* functions. * Fixed a build issue on Windows.
- Loading branch information
Showing
18 changed files
with
797 additions
and
65 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
include(ExternalProject) | ||
include(GNUInstallDirs) | ||
include(${CMAKE_SOURCE_DIR}/cmake/helpers.cmake) | ||
|
||
# Skip the LazyFS build step if it is not enabled. | ||
if(NOT ENABLE_LAZYFS) | ||
return() | ||
endif() | ||
|
||
if(TARGET lazyfs) | ||
# Avoid redefining the imported library, given this file can be used as an include. | ||
return() | ||
endif() | ||
|
||
# Download and install the project into the build directory. | ||
ExternalProject_Add(lazyfs | ||
PREFIX lazyfs | ||
GIT_CONFIG advice.detachedHead=false | ||
GIT_REPOSITORY https://github.com/dsrhaslab/lazyfs.git | ||
GIT_TAG b0383127 | ||
CONFIGURE_COMMAND "" | ||
BUILD_IN_SOURCE TRUE | ||
BUILD_COMMAND cd libs/libpcache && ./build.sh COMMAND cd ../../lazyfs && ./build.sh | ||
INSTALL_COMMAND "" | ||
) |
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
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
Oops, something went wrong.