"OSSTEST" XEN TESTING SYSTEM - IAN JACKSON, CITRIX

  • 594 views
Uploaded on

osstest is the system which does the Xen.org automatic tests of Xen. The push gates, which try to prevent important regressions from reaching the main stable and evelopment trees, are managed by …

osstest is the system which does the Xen.org automatic tests of Xen. The push gates, which try to prevent important regressions from reaching the main stable and evelopment trees, are managed by osstest. In this talk I will give a brief overview of the system, focussed on how to add new tests.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
594
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
13
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. osstest Xen Project automatic test system Ian Jackson <ian.jackson@eu.citrix.com> Xen Developer Summit November 2013
  • 2. standalone−setup sg−run−job make−flight ts−host−install ts−xen−install Steps standalone.db: ts−run−some−test runvars arch toolstack amd64 xl Osstest/TestSupport.pm xenbuildjob build−amd64 OSSTest Standalone mode Step by Step (Wei Liu) http://tinyurl.com/ppkwkkm http://xenbits.xen.org/gitweb/?p=osstest.git
  • 3. ts−guest−migrate Printed by Ian Jackson Page 1/1 #!/usr/bin/perl −w # This is part of "osstest", an automated testing framework for Xen. # Copyright (C) 2009−2013 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 <http://www.gnu.org/licenses/>. use use use use strict qw(vars); DBI; Osstest; Osstest::TestSupport; our %timeout= qw(Migrate 400); tsreadconfig(); our $sho = selecthost($ARGV[0]); our $dho = selecthost($ARGV[1]); our $gho = selectguest($ARGV[2],$sho); sub migrate () { guest_checkrunning($sho,$gho) or die $gho−>{Name}; my $err= guest_check_ip($gho); die "$err $gho−>{Name}" if defined $err; target_cmd_root($sho, toolstack()−>{Command} ." migrate $gho−>{Name} $dho−>{Name}", $timeout{Migrate}); } guest_await_dhcp_tcp($gho, 5); guest_check_up($gho); migrate(); guest_check_up($gho); ts−guest−migrate 1/1