Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Linux x86_64, openssl provider
bazel-target: "test //score/... --config=x86_64-linux --//score/crypto/src/backend:score_crypto_pkcs11_backend_enabled=False"
upload-name: "score_security_crypto linux x86_64 OpenSSL backend test results"
uses: eclipse-score/cicd-workflows/.github/workflows/tests.yml@66d165e6fcb7afcb1e0265eeb7b65cebbdcea016
uses: eclipse-score/cicd-workflows/.github/workflows/tests.yml@ace627933d0924894a3d066254f25d099732612e
with:
bazel-target: ${{ matrix.bazel-target }}
upload-name: ${{ matrix.upload-name }}
8 changes: 8 additions & 0 deletions score/cryptoki/tests/pkcs11_v3_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ use std::sync::Once;
static INIT: Once = Once::new();
fn init() {
INIT.call_once(|| unsafe {
let test_tmpdir = std::env::var_os("TEST_TMPDIR")
.map(std::path::PathBuf::from)
.unwrap_or_else(std::env::temp_dir);
std::env::set_var(
"CRYPTOKI_STORE",
test_tmpdir.join(format!("pkcs11_v3_integration_{}.json", std::process::id())),
);

let fl = common::fn_list();
let rv = p11!(fl, C_Initialize, ptr::null_mut());
assert!(
Expand Down
Loading