diff options
author | Joe Orton <jorton@apache.org> | 2020-02-19 12:18:21 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2020-02-19 12:18:21 +0100 |
commit | 08aaaea5fee05647b333c1a60d4b25ba4a546be5 (patch) | |
tree | fe9f18f14b672620d1901cb0c5b0d74d1423d8de /test | |
parent | mod_md: fixed version string by removing -git, thanks for spotting @steffenal. (diff) | |
download | apache2-08aaaea5fee05647b333c1a60d4b25ba4a546be5.tar.xz apache2-08aaaea5fee05647b333c1a60d4b25ba4a546be5.zip |
Add Travis job which runs under UBSan ("Undefined Behaviour Sanitizer").
mod_http2 disabled for now until https://github.com/icing/mod_h2/pull/194
is merged.
Github: closes #96
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-x | test/travis_run_linux.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh index 90ac2c8138..c20feb9587 100755 --- a/test/travis_run_linux.sh +++ b/test/travis_run_linux.sh @@ -25,14 +25,23 @@ else fi ./configure $CONFIG make $MFLAGS + if ! test -v SKIP_TESTING; then + set +e + + if test -v TEST_UBSAN; then + export UBSAN_OPTIONS="log_path=$PWD/ubsan.log" + fi + if test -v WITH_TEST_SUITE; then make check TESTS="${TEST_ARGS}" + RV=$? else make install pushd test/perl-framework perl Makefile.PL -apxs $HOME/build/httpd-root/bin/apxs make test APACHE_TEST_EXTRA_ARGS="${TEST_ARGS}" + RV=$? popd fi if test -v LITMUS; then @@ -40,7 +49,19 @@ if ! test -v SKIP_TESTING; then mkdir -p t/htdocs/modules/dav ./t/TEST -start litmus http://localhost:8529/modules/dav/ + RV=$? ./t/TEST -stop popd 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 + RV=2 + fi + if test -v TEST_UBSAN && ls ubsan.log.* &> /dev/null; then + cat ubsan.log.* + RV=3 + fi + + exit $RV fi |