Skip to content

Commit

Permalink
Adding build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Jun 6, 2024
1 parent 2e1c026 commit c41beae
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions integration-tests/scripts/buildTests
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ set -ex
# get this scripts directory
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)

helm repo update

cd "$SCRIPT_DIR"/../ || exit 1

helm repo update

# parse out quotes if they exist in the string
temp="${1%\"}"
tosplit="${temp#\"}"
Expand All @@ -21,6 +21,12 @@ OIFS=$IFS
IFS=' '
for x in $tosplit
do
go test -c ./"${x}"
if [ "$x" = "load" ]; then
echo "Changing directory and executing go test -c ./... for 'load' package"
pushd "./load" && go test -c -tags embed -o .. ./...
popd
else
go test -c -tags embed ./"${x}"
fi
done
IFS=$OIFS

0 comments on commit c41beae

Please sign in to comment.