tangled
alpha
login
or
join now
althaea.zone
/
wire
3
fork
atom
ALPHA: wire is a tool to deploy nixos systems
wire.althaea.zone/
3
fork
atom
overview
issues
pulls
pipelines
use dev mode for vm tests
marshmallow
4 months ago
cabe16c8
10765ec8
+9
-8
1 changed file
expand all
collapse all
unified
split
tests
nix
default.nix
+9
-8
tests/nix/default.nix
···
153
153
testName = name;
154
154
snakeOil = import "${pkgs.path}/nixos/tests/ssh-keys.nix" pkgs;
155
155
inherit (opts) testDir;
156
156
-
inherit (self'.packages) wire-small;
156
156
+
inherit (self'.packages) wire-small-dev;
157
157
};
158
158
# NOTE: there is surely a better way of doing this in a more
159
159
# "controlled" manner, but until a need is asked for, this will remain
160
160
# as is.
161
161
-
testScript = ''
162
162
-
start_all()
161
161
+
testScript =
162
162
+
''
163
163
+
start_all()
163
164
164
164
-
TEST_DIR="${injectedFlakeDir}/${path}"
165
165
+
TEST_DIR="${injectedFlakeDir}/${path}"
165
166
166
166
-
${builtins.readFile ./tools.py}
167
167
-
''
168
168
-
+ lib.concatStringsSep "\n" (mapAttrsToList (_: value: value._wire.testScript) value.nodes)
169
169
-
+ opts.testScript;
167
167
+
${builtins.readFile ./tools.py}
168
168
+
''
169
169
+
+ lib.concatStringsSep "\n" (mapAttrsToList (_: value: value._wire.testScript) value.nodes)
170
170
+
+ opts.testScript;
170
171
};
171
172
};
172
173
in