From patchwork Fri Jul 28 15:26:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9869065 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 2068A603F9 for ; Fri, 28 Jul 2017 15:30:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AD77288B2 for ; Fri, 28 Jul 2017 15:30:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F151C288F9; Fri, 28 Jul 2017 15:30:51 +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 03761288E6 for ; Fri, 28 Jul 2017 15:30:50 +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 1db7C7-0005Gk-P2; Fri, 28 Jul 2017 15:28:51 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db7C6-0005EW-GR for xen-devel@lists.xenproject.org; Fri, 28 Jul 2017 15:28:50 +0000 Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id 2B/E1-03044-1385B795; Fri, 28 Jul 2017 15:28:49 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRWlGSWpSXmKPExsXitHRDpK5hRHW kwbHpohbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8a3H8cZC/ZzV3xr7GJvYLzI2cXIySEh4C9x fupdNhCbTUBH4uLcnUA2B4eIgIrE7b0GIGFmgRCJ1mNf2EFsYYEEiSn39jKB2CwCqhLvbtxnA bF5BSwlLu6fywQxUk/i7cQXjCA2p4CVROPLeawgthBQzb5pPUwQ9YISJ2c+YYGYrynRuv03O4 QtL9G8dTYzRL2iRP+8B2wTGPlmIWmZhaRlFpKWBYzMqxg1ilOLylKLdA1N9JKKMtMzSnITM3N 0DQ3M9HJTi4sT01NzEpOK9ZLzczcxAkONAQh2MF7fGHCIUZKDSUmU96ZZdaQQX1J+SmVGYnFG fFFpTmrxIUYZDg4lCd72MKCcYFFqempFWmYOMOhh0hIcPEoivNIgad7igsTc4sx0iNQpRmOOB T0bvjBxvJrw/xuTEEtefl6qlDjvGpBSAZDSjNI8uEGwaLzEKCslzMsIdJoQT0FqUW5mCar8K0 ZxDkYlYV71cKApPJl5JXD7XgGdwgR0ysSmSpBTShIRUlINjFGchfLT7VQ8rOrZd2Rnh6wOWHd hYpf6Krfzm134Y/fzzD+6cqaUYH1W8+Z7c52naPF+tgnveyMrW/yJ9ZXt9/d7pjn5qc2y60m8 bBqzosom0751ushi0yeTedKeXAvp7nSYnXFZOHXOl67kiwniMcbNp6rnrPi+8OMfrjvfPsYyr pi7hqtXTImlOCPRUIu5qDgRABkE9BTBAgAA X-Env-Sender: prvs=375b3df75=roger.pau@citrix.com X-Msg-Ref: server-3.tower-27.messagelabs.com!1501255726!109048485!2 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6352 invoked from network); 28 Jul 2017 15:28:49 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-3.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2017 15:28:49 -0000 X-IronPort-AV: E=Sophos;i="5.40,425,1496102400"; d="scan'208";a="433444993" From: Roger Pau Monne To: Date: Fri, 28 Jul 2017 16:26:34 +0100 Message-ID: <20170728152637.20301-9-roger.pau@citrix.com> X-Mailer: git-send-email 2.11.0 (Apple Git-81) In-Reply-To: <20170728152637.20301-1-roger.pau@citrix.com> References: <20170728152637.20301-1-roger.pau@citrix.com> MIME-Version: 1.0 Cc: Ian Jackson , Roger Pau Monne Subject: [Xen-devel] [PATCH OSSTEST 08/11] ts-memdisk-try-append: introduce a script to test memdisk options 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 The intended usage is to run this script against every host in order to record the possible needed memdisk flags. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- ts-memdisk-try-append | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 ts-memdisk-try-append diff --git a/ts-memdisk-try-append b/ts-memdisk-try-append new file mode 100755 index 00000000..9c6b56f2 --- /dev/null +++ b/ts-memdisk-try-append @@ -0,0 +1,27 @@ +#!/bin/bash + +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2017 Citrix Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +set -xe -o posix + +if ./ts-freebsd-host-install --testboot $@; then + exit 0 +elif ./ts-freebsd-host-install --testboot --memdiskappend="raw" $@; then + exit 0 +fi + +exit 1