Skip to content

4.0.0 hil integration checkpoint #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: 4.0.0-pre-release
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
237 changes: 0 additions & 237 deletions .github/workflows/hil-unity-checks.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/hil_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: HIL Checks

on:
pull_request:
push:

jobs:
makers-devops:
uses: Infineon/makers-devops/.github/workflows/[email protected]
with:
project-yaml: config/project.yml
user-yaml: config/user.yml
secrets: inherit
Comment on lines +9 to +13

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[submodule "arduino-core-tests"]
path = tests/arduino-core-tests
path = extras/arduino-core-tests
url = https://github.com/Infineon/arduino-core-tests.git
[submodule "cores/arduino-core-api"]
path = extras/arduino-core-api
Expand Down
131 changes: 131 additions & 0 deletions config/project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# options:
# USE_CORE:
# name: Infineon:[email protected]
# url: https://github.com/Infineon/XMC-for-Arduino/releases/latest/download/package_infineon_index.json
options:
USE_CORE:
name: local
url: https://balabla
# # INCLUDE:
# - filename

compile:
compile-xmc-kit_xmc47_relax:
description: Compiling test_digitalio_single.cpp for XMC platform
command: make -f Makefile.arduino.mk test_digitalio_single compile
fqbns: [infineon:xmc:kit_xmc47_relax]
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/src/python/code_checks/run_clang_tidy.sh ./cores/xmc/* ./libraries/*

source-code-quality-cppcheck:
description: cppcheck check sources
tool: cppcheck
command: extras/makers-devops/src/python/code_checks/run_cppcheck.sh ./cores/xmc/*
| -I extras/arduino-core-api/api/ -I cores/xmc/xmc_lib/XMCLib/inc/ -I variants/XMC1400/config/KIT_XMC14_2GO
| -I variants/XMC1400 -I cores/xmc/avr -I cores/xmc/usblib -I cores/xmc/xmc_lib/inc
| -I /cores/xmc
| -i cores/xmc/xmc_lib/ -i cores/xmc/api/ --suppress=*:cores/xmc/xmc_lib/*
| --suppress=*:extras/arduino-core-api/api/* --suppress=*:cores/xmc/api/*

# 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-timer-4700:
- description: Compiling, flashing and monitoring timer unit test.
command: make test_time_single UNITY_PATH=/opt/Unity
query: time_single_board == '1:1'
working_dir: extras/arduino-core-tests
options:
SEND_JOB_START_TOKEN: True

unit-test-pwm-4700:
- description: Compiling, flashing and monitoring timer unit test.
command: make test_analogio_pwm UNITY_PATH=/opt/Unity
query: analogio_pwm_single_board == '1:1'
working_dir: extras/arduino-core-tests
options:
SEND_JOB_START_TOKEN: True

unit-test-iic-4700:
- description: Compiling, flashing and monitoring timer unit test.
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:
SEND_JOB_START_TOKEN: True

unit-test-iic-pingpong-4700:
- description: Compiling, flashing and monitoring I2C pingpong slave unit test.
command: make test_wire_connected2_slavepingpong UNITY_PATH=/opt/Unity
query: iic_ping_pong_multiple_boards_slave == '2:1'
working_dir: extras/arduino-core-tests
options:
SEND_JOB_START_TOKEN: True

- description: Compiling, flashing and monitoring I2C pingpong master unit test.
command: make test_wire_connected2_masterpingpong UNITY_PATH=/opt/Unity
query: iic_ping_pong_multiple_boards_master == '2:1'
working_dir: extras/arduino-core-tests
options:
SEND_JOB_START_TOKEN: True

unit-test-uart-connected2-4700:
- description: Compiling, flashing and monitoring uart rx unit test.
command: make test_uart_rx UNITY_PATH=/opt/Unity
query: uart_multiple_boards_rx == '1:1'
working_dir: extras/arduino-core-tests
options:
SEND_JOB_START_TOKEN: True

- description: Compiling, flashing and monitoring uart tx unit test.
command: make test_uart_tx UNITY_PATH=/opt/Unity
query: uart_multiple_boards_tx == '1:1'
working_dir: extras/arduino-core-tests
options:
SEND_JOB_START_TOKEN: True

unit-test-iic-pingpong-1400:
- description: Compiling, flashing and monitoring I2C pingpong slave unit test.
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 master unit test.
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
Loading
Loading