From e2ed52d19ae47ba73cbb1698f5ff9232baa37210 Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Mon, 28 Jul 2025 09:46:20 +0530 Subject: [PATCH 1/8] extras/arduino-core-tests: Move core tests submodule to extras. Signed-off-by: Ramya Subramanyam --- .gitmodules | 6 +++--- extras/arduino-core-tests | 1 + {tests => extras}/test_config.h | 0 tests/arduino-core-tests | 1 - tools/dev-setup.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) create mode 160000 extras/arduino-core-tests rename {tests => extras}/test_config.h (100%) delete mode 160000 tests/arduino-core-tests diff --git a/.gitmodules b/.gitmodules index 64febfba..47f501b8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,9 +22,6 @@ [submodule "extras/mtb-libs/retarget-io"] path = extras/mtb-libs/retarget-io url = https://github.com/Infineon/retarget-io.git -[submodule "tests/arduino-core-tests"] - path = tests/arduino-core-tests - url = https://github.com/Infineon/arduino-core-tests.git [submodule "extras/mtb-libs/abstraction-rtos"] path = extras/mtb-libs/abstraction-rtos url = https://github.com/Infineon/abstraction-rtos.git @@ -76,3 +73,6 @@ [submodule "extras/makers-devops"] path = extras/makers-devops url = https://github.com/Infineon/makers-devops.git +[submodule "extras/arduino-core-tests"] + path = extras/arduino-core-tests + url = https://github.com/Infineon/arduino-core-tests.git diff --git a/extras/arduino-core-tests b/extras/arduino-core-tests new file mode 160000 index 00000000..86a45715 --- /dev/null +++ b/extras/arduino-core-tests @@ -0,0 +1 @@ +Subproject commit 86a45715ad88d4c5295ce98b91e8e91a32ceb33d diff --git a/tests/test_config.h b/extras/test_config.h similarity index 100% rename from tests/test_config.h rename to extras/test_config.h diff --git a/tests/arduino-core-tests b/tests/arduino-core-tests deleted file mode 160000 index 7a8d9a42..00000000 --- a/tests/arduino-core-tests +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7a8d9a422d0463c66628316e02c314f3badae5c0 diff --git a/tools/dev-setup.sh b/tools/dev-setup.sh index 26a823ad..55f961e1 100644 --- a/tools/dev-setup.sh +++ b/tools/dev-setup.sh @@ -7,7 +7,7 @@ echo ${PWD} function git_submodule_setup { echo "Setting up Git Submodules..." git submodule init - git submodule update --recursive + git submodule update --init --recursive } function core_api_setup { From 021c0737d7aa3d71fdc31c9ec7f9ed9706364ff7 Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Mon, 28 Jul 2025 09:47:55 +0530 Subject: [PATCH 2/8] .github/workflows: ./config: Add unity tests to hil workflow. Signed-off-by: Ramya Subramanyam --- .github/workflows/hil_checks.yml | 14 +++ .github/workflows/hil_unity_checks.yml | 162 ------------------------- config/project.yml | 134 ++++++++++++++++++++ config/user.yml | 8 ++ extras/arduino-core-tests | 2 +- extras/makers-devops | 2 +- 6 files changed, 158 insertions(+), 164 deletions(-) create mode 100644 .github/workflows/hil_checks.yml delete mode 100644 .github/workflows/hil_unity_checks.yml create mode 100644 config/project.yml create mode 100644 config/user.yml diff --git a/.github/workflows/hil_checks.yml b/.github/workflows/hil_checks.yml new file mode 100644 index 00000000..cc71aee2 --- /dev/null +++ b/.github/workflows/hil_checks.yml @@ -0,0 +1,14 @@ +name: Hil Checks + +on: + push: + +jobs: + makers-devops: + uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@add-hil-workflow + with: + project-yaml: config/project.yml + user-yaml: config/user.yml + secrets: inherit + + \ No newline at end of file diff --git a/.github/workflows/hil_unity_checks.yml b/.github/workflows/hil_unity_checks.yml deleted file mode 100644 index 81842cc2..00000000 --- a/.github/workflows/hil_unity_checks.yml +++ /dev/null @@ -1,162 +0,0 @@ -name: Hil unity library checks - -# on which event should we start push, pull request or schedule dispatches -on: - - push - - pull_request - -env: - TEST_VERSION: 1.0.0 - -jobs: - - # The build job compiles the sample code for different boards - tests: - - ############################################################################# - # This action sets common variables for the flow and - # identifies the libs to compile - runs-on: - - self-hosted - - X64 - - Linux - - PSOC - - # which combination of sample code and boards should run - # for this example of 2 sample codes and 3 boards a total of 2x3=6 runners have to work. - # if we have only 4 runner then these 4 are started and the last 2 are waiting until they can start - strategy: - - matrix: - # List of all examples in the lib to compile - example: [ - examples/testSketch/testSketch.ino - ] - - # board packages we want to run - # attention the matrix spans over the fqbn not platform so that we can choose different boards - # this example compiles each sample code for Arduino Uno, XMC2Go and XMC4700 boards - fqbn: [ - "infineon:psoc6:cy8ckit_062s2_ai" - ] - - # include additional information for each fqbn, in this case the platform name to install - include: - - fqbn: "infineon:psoc6:cy8ckit_062s2_ai" - platform: "infineon:psoc6" - - # These are the steps which should run for each combination of fqbn and example code - steps: - - - name: Checkout repository - uses: actions/checkout@v4 - with: - submodules: true - fetch-tags: true - fetch-depth: 0 - - - name: Checkout arduino-devops - uses: actions/checkout@v4 - with: - repository: Infineon/arduino-devops - ref: latest - path: arduino-devops - - - name: Pack Arduino core - run: | - python ./arduino-devops/arduino-packager.py --no-version-check --no-previous-releases - - - name: Install Arduino core - run: | - python ./arduino-devops/pckg-install-local.py --pckg-dir build --verbose - - - name: Remove latest installed platform version - run: | - cd ~/.arduino15/packages/infineon/hardware/psoc6 - rm -rf * - - - name: copy/link repository to arduino path - run: | - mkdir ~/.arduino15/packages/infineon/hardware/psoc6/$TEST_VERSION - cp -a ./* ~/.arduino15/packages/infineon/hardware/psoc6/$TEST_VERSION - cd ~/.arduino15/packages/infineon/hardware/psoc6/$TEST_VERSION - - - name: copy/link arduino core api path - run: | - bash ./tools/dev-setup.sh - mkdir ~/.arduino15/packages/infineon/hardware/psoc6/$TEST_VERSION/cores/psoc6/api - cp -a ~/.arduino15/packages/infineon/hardware/psoc6/$TEST_VERSION/extras/arduino-core-api/api/* ~/.arduino15/packages/infineon/hardware/psoc6/$TEST_VERSION/cores/psoc6/api - - # Fetch variables and move them to the GITHUB_OUTPUT and fetch HIL information - - id: startup - run: | - # switch on the HIL - cd /opt/runner_support/ - - # set the hil-unity-checks - hil=$(./py_checkusb.py --readyaml ~/.arduino15/packages/infineon/hardware/psoc6/$TEST_VERSION/tests/hil-unity-checklist.yaml --json) - echo "hil=${hil}" >> $GITHUB_OUTPUT - echo "hil=${hil}" - - # fetch unity libraries - readarray -t data < <(echo $hil | jq -r '.|keys[]') - export dev=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${data[@]}") - echo "devices=${dev}" >> $GITHUB_OUTPUT - echo "devices=${dev}" - - # setup environment - - name: Environment - run: | - hil=${{ toJson(steps.startup.outputs.hil) }} - REPO="$(basename "$GITHUB_REPOSITORY")" - DEVICE=${{ steps.startup.outputs.devices }} - DEVICE=$(echo $DEVICE | tr -d '[]') - FQBN=$(echo $DEVICE | tr -d '[]') - DEVICE=`tr ':' '.' <<<"${DEVICE}"` - - echo "repo=$REPO" >> $GITHUB_ENV - echo "device=$DEVICE" >> $GITHUB_ENV - echo "version=$TEST_VERSION" >> $GITHUB_ENV - echo "fqbn=$FQBN" >> $GITHUB_ENV - - echo "Repo " $REPO - echo "Device " $DEVICE - echo "FQBN " $FQBN - echo "Version " ${TEST_VERSION} - - - name: Build - run: | - export TMPDIR=$HOME/tmp - mkdir -p $TMPDIR - rm -rf $HOME/artefact - mkdir -p $HOME/artefact - - cd ~/.arduino15/packages/infineon/hardware/psoc6/$TEST_VERSION/tests/arduino-core-tests/ - echo "==============================================================================================================" - echo "Run Tests" - echo "==============================================================================================================" - make FQBN=${{ env.fqbn }} PORT=/dev/ttyACM0 test_digitalio_single - mkdir -p ~/artefact/unit_tests/${{ env.device }} - mv ./build/* ~/artefact/unit_tests/. - echo "==============================================================================================================" - - - - echo "==============================================================================================================" - echo "Monitor" - timeout 1m \ - /opt/runner_support/py_console.py \ - --port /dev/ttyACM0 \ - --baud 115200 \ - --report ~/artefact/unit_tests/${{ env.device }}/report.json - - echo "==============================================================================================================" - - - # Upload the compiled HEX files to the GitHub server - - name: Artefact - uses: actions/upload-artifact@v4 - with: - name: ${{ env.device }} - path: ~/artefact/* - if-no-files-found: ignore \ No newline at end of file diff --git a/config/project.yml b/config/project.yml new file mode 100644 index 00000000..3c70a291 --- /dev/null +++ b/config/project.yml @@ -0,0 +1,134 @@ +options: + USE_CORE: + name: local + url: http://blabla + # INCLUDE: + # - filename + +compile: + compile-psoc6-cy8ckit_062s2_ai: + description: Compiling test_digitalio_single.cpp for PSOC6 platform + command: make -f Makefile.arduino.mk test_digitalio_single compile + fqbns: [infineon:psoc6:cy8ckit_062s2_ai] + working_dir: tests/arduino-core-tests + +code-quality: + source-code-quality-clang-tidy: + description: clang-tidy check sources + tool: clang-tidy + command: extras/makers-devops/tools/code_checks/run_clang_tidy.sh ./cores/psoc6/* ./libraries/* + + source-code-quality-cppcheck: + description: cppcheck check sources + tool: cppcheck + command: extras/makers-devops/tools/code_checks/run_cppcheck.sh ./cores/psoc6/* ./libraries/* + | -I extras/arduino-core-api/api/ -I variants/CY8CKIT-062S2-AI/mtb-bsp -I extras/mtb-libs/core-lib/include + | -I libraries/WiFi/src -I libraries/Wire/src -I libraries/SPI/src -I extras/mtb-libs/mtb-hal-cat1/include + | -I extras/mtb-libs/wifi-connection-manager/include --suppress=*:extras/mtb-libs/wifi-connection-manager/include* + | -I variants/CY8CKIT-062S2-AI -I cores/psoc6 --suppress=*:variants/CY8CKIT-062S2-AI/* --suppress=*:extras/mtb-libs/mtb-hal-cat1/include/* + | --suppress=*:extras/arduino-core-api/api/* --suppress=*:cores/psoc6/api/* --suppress=*:variants/CY8CKIT-062S2-AI/mtb-bsp/* --suppress=*:extras/mtb-libs/core-lib/include/* + + test-code-quality-clang-tidy: + description: clang-tidy check tests + tool: clang-tidy + command: extras/makers-devops/tools/code_checks/run_clang_tidy.sh ./tests/arduino-core-tests/src/* + + test-code-quality-cppcheck: + description: cppcheck check tests + tool: cppcheck + command: extras/makers-devops/tools/code_checks/run_cppcheck.sh ./tests/arduino-core-tests/src/* + | -I extras/arduino-core-api/api/ -I variants/CY8CKIT-062S2-AI/mtb-bsp -I extras/mtb-libs/core-lib/include + | -I libraries/WiFi/src -I libraries/Wire/src -I libraries/SPI/src -I extras/mtb-libs/mtb-hal-cat1/include + | -I extras/mtb-libs/wifi-connection-manager/include --suppress=*:extras/mtb-libs/wifi-connection-manager/include* + | -I tests/arduino-core-tests/Unity/src --suppress=*:tests/arduino-core-tests/Unity/src/* + | -I variants/CY8CKIT-062S2-AI -I cores/psoc6 --suppress=*:variants/CY8CKIT-062S2-AI/* --suppress=*:extras/mtb-libs/mtb-hal-cat1/include/* + | --suppress=*:extras/arduino-core-api/api/* --suppress=*:cores/psoc6/api/* --suppress=*:variants/CY8CKIT-062S2-AI/mtb-bsp/* --suppress=*:extras/mtb-libs/core-lib/include/* + + code-quality-clang-format: + description: clang-tidy check sources + tool: clang-format + command: extras/makers-devops/tools/code_checks/run_clang_format.sh ./cores/psoc6/* ./libraries/* + + code-quality-black-format: + description: clang-tidy check sources + tool: black-format + command: extras/makers-devops/tools/code_checks/run_black.sh ./extras/makers-devops/tools/* + +unit-test: + unit-test-digital-io: + - description: Compiling, flashing and monitoring digital IO unit test. + command: make test_digitalio_single + query: digital_io_single_board == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: false + + unit-test-tone: + - description: Compiling, flashing and monitoring digital IO unit test. + command: make test_digitalio_single + query: tone_no_tone_single_board == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: false + + unit-test-interrupts: + - description: Compiling, flashing and monitoring Interrupts unit test. + command: make test_interrupts_single + query: interrupts_single_board == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: false + + unit-test-random: + - description: Compiling, flashing and monitoring Interrupts unit test. + command: make test_random + query: random_single_board == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: false + + unit-test-time: + - description: Compiling, flashing and monitoring Time unit test. + command: make test_time_single + query: time_single_board == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: false + + unit-test-iic-pingpong: + - description: Compiling, flashing and monitoring I2C pingpong master unit test. + command: make test_wire_connected2_masterpingpong + query: iic_ping_pong_multiple_boards_master == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: true + + - description: Compiling, flashing and monitoring I2C pingpong slave unit test. + command: make test_wire_connected2_slavepingpong + query: iic_ping_pong_multiple_boards_slave == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: true + + unit-test-spi-pingpong: + - description: Compiling, flashing and monitoring SPI pingpong slave unit test. + command: make test_spi_connected2_slavepingpong + query: spi_ping_pong_multiple_boards_slave == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: true + + - description: Compiling, flashing and monitoring SPI pingpong master unit test. + command: make test_spi_connected2_masterpingpong + query: spi_ping_pong_multiple_boards_master == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: true + + unit-test-spi-loopback: + - description: Compiling, flashing and monitoring SPI loopback unit test. + command: make test_spi_connected1_loopback + query: spi_ping_pong_single_board == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: true diff --git a/config/user.yml b/config/user.yml new file mode 100644 index 00000000..46f05b9a --- /dev/null +++ b/config/user.yml @@ -0,0 +1,8 @@ +unit-test: + - unit-test-iic-pingpong + - unit-test-spi-pingpong + - unit-test-digital-io + - unit-test-interrupts + - unit-test-time + - unit-test-random + - unit-test-tone diff --git a/extras/arduino-core-tests b/extras/arduino-core-tests index 86a45715..168bbf11 160000 --- a/extras/arduino-core-tests +++ b/extras/arduino-core-tests @@ -1 +1 @@ -Subproject commit 86a45715ad88d4c5295ce98b91e8e91a32ceb33d +Subproject commit 168bbf113e89281894f649b799b1df44553ec9b5 diff --git a/extras/makers-devops b/extras/makers-devops index a6cf4f91..8908295b 160000 --- a/extras/makers-devops +++ b/extras/makers-devops @@ -1 +1 @@ -Subproject commit a6cf4f91a8f110d6931b8d7614ded625cd40aa66 +Subproject commit 8908295be48cb50e560097b1f72d63df531565c3 From 06bc68a228b595a1f04c6093010ca9fa1b04a92d Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Tue, 29 Jul 2025 09:45:31 +0530 Subject: [PATCH 3/8] ./config: .github/workflows: Fix running the tests on HIL setup. Signed-off-by: Ramya Subramanyam --- .github/workflows/hil_checks.yml | 2 +- config/project.yml | 8 ++++++++ config/user.yml | 2 ++ extras/makers-devops | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hil_checks.yml b/.github/workflows/hil_checks.yml index cc71aee2..1e2a399d 100644 --- a/.github/workflows/hil_checks.yml +++ b/.github/workflows/hil_checks.yml @@ -5,7 +5,7 @@ on: jobs: makers-devops: - uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@add-hil-workflow + uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@main with: project-yaml: config/project.yml user-yaml: config/user.yml diff --git a/config/project.yml b/config/project.yml index 3c70a291..916c789b 100644 --- a/config/project.yml +++ b/config/project.yml @@ -132,3 +132,11 @@ unit-test: working_dir: extras/arduino-core-tests options: SEND_JOB_START_TOKEN: true + + unit-test-iic-single-board: + - description: Compiling, flashing and monitoring I2C single board unit test. + command: make test_wire_connected1_pingpong + query: iic_ping_pong_single_board == '1:1' + working_dir: extras/arduino-core-tests + options: + SEND_JOB_START_TOKEN: true diff --git a/config/user.yml b/config/user.yml index 46f05b9a..94bec289 100644 --- a/config/user.yml +++ b/config/user.yml @@ -6,3 +6,5 @@ unit-test: - unit-test-time - unit-test-random - unit-test-tone + - unit-test-spi-loopback + - unit-test-iic-single-board diff --git a/extras/makers-devops b/extras/makers-devops index 8908295b..33a19ea7 160000 --- a/extras/makers-devops +++ b/extras/makers-devops @@ -1 +1 @@ -Subproject commit 8908295be48cb50e560097b1f72d63df531565c3 +Subproject commit 33a19ea72d52f9547db818741ad97d9cb3a91a84 From 87b36c8dac10ece46e68e7f88e06da0627c0557e Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Thu, 31 Jul 2025 21:38:33 +0530 Subject: [PATCH 4/8] config/project.yml: Fix yaml file with latest update. Signed-off-by: Ramya Subramanyam --- .github/workflows/hil_checks.yml | 2 +- README.md | 2 +- config/project.yml | 29 ++++++++++++++++------------- extras/arduino-core-tests | 2 +- extras/makers-devops | 2 +- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/hil_checks.yml b/.github/workflows/hil_checks.yml index 1e2a399d..dd3e57b2 100644 --- a/.github/workflows/hil_checks.yml +++ b/.github/workflows/hil_checks.yml @@ -5,7 +5,7 @@ on: jobs: makers-devops: - uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@main + uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@fix-hil-test with: project-yaml: config/project.yml user-yaml: config/user.yml diff --git a/README.md b/README.md index 2d4b4225..91eb67c9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![compile examples](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/compile_examples.yml/badge.svg)](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/compile_examples.yml) -[![HIL test](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/hil_unity_checks.yml/badge.svg)](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/hil_unity_checks.yml) +[![HIL test](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/hil_checks.yml/badge.svg)](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/hil_unity_checks.yml) [![code format check](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/code_formatting.yml/badge.svg)](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/code_formatting.yml) [![code spell check](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/codespell.yml/badge.svg)](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/codespell.yml) [![commit message check](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/commit_formatting.yml/badge.svg)](https://github.com/Infineon/arduino-core-psoc6/actions/workflows/commit_formatting.yml) diff --git a/config/project.yml b/config/project.yml index 916c789b..0eef2f2a 100644 --- a/config/project.yml +++ b/config/project.yml @@ -1,4 +1,7 @@ options: + SEND_JOB_START_TOKEN: true + PARSER_START_TOKEN: Unity test run + PARSER_END_TOKEN: "^OK|^FAIL" USE_CORE: name: local url: http://blabla @@ -57,7 +60,7 @@ code-quality: unit-test: unit-test-digital-io: - description: Compiling, flashing and monitoring digital IO unit test. - command: make test_digitalio_single + command: make test_digitalio_single UNITY_PATH=/opt/Unity query: digital_io_single_board == '1:1' working_dir: extras/arduino-core-tests options: @@ -65,7 +68,7 @@ unit-test: unit-test-tone: - description: Compiling, flashing and monitoring digital IO unit test. - command: make test_digitalio_single + command: make test_tone_no_tone UNITY_PATH=/opt/Unity query: tone_no_tone_single_board == '1:1' working_dir: extras/arduino-core-tests options: @@ -73,7 +76,7 @@ unit-test: unit-test-interrupts: - description: Compiling, flashing and monitoring Interrupts unit test. - command: make test_interrupts_single + command: make test_interrupts_single UNITY_PATH=/opt/Unity query: interrupts_single_board == '1:1' working_dir: extras/arduino-core-tests options: @@ -81,7 +84,7 @@ unit-test: unit-test-random: - description: Compiling, flashing and monitoring Interrupts unit test. - command: make test_random + command: make test_random UNITY_PATH=/opt/Unity query: random_single_board == '1:1' working_dir: extras/arduino-core-tests options: @@ -89,7 +92,7 @@ unit-test: unit-test-time: - description: Compiling, flashing and monitoring Time unit test. - command: make test_time_single + command: make test_time_single UNITY_PATH=/opt/Unity query: time_single_board == '1:1' working_dir: extras/arduino-core-tests options: @@ -97,29 +100,29 @@ unit-test: unit-test-iic-pingpong: - description: Compiling, flashing and monitoring I2C pingpong master unit test. - command: make test_wire_connected2_masterpingpong - query: iic_ping_pong_multiple_boards_master == '1:1' + command: make test_wire_connected2_slavepingpong UNITY_PATH=/opt/Unity + query: iic_ping_pong_multiple_boards_slave == '1:1' working_dir: extras/arduino-core-tests options: SEND_JOB_START_TOKEN: true - description: Compiling, flashing and monitoring I2C pingpong slave unit test. - command: make test_wire_connected2_slavepingpong - query: iic_ping_pong_multiple_boards_slave == '1:1' + command: make test_wire_connected2_masterpingpong UNITY_PATH=/opt/Unity + query: iic_ping_pong_multiple_boards_master == '1:1' working_dir: extras/arduino-core-tests options: SEND_JOB_START_TOKEN: true unit-test-spi-pingpong: - description: Compiling, flashing and monitoring SPI pingpong slave unit test. - command: make test_spi_connected2_slavepingpong + command: make test_spi_connected2_slavepingpong UNITY_PATH=/opt/Unity query: spi_ping_pong_multiple_boards_slave == '1:1' working_dir: extras/arduino-core-tests options: SEND_JOB_START_TOKEN: true - description: Compiling, flashing and monitoring SPI pingpong master unit test. - command: make test_spi_connected2_masterpingpong + command: make test_spi_connected2_masterpingpong UNITY_PATH=/opt/Unity query: spi_ping_pong_multiple_boards_master == '1:1' working_dir: extras/arduino-core-tests options: @@ -127,7 +130,7 @@ unit-test: unit-test-spi-loopback: - description: Compiling, flashing and monitoring SPI loopback unit test. - command: make test_spi_connected1_loopback + command: make test_spi_connected1_loopback UNITY_PATH=/opt/Unity query: spi_ping_pong_single_board == '1:1' working_dir: extras/arduino-core-tests options: @@ -135,7 +138,7 @@ unit-test: unit-test-iic-single-board: - description: Compiling, flashing and monitoring I2C single board unit test. - command: make test_wire_connected1_pingpong + command: make test_wire_connected1_pingpong UNITY_PATH=/opt/Unity query: iic_ping_pong_single_board == '1:1' working_dir: extras/arduino-core-tests options: diff --git a/extras/arduino-core-tests b/extras/arduino-core-tests index 168bbf11..a3ce99bb 160000 --- a/extras/arduino-core-tests +++ b/extras/arduino-core-tests @@ -1 +1 @@ -Subproject commit 168bbf113e89281894f649b799b1df44553ec9b5 +Subproject commit a3ce99bb48feb9d9d03f499e820e64074bf06353 diff --git a/extras/makers-devops b/extras/makers-devops index 33a19ea7..702d4770 160000 --- a/extras/makers-devops +++ b/extras/makers-devops @@ -1 +1 @@ -Subproject commit 33a19ea72d52f9547db818741ad97d9cb3a91a84 +Subproject commit 702d4770aa822ea65d1ac5ac7cada1c7d0170064 From 95657c802f1121578cbcefb241c1500f29cb5952 Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Wed, 6 Aug 2025 14:11:25 +0530 Subject: [PATCH 5/8] config: extras: Update submodules and fix documentation. Signed-off-by: Ramya Subramanyam --- config/project.yml | 58 ++++++++++++--------------------------- extras/arduino-core-tests | 2 +- extras/makers-devops | 2 +- 3 files changed, 19 insertions(+), 43 deletions(-) diff --git a/config/project.yml b/config/project.yml index 0eef2f2a..7277ff27 100644 --- a/config/project.yml +++ b/config/project.yml @@ -1,10 +1,8 @@ options: - SEND_JOB_START_TOKEN: true - PARSER_START_TOKEN: Unity test run - PARSER_END_TOKEN: "^OK|^FAIL" USE_CORE: name: local url: http://blabla + SEND_JOB_START_TOKEN: true # INCLUDE: # - filename @@ -60,86 +58,64 @@ code-quality: unit-test: unit-test-digital-io: - description: Compiling, flashing and monitoring digital IO unit test. - command: make test_digitalio_single UNITY_PATH=/opt/Unity + command: make test_digitalio_single query: digital_io_single_board == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: false unit-test-tone: - - description: Compiling, flashing and monitoring digital IO unit test. - command: make test_tone_no_tone UNITY_PATH=/opt/Unity + - description: Compiling, flashing and monitoring tone, no-tone unit test. + command: make test_digitalio_single query: tone_no_tone_single_board == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: false unit-test-interrupts: - description: Compiling, flashing and monitoring Interrupts unit test. - command: make test_interrupts_single UNITY_PATH=/opt/Unity + command: make test_interrupts_single query: interrupts_single_board == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: false unit-test-random: - - description: Compiling, flashing and monitoring Interrupts unit test. - command: make test_random UNITY_PATH=/opt/Unity + - description: Compiling, flashing and monitoring random unit test. + command: make test_random query: random_single_board == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: false unit-test-time: - description: Compiling, flashing and monitoring Time unit test. - command: make test_time_single UNITY_PATH=/opt/Unity + command: make test_time_single query: time_single_board == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: false unit-test-iic-pingpong: - - description: Compiling, flashing and monitoring I2C pingpong master unit test. - command: make test_wire_connected2_slavepingpong UNITY_PATH=/opt/Unity + - description: Compiling, flashing and monitoring I2C pingpong slave unit test. + command: make test_wire_connected2_slavepingpong query: iic_ping_pong_multiple_boards_slave == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: true - - description: Compiling, flashing and monitoring I2C pingpong slave unit test. - command: make test_wire_connected2_masterpingpong UNITY_PATH=/opt/Unity + - description: Compiling, flashing and monitoring I2C pingpong master unit test. + command: make test_wire_connected2_masterpingpong query: iic_ping_pong_multiple_boards_master == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: true unit-test-spi-pingpong: - description: Compiling, flashing and monitoring SPI pingpong slave unit test. - command: make test_spi_connected2_slavepingpong UNITY_PATH=/opt/Unity + command: make test_spi_connected2_slavepingpong query: spi_ping_pong_multiple_boards_slave == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: true - description: Compiling, flashing and monitoring SPI pingpong master unit test. - command: make test_spi_connected2_masterpingpong UNITY_PATH=/opt/Unity + command: make test_spi_connected2_masterpingpong query: spi_ping_pong_multiple_boards_master == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: true unit-test-spi-loopback: - description: Compiling, flashing and monitoring SPI loopback unit test. - command: make test_spi_connected1_loopback UNITY_PATH=/opt/Unity + command: make test_spi_connected1_loopback query: spi_ping_pong_single_board == '1:1' working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: true unit-test-iic-single-board: - description: Compiling, flashing and monitoring I2C single board unit test. - command: make test_wire_connected1_pingpong UNITY_PATH=/opt/Unity + command: make test_wire_connected1_pingpong query: iic_ping_pong_single_board == '1:1' - working_dir: extras/arduino-core-tests - options: - SEND_JOB_START_TOKEN: true + working_dir: extras/arduino-core-tests \ No newline at end of file diff --git a/extras/arduino-core-tests b/extras/arduino-core-tests index a3ce99bb..eb72fc32 160000 --- a/extras/arduino-core-tests +++ b/extras/arduino-core-tests @@ -1 +1 @@ -Subproject commit a3ce99bb48feb9d9d03f499e820e64074bf06353 +Subproject commit eb72fc325f71aeaa1cf27309accc2bb7829b39a1 diff --git a/extras/makers-devops b/extras/makers-devops index 702d4770..2bfb5f35 160000 --- a/extras/makers-devops +++ b/extras/makers-devops @@ -1 +1 @@ -Subproject commit 702d4770aa822ea65d1ac5ac7cada1c7d0170064 +Subproject commit 2bfb5f35ac2fe0e61bb571ef302e060eb238aebc From 1161c2f8e81093cffd6278fea01ae75866ffccd8 Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Wed, 6 Aug 2025 14:21:47 +0530 Subject: [PATCH 6/8] .github/workflows/hil_checks.yml: Use latest workflow. Signed-off-by: Ramya Subramanyam --- .github/workflows/hil_checks.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hil_checks.yml b/.github/workflows/hil_checks.yml index dd3e57b2..d2f0610e 100644 --- a/.github/workflows/hil_checks.yml +++ b/.github/workflows/hil_checks.yml @@ -5,10 +5,9 @@ on: jobs: makers-devops: - uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@fix-hil-test + uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@main with: project-yaml: config/project.yml user-yaml: config/user.yml secrets: inherit - - \ No newline at end of file + \ No newline at end of file From ec1bf1ef88cfc9784c486eb28a9d58de6bad310b Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Thu, 7 Aug 2025 10:00:54 +0530 Subject: [PATCH 7/8] extras/makers-devops: Update makers devops. Signed-off-by: Ramya Subramanyam From dbf1a1a9e99001d965b6fe7c7f1f84a27f3c851d Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Thu, 7 Aug 2025 11:48:03 +0530 Subject: [PATCH 8/8] extras/arduino-devops: extras/arduino-core-tests: Update submodules. Signed-off-by: Ramya Subramanyam --- .gitmodules | 3 +++ extras/arduino-core-tests | 2 +- extras/arduino-devops | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 160000 extras/arduino-devops diff --git a/.gitmodules b/.gitmodules index 47f501b8..8cf76c2c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -76,3 +76,6 @@ [submodule "extras/arduino-core-tests"] path = extras/arduino-core-tests url = https://github.com/Infineon/arduino-core-tests.git +[submodule "extras/arduino-devops"] + path = extras/arduino-devops + url = https://github.com/Infineon/arduino-devops.git diff --git a/extras/arduino-core-tests b/extras/arduino-core-tests index eb72fc32..a7150643 160000 --- a/extras/arduino-core-tests +++ b/extras/arduino-core-tests @@ -1 +1 @@ -Subproject commit eb72fc325f71aeaa1cf27309accc2bb7829b39a1 +Subproject commit a715064340444c58d53e522da9549db39cc2bac6 diff --git a/extras/arduino-devops b/extras/arduino-devops new file mode 160000 index 00000000..6c5339a9 --- /dev/null +++ b/extras/arduino-devops @@ -0,0 +1 @@ +Subproject commit 6c5339a95fe79563b21f546507b5e99ff28d6333