Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
3 changes: 2 additions & 1 deletion .github/workflows/hil_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:

jobs:
makers-devops:
uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@main
uses: Infineon/makers-devops/.github/workflows/hil_checks.yml@add-decryption-secret
with:
project-yaml: config/project.yml
user-yaml: config/user.yml
decrypt-secrets: tools/decrypt_secret.sh
secrets: inherit

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ This repository integrates Infineon's [PSOCâ„¢ 6 microcontrollers](https://www.i

The Arduino Core for Infineon's PSOCâ„¢ 6 microcontrollers aims to bring the advanced features and versatility of Infineon's PSOCâ„¢ 6 family into the Arduino ecosystem. By integrating these powerful microcontrollers, developers can leverage the extensive libraries, tools, and community support of Arduino to build innovative and high-performance projects.

### Features

Please refer to [supported features](https://arduino-core-psoc6.readthedocs.io/en/latest/supported-features.html) in our docs.

## Supported Products

<table>
Expand Down
26 changes: 26 additions & 0 deletions config/project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
options:
USE_CORE:
name: local
url: "https://arduino-core-psoc6.readthedocs.io/en/latest/index.html"
SEND_JOB_START_TOKEN: true

compile:
Expand Down Expand Up @@ -156,30 +157,55 @@ unit-test:
command: make test_wifi_server
query: wifi_multiple_boards_server_tcp == '1:1'
working_dir: extras/arduino-core-tests
options:
RUNTIME: 150

- description: Compiling, flashing and monitoring WIFI TCP client unit test.
command: make test_wifi_client
query: wifi_multiple_boards_client_tcp == '1:1'
working_dir: extras/arduino-core-tests
options:
RUNTIME: 150

unit-test-wifi-udp:
- description: Compiling, flashing and monitoring WIFI UDP server unit test.
command: make test_wifi_udp_server
query: wifi_multiple_boards_server_udp == '1:1'
working_dir: extras/arduino-core-tests
options:
RUNTIME: 150

- description: Compiling, flashing and monitoring WIFI UDP client unit test.
command: make test_wifi_udp_client
query: wifi_multiple_boards_client_udp == '1:1'
working_dir: extras/arduino-core-tests
options:
RUNTIME: 150

unit-test-wifi-sta-ap:
- description: Compiling, flashing and monitoring WIFI Access point unit test.
command: make test_wifi_ap
query: wifi_multiple_boards_ap == '1:1'
working_dir: extras/arduino-core-tests
options:
RUNTIME: 150

- description: Compiling, flashing and monitoring WIFI station unit test.
command: make test_wifi_sta
query: wifi_multiple_boards_sta == '1:1'
working_dir: extras/arduino-core-tests
options:
RUNTIME: 150

unit-test-wifi-extras:
- description: Compiling, flashing and monitoring WIFI extras test.
command: make test_wifi_extras
query: wifi_single_board_extras == '1:1'
working_dir: extras/arduino-core-tests

unit-test-wifi-exceptions:
- description: Compiling, flashing and monitoring WIFI exceptions test.
command: make test_wifi_exceptions
query: wifi_single_board_exceptions == '1:1'
working_dir: extras/arduino-core-tests

12 changes: 7 additions & 5 deletions config/user.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
unit-test:
- unit-test-pulse
- unit-test-iic-pingpong
- unit-test-spi-pingpong
- unit-test-digital-io
- unit-test-time
- unit-test-uart
- unit-test-wifi-tcp
- unit-test-interrupts
- unit-test-tone
- unit-test-spi-loopback
- unit-test-iic-single-board
- unit-test-wifi-sta-ap
- unit-test-wifi-extras
- unit-test-wifi-exceptions
- unit-test-analog-io-adc
- unit-test-random
- unit-test-analog-io-pwm
- unit-test-pulse
- unit-test-wifi-tcp
- unit-test-wifi-udp
- unit-test-iic-single-board
- unit-test-wifi-udp

24 changes: 16 additions & 8 deletions docs/run-tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,37 @@ Board Setup
Executing Test Cases Using `make`
---------------------------------

The Makefile relies on arduino-cli for compiling, uploading, and monitoring. Unity is included as a library.
The provided Makefile leverages arduino-cli for tasks such as compilation, uploading, and monitoring, while using Unity as a testing framework.

1. Change directories:
1. Navigate to the Test Directory:

::

cd tests/arduino-core-tests
cd extras/arduino-core-tests

2. Use the `make` command to run a specific test. For example, to run a digital I/O test:
2. Run a Specific Test:
To execute a specific test, for example, a digital I/O test:

.. code-block:: bash

make FQBN= `FQBN` PORT= `PORT` test_digitalio_single monitor
make FQBN= `FQBN` PORT= `PORT` test_digitalio_single monitor ENABLE_SYNC=0

- `FQBN`: select the connected board (e.g., `infineon:psoc6:cy8ckit_062s2_a`).
- `FQBN`: select the connected board (e.g., `infineon:psoc6:cy8ckit_062s2_ai`).
- `PORT`: set the appropriate serial port (e.g., `/dev/ttyUSB0`).
- monitor : opens the serial monitor to view the test results.
- ENABLE_SYNC : disable synchronization as this feature is currently used only in CI/CD hil-checks

3. List All Available Test Targets:

.. code-block:: bash

make list_tests

3. Display usage information about the available make targets:
4. Display Help for Makefile Targets:

.. code-block:: bash

make help

4. Start testing other features |:tools:| !
5. Start Exploring Other Test Features |:tools:| !
Begin testing other board-specific features with ease!
1 change: 1 addition & 0 deletions tests/secrets.h.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Œ %À3o ŽxøÿÒŽèÿŠfC »`&‰‡oÍïºüÐ AÚ@ü‚{‹MiWVìBGQº2†…é~ÄŽ1¶C6m²rí®•bMWÔÆ>ØK›—‡Ô”&Fæ“ý@Ðצ÷$3ÃÆA/ÇÏ쫺¿´åóçËÇ*äe?±èn—Í{ß ˆ#b¦’–ˆ#úÆ3^ M-±ãm¢}Õ§Ù˜
Expand Down
6 changes: 6 additions & 0 deletions tools/decrypt_secret.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# --batch to prevent interactive command
# --yes to assume "yes" for questions
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" \
--output ./tests/secrets.h ./tests/secrets.h.gpg
Loading