summary refs log tree commit diff
path: root/release/checks
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-12-04 16:30:23 +0100
committerAlyssa Ross <hi@alyssa.is>2023-12-05 21:42:20 +0100
commit009a0369c69cec24e0ffc43e4ba3d71d290b2bef (patch)
tree7cb48b18739e6478d3fef3e1661f51c0f431ff53 /release/checks
parentff126e8edf0de4a111400ee64fc78630758759a5 (diff)
downloadspectrum-009a0369c69cec24e0ffc43e4ba3d71d290b2bef.tar
spectrum-009a0369c69cec24e0ffc43e4ba3d71d290b2bef.tar.gz
spectrum-009a0369c69cec24e0ffc43e4ba3d71d290b2bef.tar.bz2
spectrum-009a0369c69cec24e0ffc43e4ba3d71d290b2bef.tar.lz
spectrum-009a0369c69cec24e0ffc43e4ba3d71d290b2bef.tar.xz
spectrum-009a0369c69cec24e0ffc43e4ba3d71d290b2bef.tar.zst
spectrum-009a0369c69cec24e0ffc43e4ba3d71d290b2bef.zip
release/checks/start-vm.nix: init
This makes it possible to test basic start-vm functionality in a
simulated environment withouth having to start a whole Spectrum
system.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'release/checks')
-rw-r--r--release/checks/pkg-tests.nix3
-rw-r--r--release/checks/start-vm.nix9
2 files changed, 12 insertions, 0 deletions
diff --git a/release/checks/pkg-tests.nix b/release/checks/pkg-tests.nix
index b2ee169..f51ba42 100644
--- a/release/checks/pkg-tests.nix
+++ b/release/checks/pkg-tests.nix
@@ -10,4 +10,7 @@ import ../../lib/call-package.nix (
   lseek = lib.recurseIntoAttrs lseek.tests;
 
   start-vm = lib.recurseIntoAttrs start-vm.tests;
+
+  run-spectrum-vm = lib.recurseIntoAttrs
+    (callSpectrumPackage ../../scripts/run-spectrum-vm.nix {}).tests;
 }) (_: {})
diff --git a/release/checks/start-vm.nix b/release/checks/start-vm.nix
new file mode 100644
index 0000000..ec24f4b
--- /dev/null
+++ b/release/checks/start-vm.nix
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: 2023 Alyssa Ross <hi@alyssa.is>
+
+import ../../lib/call-package.nix (
+{ callSpectrumPackage, runCommand }:
+
+runCommand "start-vm-test" {} ''
+  ${callSpectrumPackage ../../scripts/run-spectrum-vm.nix {}} > $out
+'') (_: {})