Skip to content

Commit

Permalink
Add a fuzzer for lsm/tree. Remove dead test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamii committed Oct 22, 2022
1 parent 338fab8 commit 02a1cca
Show file tree
Hide file tree
Showing 5 changed files with 409 additions and 517 deletions.
14 changes: 14 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,20 @@ pub fn build(b: *std.build.Builder) void {
run_step.dependOn(&run_cmd.step);
}

{
const lsm_tree_fuzz = b.addExecutable("lsm_tree_fuzz", "src/lsm/tree_fuzz.zig");
lsm_tree_fuzz.setMainPkgPath("src");
lsm_tree_fuzz.setTarget(target);
lsm_tree_fuzz.setBuildMode(mode);

const run_cmd = lsm_tree_fuzz.run();
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| run_cmd.addArgs(args);

const run_step = b.step("lsm_tree_fuzz", "Fuzz the LSM tree. Args: [--seed <seed>]");
run_step.dependOn(&run_cmd.step);
}

{
const lsm_segmented_array_fuzz = b.addExecutable("lsm_segmented_array_fuzz", "src/lsm/segmented_array_fuzz.zig");
lsm_segmented_array_fuzz.setMainPkgPath("src");
Expand Down
Loading

0 comments on commit 02a1cca

Please sign in to comment.