Skip to content

Commit d55b473

Browse files
committed
Run CI against NSS softokn
Signed-off-by: Jakub Jelen <[email protected]>
1 parent 0d940ff commit d55b473

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,32 @@ jobs:
5959
RUST_BACKTRACE=1 cargo test
6060
6161
62+
tests-softokn:
63+
name: Run tests against Softokn
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v2
67+
- name: Setup Rust toolchain
68+
uses: actions-rs/toolchain@v1
69+
with:
70+
toolchain: stable
71+
- name: Install dependencies
72+
run: sudo apt-get -yq install libnss3 libnss3-tools libnss3-dev
73+
- name: Test script
74+
env:
75+
NSS_LIB_PARAMS: configDir=/tmp/nssdb/
76+
TEST_PKCS11_MODULE: /usr/lib/x86_64-linux-gnu/libsoftokn3.so
77+
TEST_TOKEN_LABEL: NSS Certificate DB
78+
TEST_SKIP_TOKEN_INIT: 1
79+
run: |
80+
mkdir /tmp/nssdb/ &&
81+
echo "fedcba" > /tmp/nssdb/pinfile &&
82+
certutil -N -d /tmp/nssdb/ -f /tmp/nssdb/pinfile &&
83+
RUST_BACKTRACE=1 cargo build &&
84+
RUST_BACKTRACE=1 cargo build --all-features &&
85+
RUST_BACKTRACE=1 cargo test
86+
87+
6288
build-msrv:
6389
name: MSRV - Execute CI script
6490
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)