Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PROGRAM=assert_statement
# the program containing the recursive verifier
RECURSIVE_PROGRAM=verify_honk_proof

./reset_acir_tests.sh --rebuild-nargo --programs "$PROGRAM"
./reset_acir_tests.sh --programs "$PROGRAM"
cd "acir_tests/$PROGRAM"

TOML_DIR=../../../../noir/noir-repo/test_programs/execution_success/"$RECURSIVE_PROGRAM"
Expand Down
15 changes: 8 additions & 7 deletions barretenberg/acir_tests/reset_acir_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ set -e
# Run from within barretenberg/acir_tests

# Initialize variables for flags
REBUILD_NARGO_FLAG=""
REBUILD_NARGO_FLAG=true
PROGRAMS=""

# Parse the arguments
while [[ "$#" -gt 0 ]]; do
case $1 in
--rebuild-nargo)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this

REBUILD_NARGO_FLAG="--rebuild-nargo"
--no-rebuild-nargo)
REBUILD_NARGO_FLAG=false
;;
--programs)
shift
Expand All @@ -26,12 +26,13 @@ while [[ "$#" -gt 0 ]]; do
shift
done

# Clean and rebuild noir, then compile the test programs if --rebuild-nargo flag is set
cd ../../noir/noir-repo

if [[ -n "$REBUILD_NARGO_FLAG" ]]; then
cd ../../noir/noir-repo
# Clean and rebuild noir unless --no-rebuild-nargo is specified, then compile the test programs
if [[ "$REBUILD_NARGO_FLAG" == true ]]; then
cargo clean
noirup -p .
else
echo "Skipping noir nargo build."
fi

# Rebuild test programs with rebuild.sh
Expand Down
Loading