1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 09:21:47 +02:00

Run the flake-regressions test suite

This commit is contained in:
Eelco Dolstra 2024-04-24 15:26:18 +02:00
parent 39e39aa4e9
commit 257ab726aa
2 changed files with 44 additions and 11 deletions

27
scripts/flake-regressions.sh Executable file
View 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"