Skip to content

Commit

Permalink
tests/psoc6: Modification for cicd.
Browse files Browse the repository at this point in the history
Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>
  • Loading branch information
IFX-Anusha committed Mar 26, 2024
1 parent cb3f0c0 commit 984e7f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ports_psoc6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ jobs:
./psoc6/run_psoc6_tests.sh -c --psoc6-hwext --dev0 ${devs[0]}
- name: Run psoc6 bitstream tests
run: |
devs=($(python tools/psoc6/get-devs.py port -b ${{ matrix.board }} -y tools/psoc6/${{ runner.name }}-devs.yml))
devs0=($(python tools/psoc6/get-devs.py port -b ${{ matrix.board }} -y tools/psoc6/${{ runner.name }}-devs.yml --hw-ext 0.1.0))
devs1=($(python tools/psoc6/get-devs.py port -b ${{ matrix.board }} -y tools/psoc6/${{ runner.name }}-devs.yml --hw-ext 0.2.0))
cd tests
./psoc6/run_psoc6_tests.sh -c -b --dev0 ${devs[0]} --dev1 ${devs[1]}
./psoc6/run_psoc6_tests.sh -c -b --dev0 ${devs0[0]} --dev1 ${devs1[0]}
# TODO: Enable when HIL is upgraded
# - name: Run all implemented tests
# if: github.event_name == 'pull_request'
Expand Down
4 changes: 2 additions & 2 deletions tests/psoc6/run_psoc6_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,11 @@ if [ ${bitstream} -eq 1 ]; then

chmod 777 ./psoc6/test_scripts/bit.py

python3 ./psoc6/test_scripts/bit.py ${device0} 0
python3 ./psoc6/test_scripts/bit.py ${device1} 0

echo " running bitstream listen.."

./run-tests.py --target psoc6 --device ${device1} \
./run-tests.py --target psoc6 --device ${device0} \
\
psoc6/bitstream/bitstream_listen.py \
|tee -a ${resultsFile}
Expand Down
2 changes: 2 additions & 0 deletions tools/psoc6/ifx-mpy-hil-devs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
- sn: 072002F302098400
hw_ext: 0.1.0
- sn: 1C14031D03201400
hw_ext: 0.2.0
- board_type: CY8CPROTO-063-BLE
board_list:
- sn: 100D0F1400052400
hw_ext: 0.2.0
- sn: 03180F1400052400
hw_ext: 0.1.0

0 comments on commit 984e7f2

Please sign in to comment.