summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-05-14 22:29:09 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-06-13 10:43:12 +0200
commit3150f25faa599c6c6215295144f5c6b4a87eea6e (patch)
tree3d4e2d9068820b9e18b78ba338eda75878cc8241
parent144018541b20a0aa74ce32120b3a27660fab93dd (diff)
downloadnixpkgs-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar
nixpkgs-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.gz
nixpkgs-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.bz2
nixpkgs-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.lz
nixpkgs-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.xz
nixpkgs-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.zst
nixpkgs-3150f25faa599c6c6215295144f5c6b4a87eea6e.zip
lib/tests/release.nix: Run systems tests on OfBorg
-rw-r--r--lib/tests/release.nix3
-rw-r--r--lib/tests/systems.nix2
2 files changed, 5 insertions, 0 deletions
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: {