You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2020/06/30 14:24:43 UTC
svn commit: r1879370 - in /httpd/httpd/trunk: .travis.yml
test/travis_run_linux.sh
Author: jorton
Date: Tue Jun 30 14:24:43 2020
New Revision: 1879370
URL: http://svn.apache.org/viewvc?rev=1879370&view=rev
Log:
Travis changes:
a) add job to check for empty APLOGNO() macros
b) don't install CPAN stuff if SKIP_TESTING is set
c) don't tail the error_log on test suite failure since it's almost
always irrelevant shutdown stuff and obscures the actual failures
d) use coloured grep output when showing segfaults to make them obvious in the
travis error_log output.
e.g. https://travis-ci.org/github/apache/httpd/jobs/703517978#L2537
Modified:
httpd/httpd/trunk/.travis.yml
httpd/httpd/trunk/test/travis_run_linux.sh
Modified: httpd/httpd/trunk/.travis.yml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/.travis.yml?rev=1879370&r1=1879369&r2=1879370&view=diff
==============================================================================
--- httpd/httpd/trunk/.travis.yml (original)
+++ httpd/httpd/trunk/.travis.yml Tue Jun 30 14:24:43 2020
@@ -43,6 +43,9 @@ jobs:
include:
- name: Linux Ubuntu, Default module set
# -------------------------------------------------------------------------
+ - name: Empty APLOGNO() test
+ env: SKIP_TESTING=1 TEST_LOGNO=1
+ # -------------------------------------------------------------------------
- name: Linux s390x Ubuntu, all-modules
arch: s390x
env: CONFIG="--enable-mods-shared=reallyall"
@@ -296,7 +299,7 @@ jobs:
# CC=gcc, e.g. for the CC="gcc -m32" case the builds are not correct
# otherwise.
before_install:
- - if [ "$TRAVIS_OS_NAME" = "linux" ]; then
+ - if [ "$TRAVIS_OS_NAME" = "linux" -a ! -v SKIP_TESTING ]; then
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 Apache::Test;
fi
Modified: httpd/httpd/trunk/test/travis_run_linux.sh
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/travis_run_linux.sh?rev=1879370&r1=1879369&r2=1879370&view=diff
==============================================================================
--- httpd/httpd/trunk/test/travis_run_linux.sh (original)
+++ httpd/httpd/trunk/test/travis_run_linux.sh Tue Jun 30 14:24:43 2020
@@ -1,4 +1,15 @@
#!/bin/bash -ex
+
+# Test for empty APLOGNO() macro use; if the script changes
+# any files, the git diff will be non-empty and fail.
+if test -v TEST_LOGNO; then
+ find server modules os -name \*.c | xargs perl \
+ docs/log-message-tags/update-log-msg-tags
+ git diff --exit-code .
+ : PASSED
+ exit 0
+fi
+
### Installed apr/apr-util don't include the *.m4 files but the
### Debian packages helpfully install them, so use the system APR to buildconf
./buildconf --with-apr=/usr/bin/apr-1-config ${BUILDCONFIG}
@@ -75,7 +86,7 @@ if ! test -v SKIP_TESTING; then
fi
if grep -q 'Segmentation fault' test/perl-framework/t/logs/error_log; then
- grep -C5 'Segmentation fault' test/perl-framework/t/logs/error_log
+ grep --color=always -C5 'Segmentation fault' test/perl-framework/t/logs/error_log
RV=2
fi
@@ -88,13 +99,9 @@ if ! test -v SKIP_TESTING; then
# malloc errors are detected. This should get caught by the
# segfault grep above, but in case it is not, catch it here too:
if grep 'glibc detected' test/perl-framework/t/logs/error_log; then
- grep -C20 'glibc detected' test/perl-framework/t/logs/error_log
+ grep --color=always -C20 'glibc detected' test/perl-framework/t/logs/error_log
RV=4
fi
- if test $RV -ne 0 -a -r test/perl-framework/t/logs/error_log; then
- tail -n200 test/perl-framework/t/logs/error_log
- fi
-
exit $RV
fi