From b8f96b349a0bb4cc6336e1604bea44322e09e126 Mon Sep 17 00:00:00 2001 From: ludamad Date: Mon, 11 Sep 2023 13:39:36 -0400 Subject: [PATCH] chore: add debugging to run_tests --- circuits/cpp/barretenberg/cpp/scripts/run_tests | 2 +- circuits/cpp/barretenberg/ts/scripts/run_tests | 2 +- circuits/cpp/scripts/run_tests | 2 +- circuits/cpp/scripts/run_tests_local | 2 +- yarn-project/canary/scripts/run_tests | 2 +- yarn-project/end-to-end/scripts/run_tests | 2 +- yarn-project/end-to-end/scripts/run_tests_local | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/circuits/cpp/barretenberg/cpp/scripts/run_tests b/circuits/cpp/barretenberg/cpp/scripts/run_tests index af588c78ccc..b3b7ba69cd7 100755 --- a/circuits/cpp/barretenberg/cpp/scripts/run_tests +++ b/circuits/cpp/barretenberg/cpp/scripts/run_tests @@ -3,7 +3,7 @@ # 1. The number of ignition transcripts to download. # 2. The set of gtest binary names to run. # 3-n. The arguments to pass to the gtest binaries. -set -eu +set -exu NUM_TRANSCRIPTS=$1 TESTS=$2 diff --git a/circuits/cpp/barretenberg/ts/scripts/run_tests b/circuits/cpp/barretenberg/ts/scripts/run_tests index 7a97ff6adef..ed93c9a8091 100755 --- a/circuits/cpp/barretenberg/ts/scripts/run_tests +++ b/circuits/cpp/barretenberg/ts/scripts/run_tests @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -xe $(aws ecr get-login --region us-east-2 --no-include-email) 2> /dev/null diff --git a/circuits/cpp/scripts/run_tests b/circuits/cpp/scripts/run_tests index 2b203c7e5f0..a7ff014edcb 100755 --- a/circuits/cpp/scripts/run_tests +++ b/circuits/cpp/scripts/run_tests @@ -1,5 +1,5 @@ #!/bin/bash -set -eu +set -exu # To be called from CI for testing with docker and AWS. # Can't be called locally unless AWS credentials are set up. diff --git a/circuits/cpp/scripts/run_tests_local b/circuits/cpp/scripts/run_tests_local index 12e3207dc79..1087ebc83a7 100755 --- a/circuits/cpp/scripts/run_tests_local +++ b/circuits/cpp/scripts/run_tests_local @@ -1,5 +1,5 @@ #!/bin/bash -set -eu +set -exu DIR="$(dirname "$0")" diff --git a/yarn-project/canary/scripts/run_tests b/yarn-project/canary/scripts/run_tests index b9e645c11ff..7dc55d20d18 100755 --- a/yarn-project/canary/scripts/run_tests +++ b/yarn-project/canary/scripts/run_tests @@ -1,7 +1,7 @@ #!/bin/bash # This script is used to run an e2e test in CI (see config.yml and cond_spot_run_tests). # It sets a few environment variables used inside the docker-compose.yml, pulls images, and runs docker-compose. -set -eu +set -exu export TEST=$1 export IMAGE=${2:-canary} diff --git a/yarn-project/end-to-end/scripts/run_tests b/yarn-project/end-to-end/scripts/run_tests index ef6dcc1187f..e766103da17 100755 --- a/yarn-project/end-to-end/scripts/run_tests +++ b/yarn-project/end-to-end/scripts/run_tests @@ -1,7 +1,7 @@ #!/bin/bash # This script is used to run an e2e test in CI (see config.yml and cond_spot_run_tests). # It sets a few environment variables used inside the docker-compose.yml, pulls images, and runs docker-compose. -set -eu +set -exu export TEST=$1 export COMPOSE_FILE=${2:-docker-compose.yml} diff --git a/yarn-project/end-to-end/scripts/run_tests_local b/yarn-project/end-to-end/scripts/run_tests_local index 9efbe4b6415..5d11fd18ea0 100755 --- a/yarn-project/end-to-end/scripts/run_tests_local +++ b/yarn-project/end-to-end/scripts/run_tests_local @@ -1,7 +1,7 @@ #!/bin/bash # This script is used to run an e2e test in CI (see config.yml and cond_run_script). # It sets a few environment variables used inside the docker-compose.yml, pulls images, and runs docker-compose. -set -eu +set -exu export TEST=$1 export COMPOSE_FILE=${2:-./scripts/docker-compose.yml}