diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-26 18:52:34 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-26 18:52:34 +0100 |
commit | e8baaba044689b75ef4f36ebc5a93b7462c23cb2 (patch) | |
tree | 724d7b51c4eea2ae29995d677fe36103422e7aaa /nixos/tests/misc.nix | |
parent | 953f12995be933fb2c1efe314299556e4178e26e (diff) |
Add a regression test for hostname / nss_myhostname
Issue #1248.
Diffstat (limited to 'nixos/tests/misc.nix')
-rw-r--r-- | nixos/tests/misc.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/tests/misc.nix b/nixos/tests/misc.nix index 12ac6f6f9a670..d355d705a24ca 100644 --- a/nixos/tests/misc.nix +++ b/nixos/tests/misc.nix @@ -59,6 +59,12 @@ subtest "override-env-var", sub { $machine->succeed('[ "$EDITOR" = emacs ]'); }; + + # Test whether hostname (and by extension nss_myhostname) works. + subtest "hostname", sub { + $machine->succeed('[ "`hostname`" = machine ]'); + $machine->succeed('[ "`hostname -s`" = machine ]'); + }; ''; } |