Add test-vps and check-vps Makefile targets. check-vps runs the
build and test in one command.
The Stop hook now auto-queues test-vps after a successful
build-vps-system. On the next Stop iteration, the test suite runs
in a VM.
Co-Authored-By: Claude <noreply@anthropic.com>
}
$GUIX_BIN/sed --in-place '1d' "$QUEUE_FILE"
+ # Auto-queue the VPS test suite after a successful VPS build.
+ case "$target" in
+ build-vps-system)
+ $GUIX_BIN/echo "test-vps" >> "$QUEUE_FILE"
+ ;;
+ esac
+
exec 1>&2
$GUIX_BIN/echo "Stop to continue."
exit 2
build-vps: build-vps-system build-vps-home
+# VPS test suite -- boots a VM and runs all test cases.
+test-vps:
+ GUIX_PACKAGE_PATH=$(CURDIR) guix system test \
+ $(CURDIR)/tests/vps-base.scm
+
+# Build the VPS configuration and run the test suite.
+check-vps: build-vps-system test-vps
+
tags:
find $(guix-store) -wholename "*guix-$(guix-version)*.scm" -or \
-wholename "*guix-module-union*.scm" -or \