Skip to content

Commit

Permalink
Make scripts fail out on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancient123 committed Jan 11, 2023
1 parent e70b421 commit 09b2ca2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/run_benchmarks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
#!/usr/bin/env bash

#Fail out on error
set -e

cd ..
cd hyperplonk
# Run the benchmark binary
Expand Down
3 changes: 3 additions & 0 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

#Fail out on error
set -e

# We want the code to panic if there is an integer overflow
export RUSTFLAGS="-C overflow-checks=on"

Expand Down
4 changes: 4 additions & 0 deletions scripts/test_coverage.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env nix-shell
#!nix-shell ../nix/nightly.nix -i bash

#Fail out on error
set -e

set -o xtrace
IGNORED_FILES="--ignore **/errors.rs\
--ignore **/src/bin/*\
Expand Down

0 comments on commit 09b2ca2

Please sign in to comment.