From patchwork Tue Jul 9 19:43:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 11037455 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A207514DB for ; Tue, 9 Jul 2019 19:51:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DF9928783 for ; Tue, 9 Jul 2019 19:51:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FBD0287A0; Tue, 9 Jul 2019 19:51:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2E97828783 for ; Tue, 9 Jul 2019 19:51:44 +0000 (UTC) Received: from localhost ([::1]:54140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkw9P-0006IC-Ay for patchwork-qemu-devel@patchwork.kernel.org; Tue, 09 Jul 2019 15:51:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48903) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkw8E-0005Lu-DZ for qemu-devel@nongnu.org; Tue, 09 Jul 2019 15:50:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkw8D-0002Eh-4r for qemu-devel@nongnu.org; Tue, 09 Jul 2019 15:50:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56772) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hkw8C-0002Ci-UB for qemu-devel@nongnu.org; Tue, 09 Jul 2019 15:50:29 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CDEF830860B4; Tue, 9 Jul 2019 19:43:42 +0000 (UTC) Received: from localhost (ovpn-112-55.ams2.redhat.com [10.36.112.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F7D85DD6D; Tue, 9 Jul 2019 19:43:33 +0000 (UTC) From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= To: qemu-devel@nongnu.org Date: Tue, 9 Jul 2019 23:43:25 +0400 Message-Id: <20190709194330.837-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Tue, 09 Jul 2019 19:43:42 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 0/5] tests/docker: add podman support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , berrange@redhat.com, =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , Gerd Hoffmann , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi, podman allows to run containers in a similar fashion as docker, but without daemon or root privileges. Thank you podman! There is a weird issue with getaddrinfo(), that I reported upstream https://github.com/containers/libpod/issues/3535. For now, it is worked around with extra socket_check_protocol_support() checks. thanks v2: - add socket_check_protocol_support() to test-char - keep TAP harness happy when socket_check_protocol_support() fails - removed bad AI_ADDRCONFIG patch - rebased Marc-André Lureau (5): docker.py: add podman support tests/docker: add podman support tests: specify the address family when checking bind test-char: skip tcp tests if ipv4 check failed test: skip tests if socket_check_protocol_support() failed Makefile | 2 +- tests/Makefile.include | 2 +- tests/docker/Makefile.include | 17 +++++++++++--- tests/docker/docker.py | 43 ++++++++++++++++++++++++++++++---- tests/socket-helpers.c | 17 ++++++++++---- tests/socket-helpers.h | 11 --------- tests/test-char.c | 19 +++++++++++---- tests/test-io-channel-socket.c | 4 +++- tests/test-util-sockets.c | 4 +++- 9 files changed, 88 insertions(+), 31 deletions(-)