mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
29 lines
522 B
Nix
29 lines
522 B
Nix
{ pkgs, lib, self }:
|
|
|
|
let
|
|
testConfig = {
|
|
formatAttr = "isoImage";
|
|
};
|
|
in
|
|
lib.runTests {
|
|
testNixSystemHasFormat = {
|
|
expr = self.nixos.hasNixosFormat testConfig;
|
|
expected = true;
|
|
};
|
|
|
|
testNixSystemNoFormat = {
|
|
expr = self.nixos.hasNixosFormat { };
|
|
expected = false;
|
|
};
|
|
|
|
testNixSystemFormatCompare = {
|
|
expr = self.nixos.isFormat testConfig "isoImage";
|
|
expected = true;
|
|
};
|
|
|
|
testNixSystemFormatCompare2 = {
|
|
expr = self.nixos.isFormat { } "isoImage";
|
|
expected = false;
|
|
};
|
|
}
|