diff options
author | Joe Orton <jorton@apache.org> | 2020-06-30 16:24:43 +0200 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2020-06-30 16:24:43 +0200 |
commit | 6bd78e3f1383bcfb5cd5753b9fa9a17a00a60edf (patch) | |
tree | 734385208ab2d8755853536e2f55e1b73eb13d7d /test/travis_run_linux.sh | |
parent | Follow up to r1877955: always validate the Content-Length (diff) | |
download | apache2-6bd78e3f1383bcfb5cd5753b9fa9a17a00a60edf.tar.xz apache2-6bd78e3f1383bcfb5cd5753b9fa9a17a00a60edf.zip |
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
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879370 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rwxr-xr-x | test/travis_run_linux.sh | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh index 818e39a504..109494b167 100755 --- a/test/travis_run_linux.sh +++ b/test/travis_run_linux.sh @@ -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 |