mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-18 04:15:56 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user