From patchwork Wed Jun 7 17:48:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9772107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AACCC6034B for ; Wed, 7 Jun 2017 17:52:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEAB32843F for ; Wed, 7 Jun 2017 17:52:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3CEE284CF; Wed, 7 Jun 2017 17:52:23 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 501272843F for ; Wed, 7 Jun 2017 17:52:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIf5k-0002FT-59; Wed, 07 Jun 2017 17:50:00 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIf5i-0002F1-SN for xen-devel@lists.xenproject.org; Wed, 07 Jun 2017 17:49:58 +0000 Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id B8/06-02183-6CC38395; Wed, 07 Jun 2017 17:49:58 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeJIrShJLcpLzFFi42JxWrrBXveojUW kwarZqhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8arA0sZC1ZKVsxb3sHawPhJuIuRg0NCwF9i 6i6uLkZODjYBXYmmLX/ZQMIiAioSt/cagISZBWIkfs3cxARiCwt4SnzpaWMGsVmASo5+2MACY vMCxac/2ccGYksIyEmcP/4TrIZTwEti+6vzYHEhoJo9n/+BjRcSUJOYuz4eolVQ4uTMJywQqy QkDr54wTyBkXcWktQsJKkFjEyrGNWLU4vKUot0DfWSijLTM0pyEzNzdA0NTPVyU4uLE9NTcxK TivWS83M3MQKDpp6BgXEHY1Ov8yFGSQ4mJVHeB9IWkUJ8SfkplRmJxRnxRaU5qcWHGGU4OJQk eJmBQSgkWJSanlqRlpkDDF+YtAQHj5IILydImre4IDG3ODMdInWKUZdjw+r1X5iEWPLy81Klx Hm3WQMVCYAUZZTmwY2AxdIlRlkpYV5GBgYGIZ6C1KLczBJU+VeM4hyMSsIQq3gy80rgNr0COo IJ6Ai+SyYgR5QkIqSkGhhTnA+sPibF9vRS/Jlzu7p6pVxfd5hX1z3jv8CSN+HX+ie/dkvGhS/ W1Nu78J2rT/HJVT/2MGlOWGf4brLs4TN1i2bvCX4W558xsTFqE7OjtmuZn8MBbrs7Ic3vGJ8w 6h72ZvIVil7zKlCrrf+Ws8qyc0kTF7tud5x83ZHtue4lu7beD4nP+Z4psRRnJBpqMRcVJwIAu OHuCKACAAA= X-Env-Sender: prvs=3243fba83=Ian.Jackson@citrix.com X-Msg-Ref: server-4.tower-206.messagelabs.com!1496857795!102299222!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3260 invoked from network); 7 Jun 2017 17:49:57 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-4.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 7 Jun 2017 17:49:57 -0000 X-IronPort-AV: E=Sophos;i="5.39,311,1493683200"; d="scan'208";a="435520852" From: Ian Jackson To: Date: Wed, 7 Jun 2017 18:48:56 +0100 Message-ID: <1496857742-20191-6-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496857742-20191-1-git-send-email-ian.jackson@eu.citrix.com> References: <1496857742-20191-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 05/11] ts-xen-build: Build livepatches test-cases X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Konrad Rzeszutek Wilk Livepatch compiles and works on x86/ARM{32|64} so we can enable it in the Xen config when requested by the enable_livepatch runvar. When we are trying to build with enable_livepatch, run `make dist-tests' as well, to ship the test cases. This depends on a corresponding change to xen.git. Finally, split the livepatch tests into their own stashed deliverable from this job. Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Ian Jackson --- v1: New posting v2: Put the livepatch test-cases in xentlpdist.tar.gz file v3: Use enable_livepatch to gate the build and tarring the test-cases. v4: Call `make dist-tests' rather than calling directly deep into the xen.git build system. Split the output ourselves in `divide' (since make dist-tests puts things into dist/install/.) Expect the livepath output in DESTDIR/usr/lib/debug/xen-livepatch rather than directly in DESTDIR/usr/lib/debug. Minor style fix. Rewrote the commit message. --- ts-xen-build | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ts-xen-build b/ts-xen-build index 31acb9d..eaf44b1 100755 --- a/ts-xen-build +++ b/ts-xen-build @@ -51,6 +51,7 @@ $dashdashdash //= -1; builddirsprops(); my $enable_xsm = ($r{enable_xsm}//'false') =~ m/true/ ? 1 : 0; +my $enable_livepatch = ($r{enable_livepatch}//'false') =~ m/true/ ? 1 : 0; $buildcmd_global_prefix= <>.config LIBLEAFDIR_x86_64=lib echo >>.config KERNELS='' END + (${enable_livepatch} ? <>xen/.config CONFIG_LIVEPATCH=y + echo >>xen/.config CONFIG_FAST_SYMBOL_LOOKUP=y + fi +END (nonempty($r{enable_xsm}) ? <>xen/.config CONFIG_XSM='${build_xsm}' @@ -164,6 +171,12 @@ END END store_runvar("flaskpolicy", "xenpolicy-" . $xen_version); } + + if ($enable_livepatch) { + buildcmd_stamped_logged(600, 'xen', 'xenlpt', '',<