1 import ./make-test-python.nix ({ pkgs, ...} : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ nequissimus ];
7 nodes.machine = { pkgs, ... }:
9 boot.kernelPackages = pkgs.linuxPackages;
10 environment.etc.plainFile.text = ''
13 environment.etc."folder/with/file".text = ''
17 environment.sessionVariables = {
18 TERMINFO_DIRS = "/run/current-system/sw/share/terminfo";
24 machine.succeed('[ -L "/etc/plainFile" ]')
25 assert "Hello World" in machine.succeed('cat "/etc/plainFile"')
26 machine.succeed('[ -d "/etc/folder" ]')
27 machine.succeed('[ -d "/etc/folder/with" ]')
28 machine.succeed('[ -L "/etc/folder/with/file" ]')
29 assert "Hello World" in machine.succeed('cat "/etc/plainFile"')
31 assert "/run/current-system/sw/share/terminfo" in machine.succeed(
32 "echo ''${TERMINFO_DIRS}"
34 assert "awesome" in machine.succeed("echo ''${NIXCON}")