Skip to content
Merged
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
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:
push:

jobs:
makers-devops:
uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@main
with:
project-yaml: config/project.yml
user-yaml: config/user.yml
secrets: inherit

162 changes: 0 additions & 162 deletions .github/workflows/hil_unity_checks.yml

This file was deleted.

9 changes: 6 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -76,3 +73,9 @@
[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
[submodule "extras/arduino-devops"]
path = extras/arduino-devops
url = https://github.com/Infineon/arduino-devops.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- PROJECT SHIELDS -->
[![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)
Expand Down
121 changes: 121 additions & 0 deletions config/project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
options:
USE_CORE:
name: local
url: http://blabla
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http://blabla looks like a placeholder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. it should be additional-urls. I will check this in the next iteration when I am adding the remaining tests.

SEND_JOB_START_TOKEN: true
# 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

unit-test-tone:
- 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

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

unit-test-random:
- description: Compiling, flashing and monitoring random unit test.
command: make test_random
query: random_single_board == '1:1'
working_dir: extras/arduino-core-tests

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

unit-test-iic-pingpong:
- 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

- 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

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

- 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

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

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
10 changes: 10 additions & 0 deletions config/user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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
- unit-test-spi-loopback
- unit-test-iic-single-board
1 change: 1 addition & 0 deletions extras/arduino-core-tests
Submodule arduino-core-tests added at a71506
1 change: 1 addition & 0 deletions extras/arduino-devops
Submodule arduino-devops added at 6c5339
2 changes: 1 addition & 1 deletion extras/makers-devops
Submodule makers-devops updated 51 files
+22 −0 .github/workflows/check_links.yml
+49 −77 .github/workflows/code_checks.yml
+15 −1 .github/workflows/docs_build.yml
+18 −21 .github/workflows/hil_checks.yml
+2 −2 .gitignore
+31 −16 Makefile
+85 −0 bin/install_arduino_core.sh
+6 −4 bin/run_command.sh
+0 −0 config/clang-format/.clang-format
+0 −0 config/clang-tidy/.clang-tidy
+4 −0 config/cppcheck/misra.json
+0 −0 config/cppcheck/misra.txt
+0 −4 configs/cppcheck/misra.json
+11 −0 src/framework/arduino/test/cpp/test_synchronisation.cpp
+8 −0 src/framework/arduino/test/cpp/test_synchronisation.h
+0 −0 src/python/check_schemata/checkProjectYAMLSchema.py
+0 −0 src/python/check_schemata/checkUserYAMLSchema.py
+56 −0 src/python/check_schemata/project_yaml_schema.py
+8 −0 src/python/check_schemata/user_yaml_schema.py
+77 −27 src/python/code_checks/codeChecks.py
+57 −15 src/python/code_checks/merge_clang_tidy_cppcheck.py
+1 −1 src/python/code_checks/run_black.sh
+2 −2 src/python/code_checks/run_clang_format.sh
+9 −11 src/python/code_checks/run_clang_tidy.sh
+2 −2 src/python/code_checks/run_cppcheck.sh
+124 −0 src/python/code_checks/run_generate_reports.sh
+305 −0 src/python/monitoring/monitor.py
+81 −0 src/python/project_yaml/readProjectYAML.py
+0 −0 template/RELEASE_NOTES.md
+0 −0 template/doc/TESTING.md
+0 −0 template/github_special/CODE_OF_CONDUCT.md
+0 −0 template/github_special/CONTRIBUTING.md
+0 −0 template/github_special/ISSUE_TEMPLATE/bug_report_template.md
+0 −0 template/github_special/ISSUE_TEMPLATE/feature_request_template.md
+0 −0 template/github_special/LICENSE
+0 −0 template/github_special/README.md
+0 −0 template/github_special/SECURITY.md
+0 −0 template/github_special/pull_request_template.md
+59 −0 template/project_config/project.yml
+16 −0 template/project_config/user.yml
+14 −0 template/workflow/code_checks_call.yml
+14 −0 template/workflow/hil_checks_call.yml
+ tools/check_schemata/__pycache__/checkProjectYAMLSchema.cpython-312.pyc
+ tools/check_schemata/__pycache__/checkUserYAMLSchema.cpython-312.pyc
+ tools/check_schemata/__pycache__/project_yaml_schema.cpython-312.pyc
+ tools/check_schemata/__pycache__/user_yaml_schema.cpython-312.pyc
+0 −40 tools/check_schemata/project_yaml_schema.py
+0 −8 tools/check_schemata/user_yaml_schema.py
+0 −342 tools/monitoring/monitor.py
+ tools/project_yaml/__pycache__/readProjectYAML.cpython-312.pyc
+0 −43 tools/project_yaml/readProjectYAML.py
File renamed without changes.
1 change: 0 additions & 1 deletion tests/arduino-core-tests
Submodule arduino-core-tests deleted from 7a8d9a
2 changes: 1 addition & 1 deletion tools/dev-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading