tell google test to print backtraces

pull/802/head
Brad House 5 months ago
parent 1dc567d9c0
commit 5e1c3a7575
  1. 8
      .github/workflows/msys2.yml
  2. 3
      .github/workflows/netbsd.yml
  3. 3
      .github/workflows/openbsd.yml
  4. 6
      appveyor.yml
  5. 3
      ci/test.sh

@ -50,7 +50,7 @@ jobs:
cmake --build build_cmake
./build_cmake/bin/adig.exe www.google.com
./build_cmake/bin/ahost.exe www.google.com
./build_cmake/bin/arestest.exe -4 -v --gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*LiveGetLocalhostByAddr*
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1 ./build_cmake/bin/arestest.exe -4 -v --gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*LiveGetLocalhostByAddr*
- name: "Autotools: build and test c-ares"
run: |
autoreconf -fi
@ -60,7 +60,7 @@ jobs:
make -j3
./src/tools/adig.exe www.google.com
./src/tools/ahost.exe www.google.com
./test/arestest.exe -4 -v --gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*LiveGetLocalhostByAddr*
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1 ./test/arestest.exe -4 -v --gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*LiveGetLocalhostByAddr*
- name: "CMake: UBSAN: build and test c-ares"
if: ${{ matrix.env == 'clang-x86_64' || matrix.env == 'clang-i686' }}
env:
@ -70,7 +70,7 @@ jobs:
cmake --build build_ubsan
./build_ubsan/bin/adig.exe www.google.com
./build_ubsan/bin/ahost.exe www.google.com
./build_ubsan/bin/arestest.exe -4 -v --gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*LiveGetLocalhostByAddr*
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1 ./build_ubsan/bin/arestest.exe -4 -v --gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*LiveGetLocalhostByAddr*
- name: "CMake: ASAN: build and test c-ares"
if: ${{ matrix.env == 'clang-x86_64' || matrix.env == 'clang-i686' }}
env:
@ -80,7 +80,7 @@ jobs:
cmake --build build_asan
./build_asan/bin/adig.exe www.google.com
./build_asan/bin/ahost.exe www.google.com
./build_asan/bin/arestest.exe -4 -v --gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*LiveGetLocalhostByAddr*
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1 ./build_asan/bin/arestest.exe -4 -v --gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*LiveGetLocalhostByAddr*
- name: "Autotools: Static Analyzer: build c-ares"
if: ${{ matrix.env == 'clang-x86_64' || matrix.env == 'clang-i686' }}
# Cmake won't work because it somehow mangles linker args and it can't find core windows libraries

@ -21,11 +21,12 @@ jobs:
CMAKE_TEST_FLAGS: "-DCARES_BUILD_TESTS=ON"
PKG_PATH: https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All/
TEST_FILTER: "--gtest_filter=-*LiveSearchTXT*:*LiveSearchANY*:*Parallel*"
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER: 1
with:
operating_system: netbsd
version: '10.0'
shell: 'bash'
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS PKG_PATH TEST_FILTER
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS PKG_PATH TEST_FILTER GTEST_INSTALL_FAILURE_SIGNAL_HANDLER
run: |
echo "BUILD_TYPE: $BUILD_TYPE"
echo "CMAKE_FLAGS: $CMAKE_FLAGS"

@ -18,11 +18,12 @@ jobs:
BUILD_TYPE: "cmake"
CMAKE_FLAGS: "-DCMAKE_BUILD_TYPE=DEBUG -DCARES_STATIC=ON -DCARES_STATIC_PIC=ON -G Ninja"
CMAKE_TEST_FLAGS: "-DCARES_BUILD_TESTS=ON"
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER: 1
with:
operating_system: openbsd
version: '7.5'
shell: 'bash'
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS GTEST_INSTALL_FAILURE_SIGNAL_HANDLER
run: |
sudo pkg_add cmake gtest pkgconf ninja
echo "BUILD_TYPE: $BUILD_TYPE"

@ -34,6 +34,7 @@ environment:
TOOLSDIR: ./build/bin
TESTDIR: ./build/bin
BUILD_GOOGLETEST: yes
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER: 1
# MSVC 2022, 64-bit x64 (cmake)
- COMPILER: MSVC
@ -46,6 +47,7 @@ environment:
TESTDIR: ./build/bin
CMAKE_EXTRA_OPTIONS: -GNinja -DCARES_BUILD_TESTS=ON -DGTEST_ROOT=C:\projects\googletest -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebugDLL
BUILD_GOOGLETEST: yes
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER: 1
# MSVC 2022, 64-bit x86 (nmake)
- COMPILER: MSVC
@ -55,6 +57,7 @@ environment:
MSVC_SETUP_ARG: x64
MSVC_SETUP_PATH: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
BUILD_GOOGLETEST: yes
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER: 1
# MSVC 2022, 32-bit x86 (nmake)
- COMPILER: MSVC
@ -64,6 +67,7 @@ environment:
MSVC_SETUP_ARG: x86
MSVC_SETUP_PATH: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat
BUILD_GOOGLETEST: yes
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER: 1
# MinGW, 32-bit x86 (makefiles)
- COMPILER: MINGW
@ -72,6 +76,7 @@ environment:
SKIP_TESTS: no
PATH: C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin;%PATH%
BUILD_GOOGLETEST: yes
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER: 1
# MinGW, 32-bit x86 (cmake static only)
- COMPILER: MINGW
@ -83,6 +88,7 @@ environment:
PATH: C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin;%PATH%
CMAKE_EXTRA_OPTIONS: -DCARES_SHARED=OFF -GNinja -DCARES_BUILD_TESTS=ON -DGTEST_ROOT=C:\projects\googletest
BUILD_GOOGLETEST: yes
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER: 1
# Disabled until AppVeyor updates their Visual Studio with this patch:
# https://developercommunity.visualstudio.com/t/clexe-compiler-error-C1007-when-compili/10486219

@ -30,6 +30,9 @@ else
TESTSBIN="${PWD}/cmakebld/bin"
fi
GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1
export GTEST_INSTALL_FAILURE_SIGNAL_HANDLER
$TEST_WRAP "${TOOLSBIN}/adig" www.google.com
$TEST_WRAP "${TOOLSBIN}/ahost" www.google.com
cd "${TESTSBIN}"

Loading…
Cancel
Save