rofi: add test to verify assertion

This commit is contained in:
Robert Helgesson 2019-09-04 12:46:04 +02:00
parent 698d0f0a44
commit 1923ac3358
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
4 changed files with 38 additions and 0 deletions

View File

@ -36,6 +36,7 @@ import nmt {
// import ./modules/misc/pam
// import ./modules/misc/xsession
// import ./modules/programs/firefox
// import ./modules/programs/rofi
// import ./modules/systemd
)
// import ./modules/home-environment

View File

@ -0,0 +1 @@
["Cannot use the rofi options 'theme' and 'colors' simultaneously.\n"]

View File

@ -0,0 +1,33 @@
{ config, lib, ... }:
with lib;
{
config = {
programs.rofi = {
enable = true;
theme = "foo";
colors = {
window = {
background = "background";
border = "border";
separator = "separator";
};
rows = {
};
};
};
home.file.result.text =
builtins.toJSON
(map (a: a.message)
(filter (a: !a.assertion)
config.assertions));
nmt.script = ''
assertFileContent \
home-files/result \
${./assert-on-both-theme-and-colors-expected.json}
'';
};
}

View File

@ -0,0 +1,3 @@
{
rofi-assert-on-both-theme-and-colors = import ./assert-on-both-theme-and-colors.nix;
}