Skip to content

Commit

Permalink
feat: create script to list barretenberg tests (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklaayush authored Oct 1, 2023
1 parent 5ed7d10 commit fc96a27
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test_list/list_tests_barretenberg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Setup
# Clone barretenberg repository (https://github.com/aztecprotocol/barretenberg/)
# Copy this script to barretenberg/cpp

# Usage
# cd barretenberg/cpp
# ./bootstrap.sh
# ./list_tests_barretenberg.sh

# Location of binaries
BIN_DIR="./build/bin/"

# Iterate over all "_tests" binaries
for test_bin in "${BIN_DIR}"*_tests; do
# Check if file exists and is executable
if [[ -f "$test_bin" && -x "$test_bin" ]]; then
echo "Listing tests from $test_bin"
"$test_bin" --gtest_list_tests
fi
done

0 comments on commit fc96a27

Please sign in to comment.