From e97d3da0b9c9bd2b036f43535f5b92590f7f45a6 Mon Sep 17 00:00:00 2001 From: Aveen Ismail Date: Mon, 3 Jun 2024 14:18:42 +0200 Subject: [PATCH] Githubactions: MacOS: Add simple PKCS11 test --- .github/workflows/build_and_test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 45ed4e11..8fdd1c56 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -305,7 +305,7 @@ jobs: steps: - name: install dependencies using brew - run: brew install gengetopt help2man libedit + run: brew install gengetopt help2man libedit opensc - name: clone the Yubico/yubihsm-shell repository uses: actions/checkout@v4 @@ -323,6 +323,13 @@ jobs: cmake -DCMAKE_BUILD_TYPE=Release .. cmake --build . + - name: Test loading PKCS11 module + working-directory: yubihsm-shell + run: | + echo connector=http://127.0.0.1:12345 > yubihsm_pkcs11.conf + export YUBIHSM_PKCS11_CONF=$GITHUB_WORKSPACE/yubihsm-shell/yubihsm_pkcs11.conf + pkcs11-tool --module build/pkcs11/yubihsm_pkcs11.dylib --show-info + - name: do static build working-directory: yubihsm-shell env: