From 3150f25faa599c6c6215295144f5c6b4a87eea6e Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 14 May 2023 22:29:09 +0200 Subject: lib/tests/release.nix: Run systems tests on OfBorg --- lib/tests/release.nix | 3 +++ lib/tests/systems.nix | 2 ++ 2 files changed, 5 insertions(+) diff --git a/lib/tests/release.nix b/lib/tests/release.nix index c3bf58db241..5bade7112f1 100644 --- a/lib/tests/release.nix +++ b/lib/tests/release.nix @@ -53,6 +53,9 @@ let echo "Running lib/tests/sources.sh" TEST_LIB=$PWD/lib bash lib/tests/sources.sh + echo "Running lib/tests/systems.nix" + [[ $(nix-instantiate --eval --strict lib/tests/systems.nix | tee /dev/stderr) == '[ ]' ]]; + mkdir $out echo success > $out/${nix.version} ''; diff --git a/lib/tests/systems.nix b/lib/tests/systems.nix index 617fb0d18b1..862496313e9 100644 --- a/lib/tests/systems.nix +++ b/lib/tests/systems.nix @@ -1,6 +1,8 @@ # Run: # [nixpkgs]$ nix-instantiate --eval --strict lib/tests/systems.nix # Expected output: [], or the failed cases +# +# OfBorg runs (approximately) nix-build lib/tests/release.nix let lib = import ../default.nix; mseteq = x: y: { -- cgit 1.4.1