]> git.proxmox.com Git - mirror_qemu.git/commitdiff
docker: add expansion for docker-test-FOO to Makefile.include
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 9 Jul 2018 12:24:52 +0000 (13:24 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 24 Jul 2018 10:45:25 +0000 (11:45 +0100)
This allows us to run a particular test on all docker images. For
example:

  make docker-test-unit

Will run the unit tests on every supported image. At the same time
rename docker-test to docker-all-tests to be clearer.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
tests/docker/Makefile.include

index 09fb7db7fab5b0afa74ee68beda5e737c6b50a19..8fbb076396becf42c0084427451e9255bc8c337c 100644 (file)
@@ -148,7 +148,8 @@ $(foreach i,$(filter-out $(DOCKER_PARTIAL_IMAGES),$(DOCKER_IMAGES) $(DOCKER_DEPR
                $(eval docker-$t@$i: docker-image-$i docker-run-$t@$i) \
        ) \
        $(foreach t,$(DOCKER_TESTS), \
-               $(eval docker-test: docker-$t@$i) \
+               $(eval docker-all-tests: docker-$t@$i) \
+               $(eval docker-$t: docker-$t@$i) \
        ) \
 )
 
@@ -158,7 +159,8 @@ docker:
        @echo 'Available targets:'
        @echo
        @echo '    docker:              Print this help.'
-       @echo '    docker-test:         Run all image/test combinations.'
+       @echo '    docker-all-tests:    Run all image/test combinations.'
+       @echo '    docker-TEST:         Run TEST on all image combinations.'
        @echo '    docker-clean:        Kill and remove residual docker testing containers.'
        @echo '    docker-TEST@IMAGE:   Run "TEST" in container "IMAGE".'
        @echo '                         Note: "TEST" is one of the listed test name,'