diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-05-29 10:41:41 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-05-29 10:41:41 +0200 |
commit | 594eb59d3d6a372ba2f48c320433de5f85c9350a (patch) | |
tree | 5d0699d49e36d1c672795df9ce382ed4741174fe | |
parent | 09eef8af18c7cc1a20f132843880f60f692d76c8 (diff) | |
download | curl-594eb59d3d6a372ba2f48c320433de5f85c9350a.tar.gz |
DEBUG: travis on mac that runs 507 534 1553 with lldb
-rw-r--r-- | .travis.yml | 328 | ||||
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | tests/Makefile.am | 3 | ||||
-rwxr-xr-x | tests/runtests.pl | 15 |
4 files changed, 16 insertions, 335 deletions
diff --git a/.travis.yml b/.travis.yml index 9455b4e56..9fe6195f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,335 +30,9 @@ addons: matrix: include: - - os: linux - compiler: gcc - dist: trusty - env: - - T=normal C="--with-gssapi --with-libssh2" CHECKSRC=1 - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - addons: - apt: - sources: - - *common_sources - packages: - - *common_packages - - krb5-user - - libssh2-1-dev - - os: linux - compiler: gcc - dist: trusty - env: - - T=normal C=--with-libssh - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - addons: - apt: - sources: - - *common_sources - packages: - - *common_packages - - libssh-dev - - os: linux - compiler: gcc - dist: trusty - env: - - T=normal C="--disable-http --disable-smtp --disable-imap" - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - - os: linux - compiler: gcc - dist: trusty - env: - - T=normal C="--enable-ares" - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - - os: linux - compiler: gcc - dist: xenial - env: - - T=normal C="--disable-verbose" CPPFLAGS="-Wno-variadic-macros" NOTESTS=1 - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - addons: - apt: - sources: - - *common_sources - packages: - - *common_packages - - libpsl-dev - - os: linux - compiler: gcc - dist: trusty - env: - - T=normal BROTLI=yes - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - - os: linux - compiler: gcc - dist: xenial - env: - - T=novalgrind BORINGSSL=yes C="--with-ssl=$HOME/boringssl" LD_LIBRARY_PATH=/home/travis/boringssl/lib:/usr/local/lib - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - addons: - apt: - sources: - - *common_sources - packages: - - *common_packages - - libpsl-dev - - os: linux - compiler: gcc - dist: xenial - env: - - T=debug-wolfssl C="--with-wolfssl --without-ssl" - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - addons: - apt: - sources: - - *common_sources - packages: - - *common_packages - - libpsl-dev - - os: linux - compiler: gcc - dist: xenial - env: - - T=debug-mesalink C="--with-mesalink --without-ssl" - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - - os: linux - compiler: clang - dist: xenial - env: - - T=debug - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libpsl-dev - - os: linux - compiler: clang - dist: xenial - env: - - T=debug C="--enable-alt-svc" - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libpsl-dev - - os: linux - compiler: clang - dist: xenial - env: - - T=debug C="--with-mbedtls --without-ssl" - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libpsl-dev - - libmbedtls-dev - - os: linux - compiler: clang - dist: xenial - env: - - T=debug C="--with-gnutls --without-ssl" - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libgnutls28-dev - - libpsl-dev - - os: linux - compiler: clang - dist: xenial - env: - - T=debug C="--disable-threaded-resolver" - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libpsl-dev - - os: linux - compiler: clang - dist: xenial - env: - - T=debug C="--with-nss --without-ssl" NOTESTS=1 CPPFLAGS="-isystem /usr/include/nss" - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libnss3-dev - - libpsl-dev - - os: linux - compiler: gcc - dist: trusty - env: - - T=iconv - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - - os: osx - compiler: gcc - env: T=debug C=--with-libssh2 - - os: osx - compiler: gcc - env: T=debug C="--disable-dict --disable-file --disable-ftp --disable-gopher --disable-imap --disable-ldap --disable-pop3 --disable-rtmp --disable-rtsp --disable-scp --disable-sftp --disable-smb --disable-smtp --disable-telnet --disable-tftp --disable-unix-sockets --disable-shared --enable-debug --enable-maintainer-mode --without-brotli --without-gssapi --without-libidn2 --without-libmetalink --without-libpsl --without-librtmp --without-libssh2 --without-nghttp2 --without-ntlm-auth --without-ssl --without-zlib" - os: osx compiler: gcc env: T=debug C=--enable-ares - - os: osx - compiler: gcc - env: T=debug C="--with-ssl=/usr/local/opt/openssl --with-libmetalink" - - os: osx - compiler: gcc - env: T=debug C="--with-ssl=/usr/local/opt/libressl --with-libmetalink" - - os: osx - compiler: clang - osx_image: xcode10 - env: T=debug C="--without-ssl --with-darwinssl --with-libmetalink" - - os: osx - compiler: clang - env: T=normal - - os: osx - compiler: clang - env: T=cmake - - os: linux - compiler: gcc - dist: xenial - env: - - T=cmake - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - addons: - apt: - sources: - - *common_sources - packages: - - *common_packages - - libpsl-dev - - os: linux - compiler: clang - dist: xenial - env: - - T=cmake - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libpsl-dev - - os: linux - compiler: gcc - dist: xenial - env: - - T=coverage - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - addons: - apt: - sources: - - *common_sources - packages: - - *common_packages - - lcov - - libpsl-dev - - os: linux - compiler: gcc - dist: xenial - env: - - T=distcheck - - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" - addons: - apt: - sources: - - *common_sources - packages: - - *common_packages - - libpsl-dev - - os: linux - compiler: clang - dist: xenial - env: - - T=fuzzer - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libpsl-dev - - os: linux - compiler: clang - dist: xenial - env: - - T=tidy - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - clang-tidy-7 - - libpsl-dev - - os: linux - compiler: clang - dist: trusty - env: - - T=scan-build - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-trusty-7 - packages: - - *common_packages - - clang-7 - - os: linux - compiler: clang - dist: xenial - env: - - T=debug CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" LIBS="-ldl -lubsan" - - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7" - addons: - apt: - sources: - - *common_sources - - llvm-toolchain-xenial-7 - packages: - - *common_packages - - clang-7 - - libpsl-dev before_install: - eval "${OVERRIDE_CC}" @@ -467,7 +141,7 @@ script: ./configure --enable-debug --enable-werror $C make && make examples if [ -z $NOTESTS ]; then - make TFLAGS=-n test-nonflaky + make TFLAGS=-n test-special fi fi - | diff --git a/Makefile.am b/Makefile.am index ac5eca3ba..89534ad7a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,7 +5,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -212,6 +212,9 @@ test-full: test-nonflaky: @(cd tests; $(MAKE) all nonflaky-test) +test-special: + @(cd tests; $(MAKE) all special-test) + test-torture: @(cd tests; $(MAKE) all torture-test) diff --git a/tests/Makefile.am b/tests/Makefile.am index 6c995e168..de1540907 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -98,6 +98,9 @@ full-test: perlcheck all nonflaky-test: perlcheck all $(TEST) $(TEST_NF) $(TFLAGS) +special-test: perlcheck all + ./runtests.pl -g 507 534 1553 + torture-test: perlcheck all $(TEST) $(TEST_T) $(TFLAGS) diff --git a/tests/runtests.pl b/tests/runtests.pl index b5182513b..08c06e5aa 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -203,7 +203,7 @@ my $stunnel = checkcmd("stunnel4") || checkcmd("tstunnel") || checkcmd("stunnel" my $valgrind = checktestcmd("valgrind"); my $valgrind_logfile="--logfile"; my $valgrind_tool; -my $gdb = checktestcmd("gdb"); +my $gdb = checktestcmd("lldb"); my $httptlssrv = find_httptlssrv(); my $has_ssl; # set if libcurl is built with SSL support @@ -3893,9 +3893,8 @@ sub singletest { if($gdbthis) { my $gdbinit = "$TESTDIR/gdbinit$testnum"; open(GDBCMD, ">$LOGDIR/gdbcmd"); - print GDBCMD "set args $cmdargs\n"; - print GDBCMD "show args\n"; - print GDBCMD "source $gdbinit\n" if -e $gdbinit; + print GDBCMD "run\n"; + print GDBCMD "quit\n"; close(GDBCMD); } @@ -3906,11 +3905,10 @@ sub singletest { if ($torture) { $cmdres = torture($CMDLINE, $testnum, - "$gdb --directory libtest $DBGCURL -x $LOGDIR/gdbcmd"); + "$gdb $DBGCURL -s $LOGDIR/gdbcmd"); } elsif($gdbthis) { - my $GDBW = ($gdbxwin) ? "-w" : ""; - runclient("$gdb --directory libtest $DBGCURL $GDBW -x $LOGDIR/gdbcmd"); + runclient("$gdb -s $LOGDIR/gdbcmd -- $CMDLINE"); $cmdres=0; # makes it always continue after a debugged run } else { @@ -4397,6 +4395,9 @@ sub singletest { last; } } + if($gdbthis) { + $errok = 1; + } if($errok) { $ok .= "e"; |