mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-09-11 12:49:18 +03:00
add test for default environment.systemPath
This commit is contained in:
parent
1b6f56f5b8
commit
2ed3ca511f
@ -88,6 +88,8 @@ let
|
||||
examples.lnl = genExample ./modules/examples/lnl.nix;
|
||||
examples.simple = genExample ./modules/examples/simple.nix;
|
||||
|
||||
tests.environment-path = makeTest ./tests/environment-path.nix;
|
||||
|
||||
tests.services-activate-system = makeTest ./tests/services-activate-system.nix;
|
||||
|
||||
tests.system-defaults-write = makeTest ./tests/system-defaults-write.nix;
|
||||
|
15
tests/environment-path.nix
Normal file
15
tests/environment-path.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
programs.bash.enable = true;
|
||||
|
||||
test = ''
|
||||
echo checking /run/current-system/sw/bin in systemPath >&2
|
||||
grep 'export PATH=.*:/run/current-system/sw/bin' ${config.out}/etc/bashrc
|
||||
|
||||
echo checking /bin and /sbin in systemPath >&2
|
||||
grep 'export PATH=.*:/usr/bin:/usr/sbin:/bin:/sbin' ${config.out}/etc/bashrc
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user