mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-11-14 03:36:43 +01:00
Add sanitizers to unit tests. (#26571)
* Fix out-of-bounds read in encoder test initialisation * Reject out-of-range tracks in sequencer track activation * Compare unaligned flash word bytewise in emulated EEPROM test * Abort on out-of-range access in the test platform EEPROM emulation * Add SANITIZE=yes to the native unit test build
This commit is contained in:
@@ -24,6 +24,11 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
sanitize: ['no', 'yes']
|
||||
|
||||
container: ghcr.io/qmk/qmk_cli
|
||||
|
||||
steps:
|
||||
@@ -35,4 +40,4 @@ jobs:
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Run tests
|
||||
run: qmk test-c -j $(nproc)
|
||||
run: qmk test-c -j $(nproc) -e SANITIZE=${{ matrix.sanitize }}
|
||||
|
||||
Reference in New Issue
Block a user