nix/scripts/flake-regressions.sh

28 lines
405 B
Bash
Raw Normal View History

2024-04-24 13:26:18 +00:00
#! /usr/bin/env bash
set -e
echo "Nix version:"
nix --version
cd flake-regressions
status=0
2024-06-10 13:16:41 +00:00
flakes=$(find tests -mindepth 3 -maxdepth 3 -type d -not -path '*/.*' | sort | head -n25)
2024-04-24 13:26:18 +00:00
echo "Running flake tests..."
for flake in $flakes; do
2024-06-10 13:16:41 +00:00
if ! REGENERATE=0 ./eval-flake.sh "$flake"; then
2024-04-24 13:26:18 +00:00
status=1
echo "$flake"
else
echo "$flake"
fi
done
exit "$status"