]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
enable github workflows for testing http2 and mod_tls
authorStefan Eissing <icing@apache.org>
Wed, 3 May 2023 08:27:20 +0000 (08:27 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 3 May 2023 08:27:20 +0000 (08:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1909588 13f79535-47bb-0310-9956-ffa450edef68

.github/workflows/linux.yml
test/travis_run_linux.sh

index 354028278cc78678cf66e9f80f244a9cdf5bd1bd..17ae158681533ddc336cfbc793eb8288d04fc11f 100644 (file)
@@ -178,20 +178,18 @@ jobs:
               TEST_ASAN=1
               CLEAR_CACHE=1
           # -------------------------------------------------------------------------
-          ### TODO: if: *condition_not_24x
-          ### TODO: fails in tests.
-          # - name: HTTP/2 test suite
-          #   config: --enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=all
-          #   pkgs: curl python3-pytest nghttp2-client python3-cryptography python3-requests
-          #   env: |
-          #     APR_VERSION=1.7.4
-          #     APU_VERSION=1.6.3
-          #     APU_CONFIG="--with-crypto"
-          #     NO_TEST_FRAMEWORK=1
-          #     TEST_INSTALL=1
-          #     TEST_H2=1
-          #     TEST_CORE=1
-          #     TEST_PROXY=1
+          - name: HTTP/2 test suite
+            config: --enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=all
+            pkgs: curl python3-pytest nghttp2-client python3-cryptography python3-requests python3-multipart
+            env: |
+              APR_VERSION=1.7.4
+              APU_VERSION=1.6.3
+              APU_CONFIG="--with-crypto"
+              NO_TEST_FRAMEWORK=1
+              TEST_INSTALL=1
+              TEST_H2=1
+              TEST_CORE=1
+              TEST_PROXY=1
           # -------------------------------------------------------------------------
           ### TODO: if: *condition_not_24x
           ### TODO: pebble install is broken.
@@ -211,18 +209,17 @@ jobs:
           # -------------------------------------------------------------------------
           ### TODO: if: *condition_not_24x
           ### TODO: fix caching here.
-          ### TODO: make it pass (see e.g. https://github.com/apache/httpd/actions/runs/4467336705/jobs/7846666316)
-          #- name: MOD_TLS test suite
-          #  config: --enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=event
-          #  pkgs: curl python3-pytest nghttp2-client python3-cryptography python3-requests cargo cbindgen
-          #  env: |
-          #    APR_VERSION=1.7.4
-          #    APU_VERSION=1.6.3
-          #    APU_CONFIG="--with-crypto"
-          #    NO_TEST_FRAMEWORK=1
-          #    TEST_INSTALL=1
-          #    TEST_MOD_TLS=1
-          #    CLEAR_CACHE=1
+          - name: MOD_TLS test suite
+            config: --enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=event
+            pkgs: curl python3-pytest nghttp2-client python3-cryptography python3-requests python3-multipart cargo cbindgen
+            env: |
+              APR_VERSION=1.7.4
+              APU_VERSION=1.6.3
+              APU_CONFIG="--with-crypto"
+              NO_TEST_FRAMEWORK=1
+              TEST_INSTALL=1
+              TEST_MOD_TLS=1
+              CLEAR_CACHE=1
           # -------------------------------------------------------------------------
           ### TODO if: *condition_not_24x
           ### TODO: Fails because :i386 packages are not being found.
index f7a72d29f8207b636b260d4e0c72895b4597f429..f2586dd4484031d7ae094b526e61c9b4d30c0d07 100755 (executable)
@@ -58,12 +58,9 @@ fi
 # build the version we want from source
 if test -v TEST_MOD_TLS; then
   RUSTLS_HOME="$HOME/build/rustls-ffi"
-  RUSTLS_VERSION="v0.9.0"
-  git clone https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
+  RUSTLS_VERSION="v0.10.0"
+  git clone -b "$RUSTLS_VERSION" https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
   pushd "$RUSTLS_HOME"
-    # since v0.9.0, there is no longer a dependency on cbindgen
-    git fetch origin
-    git checkout tags/$RUSTLS_VERSION
     make install DESTDIR="$PREFIX"
   popd
   CONFIG="$CONFIG --with-tls --with-rustls=$PREFIX"