Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/std/fwlib/blockTypes/nixostests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Use the NixosTests Blocktype in order to instrucement nixos
vm-based test inside your reporisory.

Available actions:
- build
- run
- run-vm
- audit-script
Expand All @@ -32,6 +33,7 @@ in
inherit (pkgs.stdenv) isLinux;
in
[
(actions.build currentSystem target)
(mkCommand currentSystem "run" "run tests in headless vm" [] ''
# ${target.driver}
${target.driver}/bin/nixos-test-driver
Expand Down
7 changes: 7 additions & 0 deletions tests/_snapshots/bt-blocktypes
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@
};
nixostests = {
actions = [
{
command = <derivation build>;
description = "build it";
name = "build";
proviso = "std/fwlib/actions/build-proviso.sh";
targetDrv = "drvPath";
}
{
command = <derivation run>;
description = "run tests in headless vm";
Expand Down
2 changes: 2 additions & 0 deletions tests/bt-blocktypes/expr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
configFile = "path/to/configFile";
};
nixostests = {
drvPath = "drvPath";
outPath = "outPath";
driver = "driver";
driverInteractive = "driverInteractive";
};
Expand Down
Loading