CI: run the APDU response erasure checks on Linux

Tests/response_apdu_test.cpp was not run by any workflow. Build and run
it in the Linux workflow before the packages are built, and start the
workflow when the test changes. Changes to the code it covers already
start it.
This commit is contained in:
Mounir IDRASSI
2026-10-15 07:57:12 +02:00
parent 80d7bf771a
commit f1d7f8bd4e
+9
View File
@@ -25,6 +25,7 @@ on:
- 'Tests/test.*.hc'
- 'Tests/test_volume_read.py'
- 'Tests/volume_read_test.cpp'
- 'Tests/response_apdu_test.cpp'
- '.github/workflows/build-linux.yml'
pull_request:
branches: [ "master" ]
@@ -50,6 +51,7 @@ on:
- 'Tests/test.*.hc'
- 'Tests/test_volume_read.py'
- 'Tests/volume_read_test.cpp'
- 'Tests/response_apdu_test.cpp'
- '.github/workflows/build-linux.yml'
concurrency:
@@ -103,6 +105,13 @@ jobs:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y wget tar libpcsclite-dev libfuse-dev yasm libgtk-3-dev libayatana-appindicator3-dev cmake debhelper
# Checks with synthetic data that APDU responses are erased before their
# storage is released; no smart card is required.
- name: Check APDU response erasure
run: |
c++ -std=c++11 -O2 -Isrc Tests/response_apdu_test.cpp src/Common/ResponseAPDU.cpp src/Common/TLVParser.cpp -o /tmp/response_apdu_test
/tmp/response_apdu_test
- name: Install system wxWidgets for GUI
if: matrix.os == 'ubuntu-26.04'
run: sudo apt-get install -y libwxgtk3.2-dev