mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Run the flake-regressions test suite
This commit is contained in:
parent
1c131ec2b7
commit
36cc8d5f4b
2 changed files with 47 additions and 0 deletions
27
scripts/flake-regressions.sh
Executable file
27
scripts/flake-regressions.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "Nix version:"
|
||||
nix --version
|
||||
|
||||
cd flake-regressions
|
||||
|
||||
status=0
|
||||
|
||||
flakes=$(ls -d tests/*/*/* | head -n25)
|
||||
|
||||
echo "Running flake tests..."
|
||||
|
||||
for flake in $flakes; do
|
||||
|
||||
if ! REGENERATE=0 ./eval-flake.sh $flake; then
|
||||
status=1
|
||||
echo "❌ $flake"
|
||||
else
|
||||
echo "✅ $flake"
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
exit "$status"
|
Loading…
Add table
Add a link
Reference in a new issue