Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
unit tests on examples/integration tests with sanitizers
  • Loading branch information
LukasWoodtli committed Dec 4, 2024
1 parent 37eb95f commit 44c58df
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
matrix:
sanitizer: ["address", "leak", "thread", "undefined"]
compiler: ["clang-18", "gcc-13"]
example: ["bootstrap_server", "client/udp", "client/tinydtls", "client/raw_block1", "lightclient", "server"]

steps:
- name: Checkout code including full history and submodules
Expand All @@ -43,18 +44,23 @@ jobs:
env:
CC: ${{ matrix.compiler }}

- name: Build examples for integration tests
- name: Build examples
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 }} \
--source-directory examples/${example} \
--build-directory build-wakaama-${example}
done
tools/ci/run_ci.sh \
--run-clean \
--run-build \
--sanitizer ${{ matrix.sanitizer }} \
--source-directory examples/${{ matrix.example }} \
--build-directory wakaama-build-${{ matrix.example }}
env:
CC: ${{ matrix.compiler }}

- name: Unit test examples
run: |
tools/ci/run_ci.sh \
--run-tests
--source-directory examples/${{ matrix.example }} \
--build-directory wakaama-build-${{ matrix.example }}
env:
CC: ${{ matrix.compiler }}

Expand All @@ -66,4 +72,3 @@ jobs:
run: |
python -c "import sys; print(sys.version)"
pytest -v tests/integration

0 comments on commit 44c58df

Please sign in to comment.