1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 18:59:47 +01:00

tests: update nmt

This commit is contained in:
Robert Helgesson 2020-04-10 00:25:21 +02:00
parent 41094aa3c7
commit ebdfa06685
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
8 changed files with 10 additions and 10 deletions

View file

@ -10,4 +10,4 @@ before_script:
script: script:
- ./format -c - ./format -c
- nix-shell . -A install - nix-shell . -A install
- nix-shell --pure tests -A run.all - nix-shell --pure --max-jobs 10 tests -A run.all

View file

@ -7,8 +7,8 @@ let
nmt = pkgs.fetchFromGitLab { nmt = pkgs.fetchFromGitLab {
owner = "rycee"; owner = "rycee";
repo = "nmt"; repo = "nmt";
rev = "4174e11107ba808b3001ede2f9f245481dfdfb2e"; rev = "ae9ce0033dbd28b4774142a67369f41c11753555";
sha256 = "0vzdh7211dxmd4c3371l5b2v5i3b8rip2axk8l5xqlwddp3jiy5n"; sha256 = "1m5jqhflykya5h6s69ps6r70ffbsr6qkxdq1miqa68msshl21f9y";
}; };
modules = import ../modules/modules.nix { modules = import ../modules/modules.nix {

View file

@ -34,7 +34,7 @@
}; };
nmt.script = '' nmt.script = ''
local serviceFile=home-files/.config/systemd/user/polybar.service serviceFile=home-files/.config/systemd/user/polybar.service
assertFileExists $serviceFile assertFileExists $serviceFile
assertFileRegex $serviceFile 'X-Restart-Triggers=.*polybar\.conf' assertFileRegex $serviceFile 'X-Restart-Triggers=.*polybar\.conf'

View file

@ -23,7 +23,7 @@
[ (self: super: { sxhkd = pkgs.writeScriptBin "dummy-sxhkd" ""; }) ]; [ (self: super: { sxhkd = pkgs.writeScriptBin "dummy-sxhkd" ""; }) ];
nmt.script = '' nmt.script = ''
local sxhkdrc=home-files/.config/sxhkd/sxhkdrc sxhkdrc=home-files/.config/sxhkd/sxhkdrc
assertFileExists $sxhkdrc assertFileExists $sxhkdrc

View file

@ -7,7 +7,7 @@
}; };
nmt.script = '' nmt.script = ''
local serviceFile=home-files/.config/systemd/user/sxhkd.service serviceFile=home-files/.config/systemd/user/sxhkd.service
assertFileExists $serviceFile assertFileExists $serviceFile

View file

@ -15,7 +15,7 @@ with lib;
}; };
nmt.script = '' nmt.script = ''
local serviceFile=home-files/.config/systemd/user/test-service@.service serviceFile=home-files/.config/systemd/user/test-service@.service
assertFileExists $serviceFile assertFileExists $serviceFile
assertFileContent $serviceFile ${./services-expected.conf} assertFileContent $serviceFile ${./services-expected.conf}
''; '';

View file

@ -10,7 +10,7 @@ with lib;
}; };
nmt.script = '' nmt.script = ''
local envFile=home-files/.config/environment.d/10-home-manager.conf envFile=home-files/.config/environment.d/10-home-manager.conf
assertFileExists $envFile assertFileExists $envFile
assertFileContent $envFile ${./session-variables-expected.conf} assertFileContent $envFile ${./session-variables-expected.conf}
''; '';

View file

@ -13,8 +13,8 @@ with lib;
}; };
nmt.script = '' nmt.script = ''
local unitDir=home-files/.config/systemd/user unitDir=home-files/.config/systemd/user
local timerFile=$unitDir/test-timer.timer timerFile=$unitDir/test-timer.timer
assertFileExists $timerFile assertFileExists $timerFile
assertFileContent $timerFile ${./timers-expected.conf} assertFileContent $timerFile ${./timers-expected.conf}