From patchwork Fri Jul 28 13:56:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9868865 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 4697F6038F for ; Fri, 28 Jul 2017 13:59:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37F3C287A4 for ; Fri, 28 Jul 2017 13:59:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CB76288F7; Fri, 28 Jul 2017 13:59:47 +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 2A846288AD for ; Fri, 28 Jul 2017 13:59:45 +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 1db5ko-0000GK-Id; Fri, 28 Jul 2017 13:56:34 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db5km-0000Eg-JX for xen-devel@lists.xenproject.org; Fri, 28 Jul 2017 13:56:32 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id F3/5F-03044-F824B795; Fri, 28 Jul 2017 13:56:31 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGIsWRWlGSWpSXmKPExsXitHSDvW6/U3W kQfNFEYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNePsi09MBa+kK950LWNqYJwq3sXIySEh4C+x Y/ZdZhCbTcBAYsX0q4xdjBwcIgIqErf3GoCEmQUiJF7cWMUGYgsLhEusvLifCcRmEVCVuHdzM 1grr4CdRPfvKcwQI+UlJvZOYwSxOQXsJf7++w7WKwRUc+nXYyYIW03ixsJlLBC9ghInZz5hgd glIXHwxQvmCYy8s5CkZiFJLWBkWsWoUZxaVJZapGtopJdUlJmeUZKbmJmja2hgppebWlycmJ6 ak5hUrJecn7uJERg6DECwg/HyxoBDjJIcTEqivDfNqiOF+JLyUyozEosz4otKc1KLDzHKcHAo SfBWOALlBItS01Mr0jJzgEEMk5bg4FES4TUDSfMWFyTmFmemQ6ROMRpzLOjZ8IWJ49WE/9+Yh Fjy8vNSpcR5l4GUCoCUZpTmwQ2CRdclRlkpYV5GoNOEeApSi3IzS1DlXzGKczAqCfN2gEzhyc wrgdv3CugUJqBTJjZVgpxSkoiQkmpgbAm7sUVRsMSpe9cZk7oKoUfy645rFWlMPNdx9LVdQMW 5Y3N8ON+r5WclrdD4cSrH7w6D8TqH+VESRUtuFm9dbtYSI78/9LTUFpZvP6Z1r0p6bGr288Jq QdE305yEPS9cNHBq41UI35Q876Be0Zm5/r5HzuwVNWK8XFa6Kfpy4zXRdWrXl3BMUmIpzkg01 GIuKk4EALaxdpmpAgAA X-Env-Sender: prvs=3753e7f57=anthony.perard@citrix.com X-Msg-Ref: server-11.tower-21.messagelabs.com!1501250187!72334323!3 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.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 58133 invoked from network); 28 Jul 2017 13:56:30 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-11.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2017 13:56:30 -0000 X-IronPort-AV: E=Sophos;i="5.40,425,1496102400"; d="scan'208";a="441749503" From: Anthony PERARD To: Date: Fri, 28 Jul 2017 14:56:03 +0100 Message-ID: <20170728135625.30263-3-anthony.perard@citrix.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170728135625.30263-1-anthony.perard@citrix.com> References: <20170728135625.30263-1-anthony.perard@citrix.com> MIME-Version: 1.0 Cc: Anthony PERARD , Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH v14 02/24] ts-openstack-tempest: Run Tempest to check OpenStack 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 This script runs the OpenStack integration test suite, Tempest. Signed-off-by: Anthony PERARD Acked-by: Ian Campbell Acked-by: Ian Jackson --- sg-run-job | 1 + ts-openstack-tempest | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100755 ts-openstack-tempest diff --git a/sg-run-job b/sg-run-job index 6092384..5f15821 100755 --- a/sg-run-job +++ b/sg-run-job @@ -632,6 +632,7 @@ proc run-job/test-rumprun {} { proc need-hosts/test-devstack {} { return host } proc run-job/test-devstack {} { run-ts . = ts-openstack-deploy + host + run-ts . = ts-openstack-tempest + host } if {[file exists sg-run-job-adhoc]} { diff --git a/ts-openstack-tempest b/ts-openstack-tempest new file mode 100755 index 0000000..82e9a71 --- /dev/null +++ b/ts-openstack-tempest @@ -0,0 +1,65 @@ +#!/usr/bin/perl +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2016 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 . + +use strict qw(vars); +use Osstest; +use Osstest::TestSupport; +use Osstest::BuildSupport; + +tsreadconfig(); +our ($whhost) = @ARGV; +$whhost ||= 'host'; +our $ho = selecthost($whhost); +our $builddir = target_jobdir($ho); + +sub tempest() { + my @ignored_tests; + my $scenario = 'tempest.scenario'; + my $volume_boot_pattern = + "$scenario.test_volume_boot_pattern.TestVolumeBootPattern"; + my $shelve_instance = "$scenario.test_shelve_instance.TestShelveInstance"; + + # Ignore tests which try to boot a guest with /dev/vda as boot device name. + push @ignored_tests, + "^\Q$volume_boot_pattern.test_volume_boot_pattern\E"; + push @ignored_tests, + "^\Q$volume_boot_pattern.test_create_ebs_image_and_check_boot\E"; + push @ignored_tests, + "^\Q$shelve_instance.test_shelve_volume_backed_instance\E"; + + # Those tests access a volume through iSCSI. This does not work when both + # the server and client of iSCSI are on the same Xen host (both in dom0), + # Linux 4.0 is the first Linux to have a fix. + push @ignored_tests, + "^\Q${volume_boot_pattern}V2.test_volume_boot_pattern\E"; + push @ignored_tests, + "^\Q${volume_boot_pattern}V2.test_create_ebs_image_and_check_boot\E"; + + # This regex below select the tests to run and exclude the ones marked as + # slow as well as the explicit tests listed above. It is based on the one + # that can be found in tempest.git/tox.ini in the section [testenv:full]. + my $ignored_tests = join("|", @ignored_tests); + my $regex = "(?!.*\\[.*\\bslow\\b.*\\]|$ignored_tests)". + "(^tempest\\.(api|scenario|thirdparty))"; + + target_cmd($ho, <