Skip to content

Commit

Permalink
Add tests for add-gc-root
Browse files Browse the repository at this point in the history
  • Loading branch information
layus committed Sep 17, 2024
1 parent 3855ac9 commit fcd9565
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/nix/store-add-gc-root.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ struct CmdAddGCRoot : StoreCommand
.handler = {&links},
.completer = completePath,
});

addFlag({
.longName = "no-check",
.description = "Do not test the validity of created roots.",
.handler = {&checkResults, false},
});
}

std::string description() override
Expand Down
1 change: 1 addition & 0 deletions tests/functional/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ suites = [
'debugger.sh',
'extra-sandbox-profile.sh',
'help.sh',
'store-add-gc-root.sh',
],
'workdir': meson.current_build_dir(),
},
Expand Down

0 comments on commit fcd9565

Please sign in to comment.