nixos/testing: re-add nixos-run-vms script

Originally removed in 926fb93968. This
one is actually quite useful for `nixos-build-vms(8)`.
This commit is contained in:
Maximilian Bosch 2021-08-12 22:50:29 +02:00
parent 6b62dc4834
commit 260d9cc7e1
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -186,6 +186,12 @@ rec {
--set startScripts "''${vmStartScripts[*]}" \ --set startScripts "''${vmStartScripts[*]}" \
--set testScript "$out/test-script" \ --set testScript "$out/test-script" \
--set vlans '${toString vlans}' --set vlans '${toString vlans}'
ln -s ${testDriver}/bin/nixos-test-driver $out/bin/nixos-run-vms
wrapProgram $out/bin/nixos-run-vms \
--set startScripts "''${vmStartScripts[*]}" \
--set testScript "${pkgs.writeText "start-all" "start_all(); join_all();"}" \
--set vlans '${toString vlans}'
''); '');
# Make a full-blown test # Make a full-blown test