All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: "Fam Zheng" <fam@euphon.net>,
	berrange@redhat.com, "Alex Bennée" <alex.bennee@linaro.org>,
	qemu-devel@nongnu.org, "Gerd Hoffmann" <kraxel@redhat.com>,
	pbonzini@redhat.com, "Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 3/6] tests/docker: add podman support
Date: Fri, 23 Aug 2019 14:26:07 +0200	[thread overview]
Message-ID: <878srknk4g.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20190713143311.17620-4-marcandre.lureau@redhat.com> ("Marc-André Lureau"'s message of "Sat, 13 Jul 2019 18:33:08 +0400")

Just saw this land in master, awesome.  Suggestion inline.

Marc-André Lureau <marcandre.lureau@redhat.com> writes:

> Allow to specify the container engine to run with ENGINE variable.
>
> By default, ENGINE=auto and will select either podman or docker.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  Makefile                      | 2 +-
>  tests/docker/Makefile.include | 8 ++++++--
>  2 files changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 1fcbaed62c..7863bb0cf5 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1153,7 +1153,7 @@ endif
>  	@echo  ''
>  	@echo  'Test targets:'
>  	@echo  '  check           - Run all tests (check-help for details)'
> -	@echo  '  docker          - Help about targets running tests inside Docker containers'
> +	@echo  '  docker          - Help about targets running tests inside containers'
>  	@echo  '  vm-help         - Help about targets running tests inside VM'

Let's rename target docker to something like container-help, for
symmetry with vm-help, and because calling the target to get help on X X
is in poor taste.

See also
commit 4f2f62762f8119886fbb65920931613cd87840b3
Author: Philippe Mathieu-Daudé <philmd@redhat.com>
Date:   Fri May 31 08:43:41 2019 +0200

    Makefile: Rename the 'vm-test' target as 'vm-help'
    
    We already have 'make check-help', use the 'make vm-help' form
    to display helps about VM testing. Keep the old target to not
    bother old customs.
    
    Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    Message-Id: <20190531064341.29730-1-philmd@redhat.com>
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

>  	@echo  ''
>  	@echo  'Documentation targets:'
> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
> index f4226b79d0..3c1aec862a 100644
> --- a/tests/docker/Makefile.include
> +++ b/tests/docker/Makefile.include
> @@ -17,7 +17,9 @@ DOCKER_TESTS := $(notdir $(shell \
>  
>  DOCKER_TOOLS := travis
>  
> -DOCKER_SCRIPT=$(SRC_PATH)/tests/docker/docker.py
> +ENGINE := auto
> +
> +DOCKER_SCRIPT=$(SRC_PATH)/tests/docker/docker.py --engine $(ENGINE)
>  
>  TESTS ?= %
>  IMAGES ?= %
> @@ -146,7 +148,7 @@ $(foreach i,$(filter-out $(DOCKER_PARTIAL_IMAGES),$(DOCKER_IMAGES) $(DOCKER_DEPR
>  )
>  
>  docker:
> -	@echo 'Build QEMU and run tests inside Docker containers'
> +	@echo 'Build QEMU and run tests inside Docker or Podman containers'
>  	@echo
>  	@echo 'Available targets:'
>  	@echo
> @@ -193,6 +195,8 @@ endif
>  	@echo '    EXECUTABLE=<path>    Include executable in image.'
>  	@echo '    EXTRA_FILES="<path> [... <path>]"'
>  	@echo '                         Include extra files in image.'
> +	@echo '    ENGINE=auto/docker/podman'

Your | are listing.

> +	@echo '                         Specify which container engine to run.'
>  
>  # This rule if for directly running against an arbitrary docker target.
>  # It is called by the expanded docker targets (e.g. make


  parent reply	other threads:[~2019-08-23 12:50 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-13 14:33 [Qemu-devel] [PATCH v3 0/6] tests/docker: add podman support Marc-André Lureau
2019-07-13 14:33 ` [Qemu-devel] [PATCH v3 1/6] docker.py: add --run-as-current-user Marc-André Lureau
2019-07-15  9:57   ` Daniel P. Berrangé
2019-07-15 14:38   ` Alex Bennée
2019-07-15 16:43   ` Philippe Mathieu-Daudé
2019-07-13 14:33 ` [Qemu-devel] [PATCH v3 2/6] docker.py: add podman support Marc-André Lureau
2019-07-15  9:58   ` Daniel P. Berrangé
2019-07-13 14:33 ` [Qemu-devel] [PATCH v3 3/6] tests/docker: " Marc-André Lureau
2019-07-15  9:46   ` Daniel P. Berrangé
2019-07-15 14:39   ` Alex Bennée
2019-08-23 12:26   ` Markus Armbruster [this message]
2019-08-23 12:28     ` Markus Armbruster
2019-07-13 14:33 ` [Qemu-devel] [PATCH v3 4/6] tests: specify the address family when checking bind Marc-André Lureau
2019-07-15  9:37   ` Daniel P. Berrangé
2019-07-13 14:33 ` [Qemu-devel] [PATCH v3 5/6] test-char: skip tcp tests if ipv4 check failed Marc-André Lureau
2019-07-15  9:38   ` Daniel P. Berrangé
2019-07-15 16:45   ` Philippe Mathieu-Daudé
2019-07-16 10:24     ` Daniel P. Berrangé
2019-07-13 14:33 ` [Qemu-devel] [PATCH v3 6/6] test: skip tests if socket_check_protocol_support() failed Marc-André Lureau
2019-07-15  9:40   ` Daniel P. Berrangé
2019-07-15 10:25     ` Marc-André Lureau
2019-07-15 10:29       ` Daniel P. Berrangé
2019-07-14  3:20 ` [Qemu-devel] [PATCH v3 0/6] tests/docker: add podman support no-reply
2019-09-05 16:15 ` David Hildenbrand
2019-09-05 16:19   ` David Hildenbrand
2019-09-05 16:33   ` Alex Bennée

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878srknk4g.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=fam@euphon.net \
    --cc=kraxel@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.