build: name the Valgrind run the container is prepared for

The Dockerfile installs valgrind and the ld.so debug info it needs, but
no target used them; docker-valgrind runs the unit suite under it, so
the dependency is visible and the run is one command.
This commit is contained in:
2026-08-16 18:29:03 +09:00
parent 3f1ff03b94
commit 723a271a9c
2 changed files with 8 additions and 3 deletions

View File

@@ -70,6 +70,10 @@ docker-check-stress:
docker-bench:
$(DOCKER_RUN) sh -c 'make clean && make bench'
docker-valgrind:
$(DOCKER_RUN) sh -c 'make clean && make -C tests unit_test && \
cd tests && valgrind -q --error-exitcode=1 ./unit_test $(UNITARGS)'
docker: docker-image
$(MAKE) docker-build
@@ -95,4 +99,4 @@ verify-map:
.PHONY: all check check-live check-stress test verify-map clean gtk bench \
docker docker-image docker-build docker-check docker-check-live \
docker-check-stress docker-bench
docker-check-stress docker-bench docker-valgrind

View File

@@ -76,8 +76,9 @@ make check-stress # randomized, capacity, collision, failure, and restart test
`UNITARGS` filters only the focused C unit suite, for example
`make check UNITARGS=hangul`. It does not select or skip live and stress
tests. `make docker-check` force-rebuilds and runs all three tiers in the
container; run `make docker-image` first after changing `Dockerfile`.
tests. `make docker-check` rebuilds and runs all three tiers in the
container, and `make docker-valgrind` runs the unit suite under Valgrind
there; run `make docker-image` first after changing `Dockerfile`.
Native Linux source builds require a C toolchain, Make, pkg-config, Python 3,
and cmp/diff, plus development files for: