Skip to content

Commit

Permalink
test 6,Find new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafFilies committed Oct 29, 2024
1 parent a12499e commit 853d69f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/hil-unity-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,12 @@ jobs:
lib=$(./py_checkusb.py --type ${{ env.library }} --json)
if [[ -z $lib || $lib == "{}" ]]; then
echo "No library information found"
exit 1
exit 0
fi
readarray -t DEVICES < <(echo $lib | jq ".\"${{ env.library }}\" | keys[]" -r --compact-output --null-input)
echo "HIL: $hil"
echo "LIB: $lib"
# loop over all fqbn in the library
cd ~/.arduino15/packages/Infineon/hardware/xmc/$TEST_VERSION/libraries/${{ env.library }} # change this
cd $GITHUB_WORKSPACE/tests/Unity/
for DEVICE in "${DEVICES[@]}"; do
FQBN==`tr '.' ':' < <"${DEVICE}"`
Expand All @@ -152,6 +145,9 @@ jobs:
# loop over all makes in the test for sender receiver tests
for ((midx=0; midx<${#MAKES[@]}; midx++)); do
echo "FQBN: ${FQBN}"
echo "PORT: ${PORTS[$tidx]}"
echo "MAKE: ${MAKES[$midx]}"
make FQBN=${FQBN} PORT=${PORTS[$tidx]} UNITY_PATH=/opt/runner_support/Unity ${MAKES[$midx]}
echo "MAKE: ${MAKES[$midx]}"
done
Expand Down

0 comments on commit 853d69f

Please sign in to comment.