From b7a57f408ab158a62a91a3a2b528a78869e006f3 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Wed, 20 Aug 2025 20:29:09 -0700 Subject: [PATCH] Post R5 Build 4 fixes - Added a more robust test case for the et-api installation as an experiment. --- tests/test-et-api.sh | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/tests/test-et-api.sh b/tests/test-et-api.sh index 919264a..b6d9bee 100755 --- a/tests/test-et-api.sh +++ b/tests/test-et-api.sh @@ -1,7 +1,23 @@ #!/bin/bash -# Author : Gaston Gonzalez -# Date : 13 August 2025 -# Purpose : Test et-api installation +# Author : Gaston Gonzalez +# Date : 13 August 2025 +# Updated : 20 August 2025 +# Purpose : Test et-api installation + +FILES=( + "faa.csv" + "license.csv" + "zip2geo.csv" + "zip2geo-elevation.csv" +) + +for file in "${FILES[@]}"; do + OUT=$(ls /opt/emcomm-tools-api/data/${file} 2>/dev/null) + if [[ $? -ne 0 ]]; then + echo -e "\t* Required file '$file' does not exist." + exit 1 + fi +done OUT=$(ls /opt/emcomm-tools-api/bin/et-api 2>/dev/null) exit $?