# Useful for reproducing test failures with Docker.
# Useful for reproducing test failures with Docker. Allegro does not like it if
# the user we're running as has no entry in /etc/passwd. So we make a user
# first and then execute the command as that user.
test-docker-repl:
@${DOCKER} run --rm-i-t--pull always -u$(shell id-u):$(shell id-g)-v$(sourceDirectory):$(sourceDirectory)-w$(sourceDirectory)/test clfoundation/${l}:${docker_tag}
@${DOCKER} run --rm-i-t-eI_AGREE_TO_ALLEGRO_EXPRESS_LICENSE=yes-v$(sourceDirectory):$(sourceDirectory)-w$(sourceDirectory)/test $(DOCKER_IMAGE_$(UPCASE_L)):${docker_tag} bash -c"adduser --uid $(shell id -u) --gecos 'ASDF tester' --disabled-password --no-create-home user && su user -c \"$($(UPCASE_L))\""
# Allegro does not like it if the user we're running as has no entry in
# /etc/passwd. So we make a user first and then execute the command as that
# user.
test-docker-lisp:build/asdf.lisp show-version
@${DOCKER} run --rm-i-t--pull always -u$(shell id-u):$(shell id-g)-v$(sourceDirectory):$(sourceDirectory)-w$(sourceDirectory)clfoundation/${l}:${docker_tag}make test-lisp l=${l}t=${t}
${DOCKER} run --rm-i-t-eI_AGREE_TO_ALLEGRO_EXPRESS_LICENSE=yes-v$(sourceDirectory):$(sourceDirectory)-w$(sourceDirectory)$(DOCKER_IMAGE_$(UPCASE_L)):${docker_tag} bash -c"adduser --uid $(shell id -u) --gecos 'ASDF tester' --disabled-password --no-create-home user && su user -c \"make test-lisp l=$(l) t=$(t)\""