From d9312eaa4bf20d828a3dc3e41572f43d1d482dba Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Tue, 5 Dec 2023 11:24:06 +0000 Subject: [PATCH] Modify all.sh to use new project name file Signed-off-by: Thomas Daubney --- tests/scripts/all.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 4f0e9bba14..03c9d321f8 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -115,12 +115,15 @@ set -e -o pipefail -u # Enable ksh/bash extended file matching patterns shopt -s extglob +# For project detection +PROJECT_NAME_FILE='./scripts/project_name.txt' + in_mbedtls_repo () { - test -d include -a -d library -a -d programs -a -d tests + grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE" } in_tf_psa_crypto_repo () { - test -d include -a -d core -a -d drivers -a -d programs -a -d tests + grep -Fxq "TF-PSA-Crypto" "$PROJECT_NAME_FILE" } pre_check_environment () {