From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VE9PL-0008P4-Jb for qemu-devel@nongnu.org; Mon, 26 Aug 2013 22:53:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VE9PD-00079b-Q8 for qemu-devel@nongnu.org; Mon, 26 Aug 2013 22:53:27 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:52454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VE9PB-0006v5-SJ for qemu-devel@nongnu.org; Mon, 26 Aug 2013 22:53:19 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Aug 2013 23:47:06 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 2FA432BB004F for ; Tue, 27 Aug 2013 12:52:55 +1000 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r7R2aewB57213080 for ; Tue, 27 Aug 2013 12:36:41 +1000 Received: from d23av03.au.ibm.com (localhost [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r7R2qrsi026147 for ; Tue, 27 Aug 2013 12:52:53 +1000 From: Wenchao Xia Date: Tue, 27 Aug 2013 10:52:08 +0800 Message-Id: <1377571931-9144-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH V2 0/3] qemu-iotests: add test for fd passing via SCM rights List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, Wenchao Xia , armbru@redhat.com, anthony@codemonkey.ws, lcapitulino@redhat.com This series add test case for fd passing with unix socket at runtime. Since getfd and closefd interface will interact with monitor's data, so it will help to do regression test for monitor patches. Since python2 do not support sendmsg(), so a C helper program is added to do the job. v2: 1: add missing $ in the makefile rule. Wenchao Xia (3): 1 qemu-iotests: add unix socket help program 2 qemu-iotests: add infrastructure of fd passing via SCM 3 qemu-iotests: add tests for runtime fd passing via SCM rights QMP/qmp.py | 6 ++ configure | 2 +- tests/Makefile | 4 +- tests/qemu-iotests/045 | 37 ++++++++++- tests/qemu-iotests/045.out | 4 +- tests/qemu-iotests/check | 1 + tests/qemu-iotests/iotests.py | 26 +++++++ tests/qemu-iotests/socket_scm_helper.c | 119 ++++++++++++++++++++++++++++++++ 8 files changed, 194 insertions(+), 5 deletions(-) create mode 100644 tests/qemu-iotests/socket_scm_helper.c