Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/807158/?format=api
{ "id": 807158, "url": "http://patchwork.ozlabs.org/api/patches/807158/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1504021818-12128-3-git-send-email-chugh.ishani@research.iiit.ac.in/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1504021818-12128-3-git-send-email-chugh.ishani@research.iiit.ac.in>", "list_archive_url": null, "date": "2017-08-29T15:50:17", "name": "[2/3] Test for full Backup", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "6400ece2a262f648a3c7266fb18b48e874153ac3", "submitter": { "id": 71382, "url": "http://patchwork.ozlabs.org/api/people/71382/?format=api", "name": "Ishani", "email": "chugh.ishani@research.iiit.ac.in" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1504021818-12128-3-git-send-email-chugh.ishani@research.iiit.ac.in/mbox/", "series": [ { "id": 398, "url": "http://patchwork.ozlabs.org/api/series/398/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=398", "date": "2017-08-29T15:50:15", "name": "QEMU Backup Tool", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/398/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/807158/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/807158/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=research.iiit.ac.in\n\theader.i=@research.iiit.ac.in header.b=\"kxwM9lOH\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhY5b2V2tz9t2v\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 01:51:15 +1000 (AEST)", "from localhost ([::1]:45613 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dminJ-0005p5-7j\n\tfor incoming@patchwork.ozlabs.org; Tue, 29 Aug 2017 11:51:13 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:53888)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <chugh.ishani@research.iiit.ac.in>)\n\tid 1dmimd-0005mG-5t\n\tfor qemu-devel@nongnu.org; Tue, 29 Aug 2017 11:50:32 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <chugh.ishani@research.iiit.ac.in>)\n\tid 1dmimZ-0000Dp-8Z\n\tfor qemu-devel@nongnu.org; Tue, 29 Aug 2017 11:50:31 -0400", "from research.iiit.ac.in ([196.12.53.8]:58842)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <chugh.ishani@research.iiit.ac.in>)\n\tid 1dmimY-0000AW-H7\n\tfor qemu-devel@nongnu.org; Tue, 29 Aug 2017 11:50:27 -0400", "from localhost (localhost [127.0.0.1])\n\tby research.iiit.ac.in (Postfix) with ESMTP id D4050741F5E;\n\tTue, 29 Aug 2017 21:20:22 +0530 (IST)", "from research.iiit.ac.in ([127.0.0.1])\n\tby localhost (research.iiit.ac.in [127.0.0.1]) (amavisd-new,\n\tport 10032)\n\twith ESMTP id vVg3KIRN_7kv; Tue, 29 Aug 2017 21:20:20 +0530 (IST)", "from localhost (localhost [127.0.0.1])\n\tby research.iiit.ac.in (Postfix) with ESMTP id BE07D744E29;\n\tTue, 29 Aug 2017 21:20:20 +0530 (IST)", "from research.iiit.ac.in ([127.0.0.1])\n\tby localhost (research.iiit.ac.in [127.0.0.1]) (amavisd-new,\n\tport 10026)\n\twith ESMTP id sMkg4oW4x1kJ; Tue, 29 Aug 2017 21:20:20 +0530 (IST)", "from ishani-Inspiron-5558.iiit.ac.in (unknown [10.2.20.52])\n\tby research.iiit.ac.in (Postfix) with ESMTPSA id A56A8741F5E;\n\tTue, 29 Aug 2017 21:20:20 +0530 (IST)" ], "DKIM-Filter": "OpenDKIM Filter v2.9.2 research.iiit.ac.in BE07D744E29", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=research.iiit.ac.in; \n\ts=4E8815E6-5B55-11E4-B758-8D4964374E96; t=1504021820;\n\tbh=pWeA3Y/1pyoBgrFtKC4VvbbY/tFUz1yYfP37FIAdKqc=;\n\th=From:To:Subject:Date:Message-Id;\n\tb=kxwM9lOHY3wfGkSYLgmvwo/UuxLpVlEmlTuo95rbQA43yfyodyOn+gVi2lu34tnCr\n\tsGt7Eu8q3s5ZQ7WXc44tcHAmp0Axl21SQjpM2GpFOqYmTnGvC25VPhP0NUChtZE4fq\n\tyG2Rrvm5aOoA27wbkgO6rFwYMci8vYaGVzYaNu28=", "X-Virus-Scanned": "amavisd-new at research.iiit.ac.in", "From": "Ishani Chugh <chugh.ishani@research.iiit.ac.in>", "To": "qemu-devel@nongnu.org", "Date": "Tue, 29 Aug 2017 21:20:17 +0530", "Message-Id": "<1504021818-12128-3-git-send-email-chugh.ishani@research.iiit.ac.in>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1504021818-12128-1-git-send-email-chugh.ishani@research.iiit.ac.in>", "References": "<1504021818-12128-1-git-send-email-chugh.ishani@research.iiit.ac.in>", "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]", "X-Received-From": "196.12.53.8", "Subject": "[Qemu-devel] [PATCH 2/3] Test for full Backup", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "<qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Cc": "Ishani Chugh <chugh.ishani@research.iiit.ac.in>, jsnow@redhat.com,\n\tstefanha@redhat.com", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>" }, "content": "This patch is the test for full backup implementation in Backup tool.\nThe test employs two basic substests:\n1) Backing up an empty guest and comparing it with base image.\n2) Writing a pattern to the guest, creating backup and comparing\n with the base image.\n\n\nSigned-off-by: Ishani Chugh <chugh.ishani@research.iiit.ac.in>\n---\n tests/qemu-iotests/191 | 86 ++++++++++++++++++++++++++++++++++++++++++++++\n tests/qemu-iotests/191.out | 35 +++++++++++++++++++\n tests/qemu-iotests/group | 2 ++\n 3 files changed, 123 insertions(+)\n create mode 100755 tests/qemu-iotests/191\n create mode 100644 tests/qemu-iotests/191.out", "diff": "diff --git a/tests/qemu-iotests/191 b/tests/qemu-iotests/191\nnew file mode 100755\nindex 0000000..16988d8\n--- /dev/null\n+++ b/tests/qemu-iotests/191\n@@ -0,0 +1,86 @@\n+#!/bin/bash\n+#\n+# Test full backup functionality of qemu-backup tool\n+#\n+# Copyright (C) 2017 Ishani Chugh <chugh.ishani@research.iiit.ac.in>\n+#\n+# This program is free software; you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation; either version 2 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program. If not, see <http://www.gnu.org/licenses/>.\n+#\n+\n+# creator\n+owner=chugh.ishani@research.iiit.ac.in\n+\n+seq=`basename $0`\n+echo \"QA output created by $seq\"\n+\n+here=`pwd`\n+status=1\t# failure is the default!\n+\n+\n+# get standard environment, filters and checks\n+. ./common.rc\n+. ./common.filter\n+. ./common.qemu\n+\n+_supported_fmt generic\n+_supported_proto generic\n+_supported_os Linux\n+\n+_cleanup()\n+{\n+ rm -f \"$TEST_DIR\"/virtio0\n+ rm -f \"$CONFIG_FILE\"\n+}\n+trap \"_cleanup; exit \\$status\" 0 1 2 3 15\n+\n+CONFIG_FILE=\"$TEST_DIR\"/backup-config\n+SOCKET=unix:\"$TEST_DIR\"/backup_socket\n+size=128M\n+\n+_make_test_img \"$size\"\n+export QEMU_BACKUP_CONFIG=\"$CONFIG_FILE\"\n+qemu_comm_method=\"monitor\"\n+echo\n+_launch_qemu -drive if=virtio,file=\"$TEST_IMG\" -qmp \"$SOCKET\",server,nowait\n+$PYTHON ../../contrib/backup/qemu-backup.py guest add --guest adad --qmp \"$SOCKET\"\n+$PYTHON ../../contrib/backup/qemu-backup.py drive add --id virtio0 --guest adad --target \"$TEST_DIR\"/virtio0\n+echo\n+echo \"== Creating backup ==\"\n+$PYTHON ../../contrib/backup/qemu-backup.py backup --guest adad\n+_send_qemu_cmd $QEMU_HANDLE 'quit' ''\n+wait=1 _cleanup_qemu\n+echo\n+echo \"== Comparing images ==\"\n+$QEMU_IMG compare \"$TEST_DIR\"/virtio0 \"$TEST_IMG\"\n+_cleanup\n+\n+_launch_qemu -drive if=virtio,id=virtio0,file=\"$TEST_IMG\" -qmp \"$SOCKET\",server,nowait\n+$PYTHON ../../contrib/backup/qemu-backup.py guest add --guest adad --qmp \"$SOCKET\"\n+$PYTHON ../../contrib/backup/qemu-backup.py drive add --id virtio0 --guest adad --target \"$TEST_DIR\"/virtio0\n+echo\n+echo \"== Writing Pattern ==\"\n+_send_qemu_cmd $QEMU_HANDLE 'qemu-io virtio0 \"write -P 0x22 0 1M\"' \"(qemu)\" | _filter_qemu_io\n+echo\n+echo \"== Creating backup ==\"\n+$PYTHON ../../contrib/backup/qemu-backup.py backup --guest adad\n+_send_qemu_cmd $QEMU_HANDLE 'quit' ''\n+wait=1 _cleanup_qemu\n+echo\n+echo \"== Comparing images ==\"\n+$QEMU_IMG compare \"$TEST_DIR\"/virtio0 \"$TEST_IMG\"\n+_cleanup\n+_cleanup_test_img\n+\n+echo \"*** done\"\n+status=0\n\\ No newline at end of file\ndiff --git a/tests/qemu-iotests/191.out b/tests/qemu-iotests/191.out\nnew file mode 100644\nindex 0000000..c60d47a\n--- /dev/null\n+++ b/tests/qemu-iotests/191.out\n@@ -0,0 +1,35 @@\n+QA output created by 191\n+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728\n+\n+Successfully Added Guest\n+Successfully Added Drive\n+\n+== Creating backup ==\n+Backup Started\n+*virtio0\n+Backup Complete\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) Formatting 'TEST_DIR/virtio0', fmt=qcow2 size=134217728 cluster_size=65536 lazy_refcounts=off refcount_bits=16\n+quit\n+\n+== Comparing images ==\n+Images are identical.\n+Successfully Added Guest\n+Successfully Added Drive\n+\n+== Writing Pattern ==\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io virtio0 \"write -P 0x22 0 1M\"\n+\n+== Creating backup ==\n+Backup Started\n+*virtio0\n+Backup Complete\n+wrote 1048576/1048576 bytes at offset 0\n+1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) Formatting 'TEST_DIR/virtio0', fmt=qcow2 size=134217728 cluster_size=65536 lazy_refcounts=off refcount_bits=16\n+quit\n+\n+== Comparing images ==\n+Images are identical.\n+*** done\ndiff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group\nindex afbdc42..66fa231 100644\n--- a/tests/qemu-iotests/group\n+++ b/tests/qemu-iotests/group\n@@ -186,4 +186,6 @@\n 188 rw auto quick\n 189 rw auto\n 190 rw auto quick\n+191 rw auto\n 192 rw auto quick\n+193 rw auto\n", "prefixes": [ "2/3" ] }