Skip to content

Commit

Permalink
Add tests for MemcacheD storage backend (openstreetmap#362)
Browse files Browse the repository at this point in the history
_Also_:
* Added background `renderd` process testing
* Added `renderd` section without `stats_file` testing
* Added `render_*` via TCP tests
* Added `render_* --verbose`  tests
* Added `render_expired --delete-from` tests
* Added `render_expired --no-progress` tests
* Added `render_expired --touch-from` tests
* Added `PARAMETERIZE_STYPE=language` map configuration testing
* Added `HTCPHOST`/`HOST` map configuration testing
  • Loading branch information
hummeltech authored Jan 6, 2024
1 parent 6c1d890 commit d8cd8de
Show file tree
Hide file tree
Showing 7 changed files with 480 additions and 346 deletions.
6 changes: 5 additions & 1 deletion .github/actions/cmake/test/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
inputs:
options:
default: --exclude-regex 'clear_dirs_.+|remove_tile_.+' --output-on-failure

runs:
using: composite
steps:
Expand All @@ -10,7 +14,7 @@ runs:
shell: bash --noprofile --norc -euxo pipefail {0}

- name: Test `mod_tile`
run: ctest --exclude-regex 'clear_dirs|remove_tiles' --output-on-failure
run: ctest ${{ inputs.options }}
shell: bash --noprofile --norc -euxo pipefail {0}
working-directory: build

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
with:
ubuntu-test-dependencies: >-
apache2
jq
lcov
memcached
- name: Build `mod_tile`
uses: ./.github/actions/cmake/build
Expand All @@ -36,7 +38,6 @@ jobs:

- name: Process `mod_tile` coverage results
run: |
ctest -T coverage
lcov \
--capture \
--directory . \
Expand Down
3 changes: 2 additions & 1 deletion docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RUN --mount=id=debian:${debian_version}-/var/cache/apt,sharing=locked,target=/va
libiniparser-dev \
libmapnik-dev \
libmemcached-dev \
librados-dev
librados-dev \
netbase

## Build, Test & Install `mod_tile`
COPY . /tmp/mod_tile_src
Expand Down
3 changes: 2 additions & 1 deletion docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RUN --mount=id=ubuntu:${ubuntu_version}-/var/cache/apt,sharing=locked,target=/va
libiniparser-dev \
libmapnik-dev \
libmemcached-dev \
librados-dev
librados-dev \
netbase

## Build, Test & Install `mod_tile`
COPY . /tmp/mod_tile_src
Expand Down
Loading

0 comments on commit d8cd8de

Please sign in to comment.