From fc96a2746ffb8ac8bd489c195d330c5a9ec0f44e Mon Sep 17 00:00:00 2001 From: Ayush Shukla Date: Sun, 1 Oct 2023 06:55:13 +0530 Subject: [PATCH] feat: create script to list barretenberg tests (#76) --- test_list/list_tests_barretenberg.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test_list/list_tests_barretenberg.sh diff --git a/test_list/list_tests_barretenberg.sh b/test_list/list_tests_barretenberg.sh new file mode 100644 index 0000000..8495b55 --- /dev/null +++ b/test_list/list_tests_barretenberg.sh @@ -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