From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony PERARD Subject: [PATCH OSSTEST v3 2/3] ts-openstack-tempest: Run Tempest to check OpenStack Date: Mon, 28 Sep 2015 16:56:14 +0100 Message-ID: <1443455775-26131-3-git-send-email-anthony.perard@citrix.com> References: <1443455775-26131-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1443455775-26131-1-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Anthony PERARD , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This script runs the OpenStack integration test suite, Tempest. Signed-off-by: Anthony PERARD --- Change in V3: - Use host as argument of the script. - Use selecthost() and get rid of $gho. - Use target_jobdir() instead of builddirsprops(). - Put the ignored Tempest tests into a var and try to explain why there are skip. --- sg-run-job | 1 + ts-openstack-tempest | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100755 ts-openstack-tempest diff --git a/sg-run-job b/sg-run-job index 4f87f30..cb48b2b 100755 --- a/sg-run-job +++ b/sg-run-job @@ -376,6 +376,7 @@ proc run-job/test-rumpuserxen {} { 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..e2266d3 --- /dev/null +++ b/ts-openstack-tempest @@ -0,0 +1,53 @@ +#!/usr/bin/perl +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2015 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 = ''; + + # Ignore these tests: + # tempest.scenario.test_volume_boot_pattern.TestVolumeBootPattern.test_volume_boot_pattern + # It try to start a guest with /dev/vda as boot device name. + $ignored_tests .= '|.*TestVolumeBootPattern.test_volume_boot_pattern'; + # tempest.scenario.test_shelve_instance.TestShelveInstance.test_shelve_volume_backed_instance + # It try to start a guest with /dev/vda as boot device name. + $ignored_tests .= '|.*TestShelveInstance.test_shelve_volume_backed_instance'; + # scenario.test_volume_boot_pattern.TestVolumeBootPatternV2.test_volume_boot_pattern + # It access a volume through iSCSI. This does not work when both the + # server and client of iSCSI are on the same Xen host, Linux 4.0 is the + # first Linux to have a fix. + $ignored_tests .= '|.*TestVolumeBootPatternV2.test_volume_boot_pattern'; + + # Adding the tests to skip to the default regex. + my $regex = "(?!.*\\[.*\\bslow\\b.*\\]$ignored_tests)(^tempest\\.(api|scenario|thirdparty))"; + + target_cmd($ho, <