1
1
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:
Daiderd Jordan 2017-05-15 20:35:30 +02:00
parent 1b6f56f5b8
commit 2ed3ca511f
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 17 additions and 0 deletions

View File

@ -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;

View 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
'';
}