lib/tests/release.nix: Run systems tests on OfBorg
This commit is contained in:
parent
144018541b
commit
3150f25faa
2 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,9 @@ let
|
||||||
echo "Running lib/tests/sources.sh"
|
echo "Running lib/tests/sources.sh"
|
||||||
TEST_LIB=$PWD/lib bash 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
|
mkdir $out
|
||||||
echo success > $out/${nix.version}
|
echo success > $out/${nix.version}
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Run:
|
# Run:
|
||||||
# [nixpkgs]$ nix-instantiate --eval --strict lib/tests/systems.nix
|
# [nixpkgs]$ nix-instantiate --eval --strict lib/tests/systems.nix
|
||||||
# Expected output: [], or the failed cases
|
# Expected output: [], or the failed cases
|
||||||
|
#
|
||||||
|
# OfBorg runs (approximately) nix-build lib/tests/release.nix
|
||||||
let
|
let
|
||||||
lib = import ../default.nix;
|
lib = import ../default.nix;
|
||||||
mseteq = x: y: {
|
mseteq = x: y: {
|
||||||
|
|
Loading…
Reference in a new issue