diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-05-14 22:29:09 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-06-13 10:43:12 +0200 |
commit | 3150f25faa599c6c6215295144f5c6b4a87eea6e (patch) | |
tree | 3d4e2d9068820b9e18b78ba338eda75878cc8241 /lib | |
parent | 144018541b20a0aa74ce32120b3a27660fab93dd (diff) | |
download | nixlib-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar nixlib-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.gz nixlib-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.bz2 nixlib-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.lz nixlib-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.xz nixlib-3150f25faa599c6c6215295144f5c6b4a87eea6e.tar.zst nixlib-3150f25faa599c6c6215295144f5c6b4a87eea6e.zip |
lib/tests/release.nix: Run systems tests on OfBorg
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tests/release.nix | 3 | ||||
-rw-r--r-- | lib/tests/systems.nix | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/tests/release.nix b/lib/tests/release.nix index c3bf58db241f..5bade7112f19 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 617fb0d18b12..862496313e90 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: { |