Skip to content

Commit

Permalink
tests: Fix paths to token dirs in CI and tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Jan 20, 2025
1 parent d8b2ddd commit 827d8ea
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 22 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/address-sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ jobs:
path: |
builddir/meson-logs/
builddir/tests/*.log
builddir/tests/tmp.${{ matrix.token }}/p11prov-debug.log
builddir/tests/tmp.${{ matrix.token }}/testvars
builddir/tests/tmp.${{ matrix.token }}/openssl.cnf
builddir/tests/softhsm/p11prov-debug.log
builddir/tests/softhsm/testvars
builddir/tests/softhsm/openssl.cnf
builddir/tests/softtokn/p11prov-debug.log
builddir/tests/softtokn/testvars
builddir/tests/softtokn/openssl.cnf
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ jobs:
name: Test logs ${{ matrix.name }}, ${{ matrix.compiler }}, ${{ matrix.token }}
path: |
builddir/meson-logs/
builddir/tests/tmp.${{ matrix.token }}/p11prov-debug.log
builddir/tests/tmp.${{ matrix.token }}/testvars
builddir/tests/tmp.${{ matrix.token }}/openssl.cnf
builddir/tests/${{ matrix.token }}/p11prov-debug.log
builddir/tests/${{ matrix.token }}/testvars
builddir/tests/${{ matrix.token }}/openssl.cnf
- name: Run tests with valgrind
if : ( steps.nss-version-check.outputs.skiptest != 'true' )
Expand All @@ -116,9 +116,9 @@ jobs:
name: Test valgrind logs ${{ matrix.name }}, ${{ matrix.compiler }}, ${{ matrix.token }}
path: |
builddir/meson-logs/
builddir/tests/tmp.${{ matrix.token }}/p11prov-debug.log
builddir/tests/tmp.${{ matrix.token }}/testvars
builddir/tests/tmp.${{ matrix.token }}/openssl.cnf
builddir/tests/${{ matrix.token }}/p11prov-debug.log
builddir/tests/${{ matrix.token }}/testvars
builddir/tests/${{ matrix.token }}/openssl.cnf
- name: Run tests in FIPS Mode (on CentOS + gcc only)
if : ( steps.nss-version-check.outputs.skiptest != 'true' )
Expand All @@ -134,9 +134,9 @@ jobs:
name: Test FIPS Mode logs ${{ matrix.name }}, ${{ matrix.compiler }}, ${{ matrix.token }}
path: |
builddir/meson-logs/
builddir/tests/tmp.${{ matrix.token }}/p11prov-debug.log
builddir/tests/tmp.${{ matrix.token }}/testvars
builddir/tests/tmp.${{ matrix.token }}/openssl.cnf
builddir/tests/${{ matrix.token }}/p11prov-debug.log
builddir/tests/${{ matrix.token }}/testvars
builddir/tests/${{ matrix.token }}/openssl.cnf
build-macos:
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
path: |
builddir/meson-logs/*
builddir/tests/*.log
builddir/tests/tmp.${{ matrix.token }}/p11prov-debug.log
builddir/tests/tmp.${{ matrix.token }}/testvars
builddir/tests/tmp.${{ matrix.token }}/openssl.cnf
builddir/tests/${{ matrix.token }}/p11prov-debug.log
builddir/tests/${{ matrix.token }}/testvars
builddir/tests/${{ matrix.token }}/openssl.cnf
6 changes: 3 additions & 3 deletions .github/workflows/kryoptic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
name: Test logs kryoptic
path: |
builddir/meson-logs/
builddir/tests/tmp.kryoptic/p11prov-debug.log
builddir/tests/tmp.kryoptic/testvars
builddir/tests/tmp.kryoptic/openssl.cnf
builddir/tests/kryoptic*/p11prov-debug.log
builddir/tests/kryoptic*/testvars
builddir/tests/kryoptic*/openssl.cnf
builddir/tests/*.log
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# project-specific ignore patterns
tests/openssl.cnf
tests/openssl.cnf.softhsm
tests/tmp.softhsm
tests/tmp.softokn
tests/softhsm
tests/softokn
tests/kryoptic
tests/kryoptic.nss
tests/tdigests
tests/tdigest_dupctx
tests/tsession
Expand Down
4 changes: 2 additions & 2 deletions tools/tests/test_softoken.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
from asn1crypto import pem
from .. import uri2pem

tokens = pathlib.Path("../tests/tmp.softokn/tokens/key4.db")
tokens = pathlib.Path("../tests/softokn/tokens/key4.db")


if not tokens.exists():
print("Run 'make check' first to create a NSS softoken in tests/tmp.softokn/tokens")
print("Run 'make check' first to create a NSS softoken in tests/softokn/tokens")
raise SystemExit(1)


Expand Down

0 comments on commit 827d8ea

Please sign in to comment.