home-manager/tests/modules/xresources.nix
Robert Helgesson 1484b1d48b
tests: add initial test framework
(cherry picked from commit 6d56abcec1)
2018-12-12 00:56:40 +01:00

23 lines
445 B
Nix

{ config, lib, ... }:
with lib;
{
config = {
xresources = {
properties = {
"Test*string" = "test-string";
"Test*boolean1" = true;
"Test*boolean2" = false;
"Test*int" = 10;
"Test*list" = [ "list-str" true false 10 ];
};
};
nmt.script = ''
assertFileExists home-files/.Xresources
assertFileContent home-files/.Xresources ${./xresources-expected.conf}
'';
};
}