1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +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:
- ./format -c
- 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 {
owner = "rycee";
repo = "nmt";
rev = "4174e11107ba808b3001ede2f9f245481dfdfb2e";
sha256 = "0vzdh7211dxmd4c3371l5b2v5i3b8rip2axk8l5xqlwddp3jiy5n";
rev = "ae9ce0033dbd28b4774142a67369f41c11753555";
sha256 = "1m5jqhflykya5h6s69ps6r70ffbsr6qkxdq1miqa68msshl21f9y";
};
modules = import ../modules/modules.nix {

View file

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

View file

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

View file

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

View file

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

View file

@ -10,7 +10,7 @@ with lib;
};
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
assertFileContent $envFile ${./session-variables-expected.conf}
'';

View file

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