Skip to content

Commit

Permalink
Print filename and count in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
WeetHet committed Aug 20, 2024
1 parent fe55003 commit 22878ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@
packages = {
dafny-check = pkgs.writeShellScriptBin "dafny-check" ''
DIR=''${1:-.}
file_count=$(find "$DIR" -maxdepth 1 -name "*.dfy" -printf '.' | wc -m | sed 's/ //g')
file_no=0
for f in "$DIR"/*.dfy
do
file_no=$((file_no+1))
echo "Running dafny on $(basename "$f") ($file_no/$file_count)"
${pkgs.dafny}/bin/dafny verify --allow-warnings --verification-time-limit 2400 $f || exit 1
done
'';
Expand Down

0 comments on commit 22878ad

Please sign in to comment.