-
Notifications
You must be signed in to change notification settings - Fork 4
Psoc ino unity tests hil setup 1 #149
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e2ed52d
extras/arduino-core-tests: Move core tests submodule to extras.
ramya-subramanyam 021c073
.github/workflows: ./config: Add unity tests to hil workflow.
ramya-subramanyam 06bc68a
./config: .github/workflows: Fix running the tests on HIL setup.
ramya-subramanyam 87b36c8
config/project.yml: Fix yaml file with latest update.
ramya-subramanyam 95657c8
config: extras: Update submodules and fix documentation.
ramya-subramanyam 1161c2f
.github/workflows/hil_checks.yml: Use latest workflow.
ramya-subramanyam ec1bf1e
extras/makers-devops: Update makers devops.
ramya-subramanyam dbf1a1a
extras/arduino-devops: extras/arduino-core-tests: Update submodules.
ramya-subramanyam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| options: | ||
| USE_CORE: | ||
| name: local | ||
| url: http://blabla | ||
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Submodule arduino-core-tests
added at
a71506
Submodule arduino-devops
added at
6c5339
Submodule makers-devops
updated
51 files
File renamed without changes.
Submodule arduino-core-tests
deleted from
7a8d9a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.