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:
6
Makefile
6
Makefile
@@ -70,6 +70,10 @@ docker-check-stress:
|
|||||||
docker-bench:
|
docker-bench:
|
||||||
$(DOCKER_RUN) sh -c 'make clean && make 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
|
docker: docker-image
|
||||||
$(MAKE) docker-build
|
$(MAKE) docker-build
|
||||||
|
|
||||||
@@ -95,4 +99,4 @@ verify-map:
|
|||||||
|
|
||||||
.PHONY: all check check-live check-stress test verify-map clean gtk bench \
|
.PHONY: all check check-live check-stress test verify-map clean gtk bench \
|
||||||
docker docker-image docker-build docker-check docker-check-live \
|
docker docker-image docker-build docker-check docker-check-live \
|
||||||
docker-check-stress docker-bench
|
docker-check-stress docker-bench docker-valgrind
|
||||||
|
|||||||
@@ -76,8 +76,9 @@ make check-stress # randomized, capacity, collision, failure, and restart test
|
|||||||
|
|
||||||
`UNITARGS` filters only the focused C unit suite, for example
|
`UNITARGS` filters only the focused C unit suite, for example
|
||||||
`make check UNITARGS=hangul`. It does not select or skip live and stress
|
`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
|
tests. `make docker-check` rebuilds and runs all three tiers in the
|
||||||
container; run `make docker-image` first after changing `Dockerfile`.
|
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,
|
Native Linux source builds require a C toolchain, Make, pkg-config, Python 3,
|
||||||
and cmp/diff, plus development files for:
|
and cmp/diff, plus development files for:
|
||||||
|
|||||||
Reference in New Issue
Block a user