Skip to content

* test/testdbm (test_dbm): Use APR_ASSERT_SUCCESS to give better #325

* test/testdbm (test_dbm): Use APR_ASSERT_SUCCESS to give better

* test/testdbm (test_dbm): Use APR_ASSERT_SUCCESS to give better #325

Workflow file for this run

name: Linux
on:
push:
branches: [ "*" ]
tags: [ "*" ]
pull_request:
branches: [ "trunk" ]
env:
MARGS: "-j2"
jobs:
build:
strategy:
matrix:
include:
- name: Default
- name: Static
config: --enable-static
- name: Maintainer-mode
config: --enable-maintainer-mode
- name: Pool-debug
config: --enable-pool-debug
- name: Pool-debug, maintainer-mode
config: --enable-pool-debug --enable-maintainer-mode
- name: Maintainer-mode, no IPv6
config: --enable-maintainer-mode --disable-ipv6
- name: Maintainer-mode, -Werror
notest-cflags: -Werror
config: --enable-maintainer-mode
- name: With crypto
config: --with-crypto=yes --with-openssl=yes
config-output: APU_HAVE_CRYPTO APU_HAVE_OPENSSL
- name: ASan
# w/o ODBC since DSO unload leaks memory and fails the tests
notest-cflags: -fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer -Werror -O2
config: --with-odbc=no
- name: ASan, pool-debug
# w/o ODBC since DSO unload leaks memory and fails the tests
notest-cflags: -fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer -Werror -O2
config: --enable-pool-debug --with-odbc=no
- name: UBsan
notest-cflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -Werror -O2
- name: LMDB
packages: liblmdb-dev
notest-cflags: -Werror
config: --enable-maintainer-mode --with-lmdb --with-dbm=lmdb
config-output: APU_HAVE_LMDB
- name: Berkeley DB v5.3
packages: libdb5.3-dev
notest-cflags: -Werror
config: --enable-maintainer-mode --with-berkeley-db --with-dbm=db5
config-output: APU_HAVE_DB
fail-fast: false
runs-on: ubuntu-latest
env:
NOTEST_CFLAGS: ${{ matrix.notest-cflags }}
name: ${{ matrix.name }}
steps:
- name: Install prerequisites
run: sudo apt-get install libtool libtool-bin ${{ matrix.packages }}
- uses: actions/checkout@v3
- name: buildconf
run: ./buildconf
- name: configure
run: ./configure --prefix=/tmp/apr ${{ matrix.config }}
- if: ${{ matrix.config-output != '' }}
name: check for expected configure output ${{ matrix.config-output }}
run: for var in ${{ matrix.config-output }}; do grep "^#define *${var} *1" include/apr.h; done
- name: make
run: make $MARGS
- name: install
run: make install
- name: check
run: make check