]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* t/modules/http2.t is gone since 1893547. So do not use it any longer in
authorRuediger Pluem <rpluem@apache.org>
Thu, 23 Sep 2021 11:12:25 +0000 (11:12 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 23 Sep 2021 11:12:25 +0000 (11:12 +0000)
  HTTP/2 tests and remove the dependency on Protocol::HTTP2::Client.
  Update test/travis_run_linux.sh to handle NO_TEST_FRAMEWORK.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893549 13f79535-47bb-0310-9956-ffa450edef68

.travis.yml
test/travis_run_linux.sh

index 859489f2345152c92811024c1b8170dc949bbfeb..0844277d93edd47d8dc0ea9f4f453afe44bd83f6 100644 (file)
@@ -271,7 +271,7 @@ jobs:
       env: APR_VERSION=1.7.0
            APU_VERSION=1.6.1 APU_CONFIG="--with-crypto"
            CONFIG="--enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=event"
-           TESTS="t/modules/http2.t" TEST_INSTALL=1 TEST_H2=1
+           NO_TEST_FRAMEWORK=1 TEST_INSTALL=1 TEST_H2=1
       addons:
         apt:
           sources:
@@ -382,7 +382,7 @@ before_install:
   - if [ "$TRAVIS_OS_NAME" = "linux" -a ! -v SKIP_TESTING ]; then
         if [ -v CLEAR_CACHE ]; then rm -rf ~/perl5; fi;
         cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib);
-        CC=gcc cpanm --notest Net::SSL LWP::Protocol::https ExtUtils::Embed Test::More AnyEvent DateTime HTTP::DAV Protocol::HTTP2::Client FCGI AnyEvent::WebSocket::Client Apache::Test;
+        CC=gcc cpanm --notest Net::SSL LWP::Protocol::https ExtUtils::Embed Test::More AnyEvent DateTime HTTP::DAV FCGI AnyEvent::WebSocket::Client Apache::Test;
     fi
 
 before_script:
index e8aea43762c75548a11394367d6bbe6c628b79ca..3bbe980d58ec8fddd3443386d0227a9a91f3db83 100755 (executable)
@@ -94,22 +94,24 @@ if ! test -v SKIP_TESTING; then
     # Try to keep all potential coredumps from all processes
     sudo sysctl -w kernel.core_uses_pid=1 2>/dev/null || true
 
-    if test -v WITH_TEST_SUITE; then
-        make check TESTS="${TESTS}" TEST_CONFIG="${TEST_ARGS}"
-        RV=$?
-    else
-        test -v TEST_INSTALL || make install
-        pushd test/perl-framework
-            perl Makefile.PL -apxs $PREFIX/bin/apxs
-            make test APACHE_TEST_EXTRA_ARGS="${TEST_ARGS} ${TESTS}"
+    if ! test -v NO_TEST_FRAMEWORK; then
+        if test -v WITH_TEST_SUITE; then
+            make check TESTS="${TESTS}" TEST_CONFIG="${TEST_ARGS}"
             RV=$?
-        popd
-    fi
+        else
+            test -v TEST_INSTALL || make install
+            pushd test/perl-framework
+                perl Makefile.PL -apxs $PREFIX/bin/apxs
+                make test APACHE_TEST_EXTRA_ARGS="${TEST_ARGS} ${TESTS}"
+                RV=$?
+            popd
+        fi
 
-    # Skip further testing if a core dump was created during the test
-    # suite run above.
-    if test $RV -eq 0 && test -n "`ls test/perl-framework/t/core{,.*} 2>/dev/null`"; then
-        RV=4
+        # Skip further testing if a core dump was created during the test
+        # suite run above.
+        if test $RV -eq 0 && test -n "`ls test/perl-framework/t/core{,.*} 2>/dev/null`"; then
+            RV=4
+        fi
     fi
 
     if test -v TEST_SSL -a $RV -eq 0; then