From f1d7f8bd4e3177f596dafeb2f3ee65f24bdd4770 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 15 Oct 2026 02:52:40 +0200 Subject: [PATCH] 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. --- .github/workflows/build-linux.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index bef10cff..53dff799 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -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