Skip to content

Commit 97ee172

Browse files
committed
test 6,Find new structure
1 parent f4e2f87 commit 97ee172

File tree

1 file changed

+24
-26
lines changed

1 file changed

+24
-26
lines changed

.github/workflows/hil-unity-checks.yml

+24-26
Original file line numberDiff line numberDiff line change
@@ -130,40 +130,38 @@ jobs:
130130
echo "Library: ${lib}"
131131
echo "HIL: ${hil}"
132132
133+
# loop over all fqbn in the library
134+
cd $GITHUB_WORKSPACE/tests/Unity/
135+
for DEVICE in "${DEVICES[@]}"; do
136+
FQBN==`tr '.' ':' < <"${DEVICE}"`
133137
138+
# loop over all serials and fetch the ports
139+
readarray -t SERIALS < <(echo $lib | jq ".\"${{ env.library }}\".\"${DEVICE}\" | keys[]" -r --compact-output)
140+
PORTS=()
141+
for SERIAL in "${SERIALS[@]}"; do
142+
PORTS+=$(/opt/runner_support/find_usb.sh $SERIAL)
143+
done
134144
135-
# # loop over all fqbn in the library
136-
# cd $GITHUB_WORKSPACE/tests/Unity/
137-
# for DEVICE in "${DEVICES[@]}"; do
138-
# FQBN==`tr '.' ':' < <"${DEVICE}"`
145+
# loop over all tests
146+
readarray -t TESTS < <(echo $hil | jq ".\"${{ env.library }}\".\"${DEVICE}\" | keys[]" -r --compact-output)
147+
for ((tidx=0; tidx<${#TESTS[@]}; tidx++)); do
148+
readarray -t MAKES < <(echo $hil | jq ".\"${{ env.library }}\".\"${DEVICE}\".\"${TESTS[$tidx]}\"[]" -r --compact-output)
139149
140-
# # loop over all serials and fetch the ports
141-
# readarray -t SERIALS < <(echo $lib | jq ".\"${{ env.library }}\".\"${DEVICE}\" | keys[]" -r --compact-output)
142-
# PORTS=()
143-
# for SERIAL in "${SERIALS[@]}"; do
144-
# PORTS+=$(/opt/runner_support/find_usb.sh $SERIAL)
145-
# done
150+
# loop over all makes in the test for sender receiver tests
151+
for ((midx=0; midx<${#MAKES[@]}; midx++)); do
152+
echo "FQBN: ${FQBN}"
153+
echo "PORT: ${PORTS[$tidx]}"
154+
echo "MAKE: ${MAKES[$midx]}"
155+
make FQBN=${FQBN} PORT=${PORTS[$tidx]} UNITY_PATH=/opt/runner_support/Unity ${MAKES[$midx]}
156+
echo "MAKE: ${MAKES[$midx]}"
157+
done
146158
147-
# # loop over all tests
148-
# readarray -t TESTS < <(echo $hil | jq ".\"${{ env.library }}\".\"${DEVICE}\" | keys[]" -r --compact-output)
149-
# for ((tidx=0; tidx<${#TESTS[@]}; tidx++)); do
150-
# readarray -t MAKES < <(echo $hil | jq ".\"${{ env.library }}\".\"${DEVICE}\".\"${TESTS[$tidx]}\"[]" -r --compact-output)
151159
152-
# # loop over all makes in the test for sender receiver tests
153-
# for ((midx=0; midx<${#MAKES[@]}; midx++)); do
154-
# echo "FQBN: ${FQBN}"
155-
# echo "PORT: ${PORTS[$tidx]}"
156-
# echo "MAKE: ${MAKES[$midx]}"
157-
# make FQBN=${FQBN} PORT=${PORTS[$tidx]} UNITY_PATH=/opt/runner_support/Unity ${MAKES[$midx]}
158-
# echo "MAKE: ${MAKES[$midx]}"
159-
# done
160160
161161
162162
163-
164-
165-
# done
166-
# done
163+
done
164+
done
167165
168166
169167

0 commit comments

Comments
 (0)