Skip to content

Commit

Permalink
Test that configure really sets APx_HAVE_x flags in apr.h
Browse files Browse the repository at this point in the history
in configurations for optional features.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1912610 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
notroj committed Sep 29, 2023
1 parent ce8c382 commit e246610
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
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
Expand All @@ -46,10 +47,12 @@ jobs:
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
Expand All @@ -64,6 +67,9 @@ jobs:
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
Expand Down

0 comments on commit e246610

Please sign in to comment.