|
59 | 59 | nixosTesting.makeTest calledTest;
|
60 | 60 | in
|
61 | 61 | {
|
62 |
| - x86_64-linux = { |
63 |
| - profilesTest = mkTest { |
64 |
| - name = "profiles"; |
| 62 | + profilesTest = mkTest { |
| 63 | + name = "profiles"; |
65 | 64 |
|
66 |
| - machine = { suites, ... }: { |
67 |
| - imports = suites.allProfiles ++ suites.allUsers; |
68 |
| - }; |
69 |
| - |
70 |
| - testScript = '' |
71 |
| - machine.systemctl("is-system-running --wait") |
72 |
| - ''; |
| 65 | + machine = { suites, ... }: { |
| 66 | + imports = suites.allProfiles ++ suites.allUsers; |
73 | 67 | };
|
74 | 68 |
|
75 |
| - libTests = pkgs.runCommandNoCC "devos-lib-tests" |
76 |
| - { |
77 |
| - buildInputs = [ |
78 |
| - pkgs.nix |
79 |
| - ( |
80 |
| - let tests = import ./lib.nix { inherit self pkgs; }; |
81 |
| - in |
82 |
| - if tests == [ ] |
83 |
| - then null |
84 |
| - else throw (builtins.toJSON tests) |
85 |
| - ) |
86 |
| - ]; |
87 |
| - } '' |
88 |
| - datadir="${pkgs.nix}/share" |
89 |
| - export TEST_ROOT=$(pwd)/test-tmp |
90 |
| - export NIX_BUILD_HOOK= |
91 |
| - export NIX_CONF_DIR=$TEST_ROOT/etc |
92 |
| - export NIX_LOCALSTATE_DIR=$TEST_ROOT/var |
93 |
| - export NIX_LOG_DIR=$TEST_ROOT/var/log/nix |
94 |
| - export NIX_STATE_DIR=$TEST_ROOT/var/nix |
95 |
| - export NIX_STORE_DIR=$TEST_ROOT/store |
96 |
| - export PAGER=cat |
97 |
| - cacheDir=$TEST_ROOT/binary-cache |
98 |
| - nix-store --init |
99 |
| -
|
100 |
| - touch $out |
| 69 | + testScript = '' |
| 70 | + machine.systemctl("is-system-running --wait") |
101 | 71 | '';
|
102 | 72 | };
|
| 73 | + |
| 74 | + libTests = pkgs.runCommandNoCC "devos-lib-tests" |
| 75 | + { |
| 76 | + buildInputs = [ |
| 77 | + pkgs.nix |
| 78 | + ( |
| 79 | + let tests = import ./lib.nix { inherit self pkgs; }; |
| 80 | + in |
| 81 | + if tests == [ ] |
| 82 | + then null |
| 83 | + else throw (builtins.toJSON tests) |
| 84 | + ) |
| 85 | + ]; |
| 86 | + } '' |
| 87 | + datadir="${pkgs.nix}/share" |
| 88 | + export TEST_ROOT=$(pwd)/test-tmp |
| 89 | + export NIX_BUILD_HOOK= |
| 90 | + export NIX_CONF_DIR=$TEST_ROOT/etc |
| 91 | + export NIX_LOCALSTATE_DIR=$TEST_ROOT/var |
| 92 | + export NIX_LOG_DIR=$TEST_ROOT/var/log/nix |
| 93 | + export NIX_STATE_DIR=$TEST_ROOT/var/nix |
| 94 | + export NIX_STORE_DIR=$TEST_ROOT/store |
| 95 | + export PAGER=cat |
| 96 | + cacheDir=$TEST_ROOT/binary-cache |
| 97 | + nix-store --init |
| 98 | +
|
| 99 | + touch $out |
| 100 | + ''; |
103 | 101 | }
|
| 102 | + |
0 commit comments