Skip to content

Commit

Permalink
Run multiple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 24, 2024
1 parent ba3258f commit c4a299a
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions scripts/flake-regressions.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
#! /usr/bin/env bash

set -e
set -x

#nix build --out-link ./new-nix

export PATH=$(pwd)/new-nix:$PATH

echo "Nix version:"
nix --version

cd flake-regressions

status=0

flake=$(ls -d tests/*/*/* | head -n1)
flakes=$(ls -d tests/*/*/* | head -n25)

echo "Running flake tests..."

for flake in $flakes; do

if ! REGENERATE=0 ./eval-flake.sh $flake; then
cat $flake/eval.stderr
status=1
echo "$flake"
else
echo "$flake"
fi

if ! REGENERATE=0 ./eval-flake.sh $flake; then
cat $flake/eval.stderr
status=1
fi
done

exit "$status"

0 comments on commit c4a299a

Please sign in to comment.