]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ci: run all non-external tests on fedora:latest
authorOndrej Moris <omoris@redhat.com>
Sat, 17 May 2025 23:03:09 +0000 (01:03 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 20 May 2025 19:29:14 +0000 (21:29 +0200)
Before pkcs11-provider external test runs, we run all
non-external tests since we want to make sure they work
fine on fedora:latest container.

Signed-off-by: Ondrej Moris <omoris@redhat.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27602)

.github/workflows/ci.yml

index bd6715942d7f068d5de9edebdeaf11773459e254..33d2125fa5aab05859c758f2ff9129c63783481e 100644 (file)
@@ -677,20 +677,32 @@ jobs:
 
   external-tests-pkcs11-provider:
     runs-on: ubuntu-latest
-    container: fedora:rawhide
+    container: fedora:latest
     steps:
     - name: package installs
       run: |
-        dnf install -y kryoptic perl git meson opensc expect
+        dnf install -y perl-FindBin perl-IPC-Cmd perl-File-Compare perl-File-Copy perl-Test-Simple perl-Test-Harness python3 make g++ perl git meson opensc expect kryoptic
     - uses: actions/checkout@v4
-      with:
-        submodules: true  
+    - name: checkout fuzz/corpora and pkcs11-provider submodule
+      run: |
+        git config --global --add safe.directory /__w/openssl/openssl
+        git submodule update --init --depth 1 fuzz/corpora
+        git submodule update --init --depth 1 pkcs11-provider
     - name: config
-      run: ./config --strict-warnings --banner=Configured --debug enable-external-tests && perl configdata.pm --dump
+      run: ./config --strict-warnings --banner=Configured --debug enable-external-tests no-fips && perl configdata.pm --dump
     - name: make
       run: make -s -j4
+    # Run all tests except external tests to make sure they work fine on Fedora because
+    # this is the only job running on Fedora, only then execute pkcs11-provider external
+    # test.
+    - name: test (except external tests)
+      run: make test TESTS="-test_external_*"
     - name: test external pkcs11-provider
       run: make test TESTS="test_external_pkcs11_provider" VERBOSE=1
+    - name: get cpu info
+      run: |
+        cat /proc/cpuinfo
+        ./util/opensslwrap.sh version -c
 
   external-tests-pyca:
     runs-on: ubuntu-latest