Skip to content

Commit

Permalink
Run basic tests without OpenSSL in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Mar 28, 2024
1 parent 21ec6dc commit 2fa13f5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ else
if [ "$1" == "no-shared" ]; then
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-shared"
fi
if [ "$1" == "no-openssl" ]; then
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-openssl"
fi
export CFLAGS="-DDEBUG_PROFILE=1 $CFLAGS"
./configure $CONFIGURE_FLAGS
make -j 4 V=1
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ jobs:
- run: .github/setup-linux.sh
- run: .github/build.sh no-shared valgrind

build-no-openssl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: .github/setup-linux.sh
- run: .github/build.sh no-openssl valgrind

build-ix86:
runs-on: ubuntu-20.04
steps:
Expand Down
7 changes: 5 additions & 2 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,19 @@ TESTS = \
test-duplicate-symbols.sh \
test-pkcs11-tool-test.sh \
test-pkcs11-tool-test-threads.sh \
test-pkcs11-tool-sign-verify.sh \
test-pkcs11-tool-allowed-mechanisms.sh \
test-pkcs11-tool-sym-crypt-test.sh \
test-pkcs11-tool-sym-crypt-test.sh
if ENABLE_OPENSSL
TESTS += \
test-pkcs11-tool-sign-verify.sh \
test-pkcs11-tool-unwrap-wrap-test.sh \
test-pkcs11-tool-import.sh
if ENABLE_TESTS
if ENABLE_SHARED
TESTS += test-p11test.sh
endif
endif
endif
XFAIL_TESTS = \
test-pkcs11-tool-test-threads.sh \
test-pkcs11-tool-test.sh

0 comments on commit 2fa13f5

Please sign in to comment.