mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
add regression tests
This commit is contained in:
parent
68987761ef
commit
5c32923397
2 changed files with 4 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ writeIfdFlake() {
|
|||
{
|
||||
outputs = { self }: {
|
||||
packages.$system.default = import ./ifd.nix;
|
||||
checks.$system = import ./ifd.nix;
|
||||
formatter = import ./ifd.nix;
|
||||
};
|
||||
}
|
||||
EOF
|
||||
|
|
|
|||
|
|
@ -100,5 +100,7 @@ nix eval --impure --expr '
|
|||
let show_output = builtins.fromJSON (builtins.readFile ./show-output.json);
|
||||
in
|
||||
assert show_output.packages.${builtins.currentSystem}.default == { };
|
||||
assert show_output.checks.${builtins.currentSystem} == { };
|
||||
assert show_output.formatter == { };
|
||||
true
|
||||
'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue