lib/tests/release.nix: Run systems tests on OfBorg

This commit is contained in:
Robert Hensing 2023-05-14 22:29:09 +02:00
parent 144018541b
commit 3150f25faa
2 changed files with 5 additions and 0 deletions

View file

@ -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}
'';

View file

@ -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: {