Makefile: add convenience 'print-vm' target

Add a simple convenience target that prints the filename of the test
image without creating it beforehand. This can be useful to know what is
the expected filename, so it is possible to provide an own test image
instead of the generated one.
This commit is contained in:
Pino Toscano 2022-03-30 12:02:27 +02:00 committed by Martin Pitt
parent 29abcaab98
commit 9357e55fc6

View file

@ -147,6 +147,10 @@ $(VM_IMAGE): $(TARFILE) $(NODE_CACHE) bots test/vm.install
vm: $(VM_IMAGE) vm: $(VM_IMAGE)
echo $(VM_IMAGE) echo $(VM_IMAGE)
# convenience target to print the filename of the test image
print-vm:
echo $(VM_IMAGE)
# convenience target to setup all the bits needed for the integration tests # convenience target to setup all the bits needed for the integration tests
# without actually running them # without actually running them
prepare-check: $(NODE_MODULES_TEST) $(VM_IMAGE) test/common prepare-check: $(NODE_MODULES_TEST) $(VM_IMAGE) test/common
@ -187,4 +191,4 @@ $(NODE_MODULES_TEST): package.json
env -u NODE_ENV npm install env -u NODE_ENV npm install
env -u NODE_ENV npm prune env -u NODE_ENV npm prune
.PHONY: all clean install devel-install print-version dist node-cache rpm check vm update-po .PHONY: all clean install devel-install print-version dist node-cache rpm check vm update-po print-vm