-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add action dedicated to integration tests
This way it's easier to handle the different kind of tests.
- Loading branch information
1 parent
e5d7dab
commit 1cc7783
Showing
8 changed files
with
82 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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 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,54 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
push: | ||
branches: '**' | ||
pull_request: | ||
branches: '**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-24.04 | ||
|
||
strategy: | ||
matrix: | ||
sanitizer: ["address", "leak", "thread", "undefined"] | ||
|
||
steps: | ||
- name: Checkout code including full history and submodules | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies from APT repository | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install cmake libcunit1-dev ninja-build | ||
- name: Build examples for integration tests | ||
run: | | ||
for example in "server" "bootstrap_server" "client/udp" | ||
do | ||
echo "Building example ${example}" | ||
tools/ci/run_ci.sh \ | ||
--run-clean \ | ||
--run-build \ | ||
--sanitizer ${{ matrix.sanitizer }} \ | ||
--run-tests \ | ||
--source-directory examples/${example} \ | ||
--build-directory build-wakaama-${example} | ||
done | ||
- name: Install Python test dependencies | ||
run: | | ||
pip install --require-hashes -r tests/integration/requirements.txt | ||
- name: Execute integration tests | ||
run: | | ||
python -c "import sys; print(sys.version)" | ||
pytest -v tests/integration |
This file contains 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 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 |
---|---|---|
|
@@ -33,3 +33,5 @@ target_sources( | |
) | ||
|
||
target_link_libraries(lwm2mclient_raw_block1 PRIVATE wakaama_static) | ||
|
||
enable_testing() |
This file contains 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 |
---|---|---|
|
@@ -32,3 +32,5 @@ target_sources( | |
) | ||
|
||
target_link_libraries(lwm2mclient_tinydtls PRIVATE wakaama_static) | ||
|
||
enable_testing() |
This file contains 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 |
---|---|---|
|
@@ -32,3 +32,5 @@ target_sources( | |
) | ||
|
||
target_link_libraries(lwm2mclient PRIVATE wakaama_static) | ||
|
||
enable_testing() |
This file contains 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 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