[{"id":1773543,"web_url":"http://patchwork.ozlabs.org/comment/1773543/","msgid":"<115f9317-ac34-03f9-fb86-8af85124cabc@amsat.org>","list_archive_url":null,"date":"2017-09-22T12:21:47","subject":"Re: [Qemu-devel] [PATCH v11 09/13] tests: Add OpenBSD image","submitter":{"id":70924,"url":"http://patchwork.ozlabs.org/api/people/70924/","name":"Philippe Mathieu-Daudé","email":"f4bug@amsat.org"},"content":"Alex, Peter,\n\nJTLYK I just finished to test this one too (which was merged in the \nmeaning time).\n\nOn 09/21/2017 12:07 PM, Fam Zheng wrote:\n> The image is prepared following instructions as in:\n> \n> https://wiki.qemu.org/Hosts/BSD\n> \n> Signed-off-by: Fam Zheng <famz@redhat.com>\n> ---\n>   tests/vm/openbsd | 43 +++++++++++++++++++++++++++++++++++++++++++\n>   1 file changed, 43 insertions(+)\n>   create mode 100755 tests/vm/openbsd\n> \n> diff --git a/tests/vm/openbsd b/tests/vm/openbsd\n> new file mode 100755\n> index 0000000000..6ae16d97fd\n> --- /dev/null\n> +++ b/tests/vm/openbsd\n> @@ -0,0 +1,43 @@\n> +#!/usr/bin/env python\n> +#\n> +# OpenBSD VM image\n> +#\n> +# Copyright 2017 Red Hat Inc.\n> +#\n> +# Authors:\n> +#  Fam Zheng <famz@redhat.com>\n> +#\n> +# This code is licensed under the GPL version 2 or later.  See\n> +# the COPYING file in the top-level directory.\n> +#\n> +\n> +import os\n> +import sys\n> +import subprocess\n> +import basevm\n> +\n> +class OpenBSDVM(basevm.BaseVM):\n> +    name = \"openbsd\"\n> +    BUILD_SCRIPT = \"\"\"\n> +        set -e;\n> +        cd $(mktemp -d /var/tmp/qemu-test.XXXXXX);\n> +        tar -xf /dev/rsd1c;\n> +        ./configure --cc=x86_64-unknown-openbsd6.1-gcc-4.9.4 --python=python2.7 {configure_opts};\n> +        gmake -j{jobs};\n> +        # XXX: \"gmake check\" seems to always hang or fail\n> +        #gmake check;\n> +    \"\"\"\n> +\n> +    def build_image(self, img):\n> +        cimg = self._download_with_cache(\"http://download.patchew.org/openbsd-6.1-amd64.img.xz\",\n> +                sha256sum='8c6cedc483e602cfee5e04f0406c64eb99138495e8ca580bc0293bcf0640c1bf')\n> +        img_tmp_xz = img + \".tmp.xz\"\n> +        img_tmp = img + \".tmp\"\n> +        subprocess.check_call([\"cp\", \"-f\", cimg, img_tmp_xz])\n> +        subprocess.check_call([\"xz\", \"-df\", img_tmp_xz])\n> +        if os.path.exists(img):\n> +            os.remove(img)\n> +        os.rename(img_tmp, img)\n> +\n> +if __name__ == \"__main__\":\n> +    sys.exit(basevm.main(OpenBSDVM))\n>","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\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"d3LlkJve\"; dkim-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 3xzCKW6VfWz9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 22:22:23 +1000 (AEST)","from localhost ([::1]:58582 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 1dvMyL-0000aq-BX\n\tfor incoming@patchwork.ozlabs.org; Fri, 22 Sep 2017 08:22:21 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:52110)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvMxv-0000ZZ-I6\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 08:21:56 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvMxs-0007S0-Cc\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 08:21:55 -0400","from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:50854)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvMxs-0007Rs-8C\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 08:21:52 -0400","by mail-qk0-x233.google.com with SMTP id s132so815308qke.7\n\tfor <qemu-devel@nongnu.org>; Fri, 22 Sep 2017 05:21:52 -0700 (PDT)","from [192.168.1.10] ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\t50sm2715652qts.82.2017.09.22.05.21.48\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 22 Sep 2017 05:21:50 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=hrvx0IX5cCTNEKt6BBXOjqTQYZXW7H4CUY86fRwD9A8=;\n\tb=d3LlkJveSRyH1QTmlDzKAccm26ZL0nSN2JB7tniNWnPuwQ6LBGmPE530+EAACOEwXW\n\tbg4+LnHmYwrqFW6F/b0oUpulGO6/DrAqo4heu8x0TBPDbtgkG5srE37MstPJ5Jr9Oes2\n\tgUKo6HNgY6ECsenJrL7Xq7cZ/bm3i0QfkVzIbtKIcOUC2CPizD1EgpKXToU++ZXqkR59\n\tu3xi+dGrAlj8ANK4JpQomaXStVmYYR4YZotmofy0lX+/dY8kV8U1HSVgPpwGoPvcHA7p\n\tNhX3xsp8fkX9ynzDbyXd9Gnmd9ZVagZfu7aciMn2+eFU730+gxQUa7PAe+ztV1snimqu\n\tmGaw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:subject:to:cc:references:from:message-id\n\t:date:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=hrvx0IX5cCTNEKt6BBXOjqTQYZXW7H4CUY86fRwD9A8=;\n\tb=PoEDHj7c34GhfrYPPKkd7PNGwzIXlvGPh3XCG2UMJfXtMkBMfugS2Gfm4r3wnXIzvJ\n\ttj2VOjIE0tZvVe9f901qSU71t3cnwgIZcd24lSIJ3GRiwlr2ay0D4ursQjAkq6HV0kp3\n\tDhMBXkKr8qMi0Sr54s67TveFttHgEijaY7mnYpmAzBTnYVcPwIfbp+0OC1XaoMJuil8q\n\tTgkTzvH9QWTDeDaEM2oeFzEaBIksn/2fe5tGOunbEdDep3Qarok2mwoLz6YD8Kykpb00\n\tvGLrp0VrCO4R0gT1tuYLT/E7jyGFyhcOSt51H7vk/tfW1Z0W1wxmdRmK/XrCuCXxsofG\n\tCIow==","X-Gm-Message-State":"AHPjjUgBWa0DVgrwwGsFTzM+GOLyeIz+jp2y4bGG8g5Fdm2yAWe51Ye2\n\terXZQAKk79AzDVGtbP09SwA=","X-Google-Smtp-Source":"AOwi7QDbBgeFHWHARzTEsQXC/Zr1pZYg2nl2gTo7PIuGccOP+Omx2a/zFp3i2DEJ2pl0o76mTAGDLg==","X-Received":"by 10.55.42.5 with SMTP id q5mr7864937qkh.71.1506082911639;\n\tFri, 22 Sep 2017 05:21:51 -0700 (PDT)","To":"Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org, =?utf-8?q?Alex_Ben?=\n\t=?utf-8?q?n=C3=A9e?= <alex.bennee@linaro.org>,\n\tPeter Maydell <peter.maydell@linaro.org>","References":"<20170921150755.19914-1-famz@redhat.com>\n\t<20170921150755.19914-10-famz@redhat.com>","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>","Message-ID":"<115f9317-ac34-03f9-fb86-8af85124cabc@amsat.org>","Date":"Fri, 22 Sep 2017 09:21:47 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170921150755.19914-10-famz@redhat.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:400d:c09::233","Subject":"Re: [Qemu-devel] [PATCH v11 09/13] tests: Add OpenBSD image","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":"Kamil Rytarowski <kamil@netbsd.org>, stefanha@redhat.com,\n\tCleber Rosa <crosa@redhat.com>, pbonzini@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>"}}]