CI: backport test fixes from main

v1.32
Brad House 4 months ago
parent 2c60d70a42
commit 1642db7c33
  1. 5
      .cirrus.yml
  2. 7
      .github/workflows/netbsd.yml
  3. 7
      .github/workflows/openbsd.yml
  4. 2
      ci/build.sh
  5. 2
      ci/test.sh

@ -147,7 +147,7 @@ task:
- |
case "${DIST}" in
ALPINE)
apk add cmake samurai gtest-dev autoconf autoconf-archive automake libtool pkgconf make
apk add bash cmake samurai gtest-dev autoconf autoconf-archive automake libtool pkgconf make
case "${BUILD_TYPE}" in
asan|lsan|ubsan)
apk add clang17 compiler-rt
@ -185,7 +185,8 @@ task:
;;
FREEBSD)
# pkg upgrade -y && \
pkg install -y cmake ninja googletest pkgconf
pkg install -y bash cmake ninja googletest pkgconf
ln -sf /usr/local/bin/bash /bin/bash
case "${BUILD_TYPE}" in
asan|analyze|ubsan|lsan)
pkg install -y llvm autoconf automake libtool gmake

@ -21,18 +21,19 @@ 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
TEST_DEBUGGER: "gdb"
with:
operating_system: netbsd
version: '10.0'
shell: 'bash'
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS PKG_PATH TEST_FILTER GTEST_INSTALL_FAILURE_SIGNAL_HANDLER
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS PKG_PATH TEST_FILTER TEST_DEBUGGER
run: |
echo "BUILD_TYPE: $BUILD_TYPE"
echo "CMAKE_FLAGS: $CMAKE_FLAGS"
echo "CMAKE_TEST_FLAGS: $CMAKE_TEST_FLAGS"
echo "PKG_PATH: $PKG_PATH"
sudo -E /usr/pkg/sbin/pkg_add -u cmake googletest pkgconf ninja-build
sudo -E /usr/pkg/sbin/pkg_add -u bash cmake googletest pkgconf ninja-build gdb
sudo ln -sf /usr/pkg/bin/bash /bin/bash
./ci/build.sh
./ci/test.sh

@ -18,14 +18,15 @@ 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
TEST_DEBUGGER: "lldb"
with:
operating_system: openbsd
version: '7.5'
shell: 'bash'
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS GTEST_INSTALL_FAILURE_SIGNAL_HANDLER
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS TEST_DEBUGGER
run: |
sudo pkg_add cmake gtest pkgconf ninja
sudo pkg_add bash cmake gtest pkgconf ninja gdb lldb
sudo ln -sf /usr/local/bin/bash /bin/bash
echo "BUILD_TYPE: $BUILD_TYPE"
echo "CMAKE_FLAGS: $CMAKE_FLAGS"
echo "CMAKE_TEST_FLAGS: $CMAKE_TEST_FLAGS"

@ -29,6 +29,7 @@ if [ "$BUILD_TYPE" = "autotools" -o "$BUILD_TYPE" = "coverage" ]; then
export CXXFLAGS="${CXXFLAGS} -O0 -g"
$SCAN_WRAP ../configure --disable-symbol-hiding --enable-maintainer-mode $CONFIG_OPTS
$SCAN_WRAP make
cd ..
else
# Use cmake for everything else
rm -rf cmakebld
@ -39,4 +40,5 @@ else
fi
$SCAN_WRAP cmake ${CMAKE_FLAGS} ${CMAKE_TEST_FLAGS} ..
$SCAN_WRAP cmake --build .
cd ..
fi

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Copyright (C) The c-ares project and its contributors
# SPDX-License-Identifier: MIT
set -e -x -o pipefail

Loading…
Cancel
Save