cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<?xml version="1.0" encoding="utf-8" ?>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<head>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<title></title>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<style type="text/css">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync/*
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync:Author: David Goodger (goodger@python.org)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync:Id: $Id$
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync:Copyright: This stylesheet has been placed in the public domain.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncDefault cascading style sheet for the HTML output of Docutils.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSee http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccustomize this style sheet.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync*/
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync/* used to remove borders from tables and images */
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync.borderless, table.borderless td, table.borderless th {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync border: 0 }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctable.borderless td, table.borderless th {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync /* Override padding for "table.docutils td" with "! important".
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync The right padding separates the table cells. */
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync padding: 0 0.5em 0 0 ! important }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync.first {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync /* Override more specific margin styles with "! important". */
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-top: 0 ! important }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync.last, .with-subtitle {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-bottom: 0 ! important }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync.hidden {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync display: none }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynca.toc-backref {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-decoration: none ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync color: black }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncblockquote.epigraph {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin: 2em 5em ; }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdl.docutils dd {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-bottom: 0.5em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncobject[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync overflow: hidden;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync/* Uncomment (and remove this text!) to get bold-faced definition list terms
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdl.docutils dt {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync*/
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.abstract {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin: 2em 5em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.abstract p.topic-title {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: center }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.admonition, div.attention, div.caution, div.danger, div.error,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.hint, div.important, div.note, div.tip, div.warning {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin: 2em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync border: medium outset ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync padding: 1em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.admonition p.admonition-title, div.hint p.admonition-title,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.important p.admonition-title, div.note p.admonition-title,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.tip p.admonition-title {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-family: sans-serif }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.attention p.admonition-title, div.caution p.admonition-title,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.danger p.admonition-title, div.error p.admonition-title,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.warning p.admonition-title, .code .error {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync color: red ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-family: sans-serif }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync/* Uncomment (and remove this text!) to get reduced vertical space in
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync compound paragraphs.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.compound .compound-first, div.compound .compound-middle {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-bottom: 0.5em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.compound .compound-last, div.compound .compound-middle {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-top: 0.5em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync*/
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.dedication {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin: 2em 5em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: center ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-style: italic }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.dedication p.topic-title {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-style: normal }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.figure {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-left: 2em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-right: 2em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.footer, div.header {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync clear: both;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-size: smaller }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.line-block {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync display: block ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-top: 1em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-bottom: 1em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.line-block div.line-block {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-top: 0 ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-bottom: 0 ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-left: 1.5em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.sidebar {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin: 0 0 0.5em 1em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync border: medium outset ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync padding: 1em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync background-color: #ffffee ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync width: 40% ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync float: right ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync clear: right }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.sidebar p.rubric {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-family: sans-serif ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-size: medium }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.system-messages {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin: 5em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.system-messages h1 {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync color: red }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.system-message {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync border: medium outset ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync padding: 1em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.system-message p.system-message-title {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync color: red ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.topic {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin: 2em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynch1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynch4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-top: 0.4em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynch1.title {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: center }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynch2.subtitle {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: center }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynchr.docutils {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync width: 75% }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncimg.align-left, .figure.align-left, object.align-left {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync clear: left ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync float: left ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-right: 1em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncimg.align-right, .figure.align-right, object.align-right {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync clear: right ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync float: right ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-left: 1em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncimg.align-center, .figure.align-center, object.align-center {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync display: block;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-left: auto;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-right: auto;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync.align-left {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: left }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync.align-center {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync clear: both ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: center }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync.align-right {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: right }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync/* reset inner alignment in figures */
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdiv.align-right {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: inherit }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync/* div.align-center * { */
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync/* text-align: left } */
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncol.simple, ul.simple {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-bottom: 1em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncol.arabic {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync list-style: decimal }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncol.loweralpha {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync list-style: lower-alpha }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncol.upperalpha {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync list-style: upper-alpha }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncol.lowerroman {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync list-style: lower-roman }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncol.upperroman {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync list-style: upper-roman }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncp.attribution {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: right ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-left: 50% }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncp.caption {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-style: italic }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncp.credits {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-style: italic ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-size: smaller }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncp.label {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync white-space: nowrap }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncp.rubric {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-size: larger ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync color: maroon ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: center }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncp.sidebar-title {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-family: sans-serif ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-size: larger }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncp.sidebar-subtitle {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-family: sans-serif ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncp.topic-title {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.address {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-bottom: 0 ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-top: 0 ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font: inherit }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.literal-block, pre.doctest-block, pre.math, pre.code {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-left: 2em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-right: 2em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.code .ln { color: grey; } /* line numbers */
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.code, code { background-color: #eeeeee }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.code .comment, code .comment { color: #5C6576 }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.code .literal.string, code .literal.string { color: #0C5404 }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.code .name.builtin, code .name.builtin { color: #352B84 }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.code .deleted, code .deleted { background-color: #DEB0A1}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpre.code .inserted, code .inserted { background-color: #A3D289}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncspan.classifier {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-family: sans-serif ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-style: oblique }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncspan.classifier-delimiter {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-family: sans-serif ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncspan.interpreted {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-family: sans-serif }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncspan.option {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync white-space: nowrap }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncspan.pre {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync white-space: pre }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncspan.problematic {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync color: red }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncspan.section-subtitle {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync /* font-size relative to parent (h1..h6 element) */
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-size: 80% }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctable.citation {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync border-left: solid 1px gray;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-left: 1px }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctable.docinfo {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin: 2em 4em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctable.docutils {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-top: 0.5em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-bottom: 0.5em }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctable.footnote {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync border-left: solid 1px black;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync margin-left: 1px }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctable.docutils td, table.docutils th,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctable.docinfo td, table.docinfo th {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync padding-left: 0.5em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync padding-right: 0.5em ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync vertical-align: top }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctable.docutils th.field-name, table.docinfo th.docinfo-name {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-weight: bold ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync text-align: left ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync white-space: nowrap ;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync padding-left: 0 }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync/* "booktabs" style (no vertical lines) */
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsynctable.docutils.booktabs {
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync border: 0px;
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync border-top: 2px solid;
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync border-bottom: 2px solid;
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync border-collapse: collapse;
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync}
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsynctable.docutils.booktabs * {
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync border: 0px;
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync}
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsynctable.docutils.booktabs th {
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync border-bottom: thin solid;
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync text-align: left;
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync}
bf898cb7c4502a335cd7e0f2427ea3a0abc591ccvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynch1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynch4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync font-size: 100% }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncul.auto-toc {
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync list-style-type: none }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</style>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</head>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<body>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="document">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="revamp-of-automatic-virtualbox-testing">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Revamp of Automatic VirtualBox Testing</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="introduction">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Introduction</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>This is the design document for a revamped automatic testing framework.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThe revamp aims at replacing the current tinderbox based testing by a new
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsystem that is written from scratch.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The old system is not easy to work with and was never meant to be used for
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmanaging tests, after all it just a simple a build manager tailored for
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccontiguous building. Modifying the existing tinderbox system to do what
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwe want would require fundamental changes that would render it useless as
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynca build manager, it would therefore end up as a fork. The amount of work
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncrequired would probably be about the same as writing a new system from
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncscratch. Other considerations, such as the license of the tinderbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsystem (MPL) and language it is realized in (Perl), are also in favor of
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdoing it from scratch.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The language envisioned for the new automatic testing framework is Python. This
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncis for several reasons:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>The VirtualBox API has Python bindings.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Python is used quite a bit inside Sun (dunno about Oracle).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Works relatively well with Apache for the server side bits.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>It is more difficult to produce write-only code in Python (alias the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwe-don't-like-perl argument).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>You don't need to compile stuff.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Note that the author of this document has no special training as a test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncengineer and may therefore be using the wrong terms here and there. The
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncprimary focus is to express what we need to do in order to improve
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctesting.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>This document is written in reStructuredText (rst) which just happens to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbe used by Python, the primary language for this revamp. For more
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinformation on reStructuredText: <a class="reference external" href="http://docutils.sourceforge.net/rst.html">http://docutils.sourceforge.net/rst.html</a></p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="definitions-glossary">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Definitions / Glossary</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>sub-test driver</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>A set of test cases that can be used by more than one test driver. Could
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncalso be called a test unit, in the pascal sense of unit, if it wasn't so
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynceasily confused with 'unit test'.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>test</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>This is somewhat ambiguous and this document try avoid using it where
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpossible. When used it normally refers to doing testing by executing one or
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmore testcases.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>test case</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>A set of inputs, test programs and expected results. It validates system
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncrequirements and generates a pass or failed status. A basic unit of testing.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncNote that we use the term in a rather broad sense.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>test driver</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>A program/script used to execute a test. Also known as a test harness.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncGenerally abbreviated 'td'. It can have sub-test drivers.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>test manager</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>Software managing the automatic testing. This is a web application that runs
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncon a dedicated server (tindertux).</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>test set</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The output of testing activity. Logs, results, ++. Our usage of this should
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncprobably be renamed to 'test run'.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>test group</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>A collection of related test cases.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>testbox</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>A computer that does testing.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>testbox script</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>Script executing orders from the test manager on a testbox. Started
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncautomatically upon bootup.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>testing</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>todo</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TODO: Check that we've got all this right and make them more exact</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>where possible.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>See also <a class="reference external" href="http://encyclopedia2.thefreedictionary.com/testing%20types">http://encyclopedia2.thefreedictionary.com/testing%20types</a>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncand <a class="reference external" href="http://www.aptest.com/glossary.html">http://www.aptest.com/glossary.html</a> .</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="objectives">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Objectives</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>A scalable test manager (&gt;200 testboxes).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Optimize the web user interface (WUI) for typical workflows and analysis.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Efficient and flexibile test configuration.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Import test result from other test systems (logo testing, VDI, ++).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Easy to add lots of new testscripts.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Run tests locally without a manager.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Revamp a bit at the time.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="the-testbox-side">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>The Testbox Side</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Each testbox has a unique name corresponding to its DNS zone entry. When booted
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynca testbox script is started automatically. This script will query the test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmanager for orders and execute them. The core order downloads and executes a
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest driver with parameters (configuration) from the server. The test driver
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdoes all the necessary work for executing the test. In a typical VirtualBox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest this means picking a build, installing it, configuring VMs, running the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest VMs, collecting the results, submitting them to the server, and finally
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccleaning up afterwards.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The testbox environment which the test drivers are executed in will have a
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncnumber of environment variables for determining location of the source images
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncand other test data, scratch space, test set id, server URL, and so on and so
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncforth.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>On startup, the testbox script will look for crash dumps and similar on
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsystems where this is possible. If any sign of a crash is found, it will
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncput any dumps and reports in the upload directory and inform the test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmanager before reporting for duty. In order to generate the proper file
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncnames and report the crash in the right test set as well as prevent
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncreporting crashes unrelated to automatic testing, the testbox script will
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynckeep information (test set id, ++) in a separate scratch directory
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync(${TESTBOX_PATH_SCRATCH}/testbox) and make sure it is synced to the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdisk (both files and directories).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>After checking for crashes, the testbox script will clean up any previous test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwhich might be around. This involves first invoking the test script in cleanup
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmode and the wiping the scratch space.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>When reporting for duty the script will submit information about the host: OS
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncname, OS version, OS bitness, CPU vendor, total number of cores, VT-x support,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncAMD-V support, amount of memory, amount of scratch space, and anything else that
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccan be found useful for scheduling tests or filtering test configurations.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testbox-script-orders">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Testbox Script Orders</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The orders are kept in a queue on the server and the testbox script will fetch
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthem one by one. Orders that cannot be executed at the moment will be masked in
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe query from the testbox.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Execute Test Driver</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>Downloads and executes the a specified test driver with the given
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncconfiguration (arguments). Only one test driver can be executed at a time.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThe server can specify more than one ZIP file to be downloaded and unpacked
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbefore executing the test driver. The testbox script may cache these zip
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncfiles using http time stamping.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Abort Test Driver</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>Aborts the current test driver. This will drop a hint to the driver and give
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncit 60 seconds to shut down the normal way. If that fails, the testbox script
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwill kill the driver processes (SIGKILL or equivalent), invoke the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctestdriver in cleanup mode, and finally wipe the scratch area. Should either
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncof the last two steps fail in some way, the testbox will be rebooted.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Idle</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>Ask again in X seconds, where X is specified by the server.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Reboot</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>Reboot the testbox. If a test driver is current running, an attempt at
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncaborting it (Abort Test Driver) will be made first.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Update</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>Updates the testbox script. The order includes a server relative path to the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncnew testbox script. This can only be executed when no test driver is
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccurrently being executed.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testbox-environment-variables">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Testbox Environment: Variables</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>COMSPEC</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>This will be set to C:WindowsSystem32cmd.exe on Windows.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>PATH</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>This will contain the kBuild binary directory for the host platform.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>SHELL</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>This will be set to point to kmk_ash(.exe) on all platforms.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_NAME</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The testbox name.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThis is not required by the local reporter.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_PATH_BUILDS</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The absolute path to where the build repository can be found. This should be
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynca read only mount when possible.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_PATH_RESOURCES</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The absolute path to where static test resources like ISOs and VDIs can be
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncfound. The test drivers knows the layout of this. This should be a read only
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmount when possible.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_PATH_SCRATCH</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The absolute path to the scratch space. This is the current directory when
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncstarting the test driver. It will be wiped automatically after executing the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync(Envisioned as ${TESTBOX_PATH_SCRIPTS}/scratch and that
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync${TESTBOX_PATH_SCRATCH}/ will be automatically wiped by the testbox script.)</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_PATH_SCRIPTS</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The absolute path to the test driver and the other files that was unzipped
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctogether with it. This is also where the test-driver-abort file will be put.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync(Envisioned as ${TESTBOX_PATH_SCRATCH}/driver, see above.)</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_PATH_UPLOAD</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The absolute path to the upload directory for the testbox. This is for
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncputting VOBs, PNGs, core dumps, crash dumps, and such on. The files should be
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbzipped or zipped if they aren't compress already. The names should contain
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe testbox and test set ID.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_REPORTER</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The name of the test reporter back end. If not present, it will default to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe local reporter.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_TEST_SET_ID</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The test set ID if we're running.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThis is not required by the local reporter.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_MANAGER_URL</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>The URL to the test manager.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThis is not required by the local reporter.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>TESTBOX_XYZ</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>There will probably be some more of these.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testbox-environment-core-utilities">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Testbox Environment: Core Utilities</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The testbox will not provide the typical unix /bin and /usr/bin utilities. In
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncother words, cygwin will not be used on Windows!</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The testbox will provide the unixy utilties that ships with kBuild and possibly
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsome additional ones from tools/<em>.</em>/bin in the VirtualBox tree (wget, unzip,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynczip, and so on). The test drivers will avoid invoking any of these utilites
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdirectly and instead rely on generic utility methods in the test driver
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncframework. That way we can more easily reimplement the functionality of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccore utilites and drop the dependency on them. It also allows us to quickly
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwork around platform specific oddities and bugs.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="test-drivers">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Test Drivers</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The test drivers are programs that will do the actual testing. In addition to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncrun under the testbox script, they can be executed in the VirtualBox development
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncenvironment. This is important for bug analysis and for simplifying local
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctesting by the developers before commiting changes. It also means the test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdrivers can be developed locally in the VirtualBox development environment.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The main difference between executing a driver under the testbox script and
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncrunning it manually is that there is no test manager in the latter case. The
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest result reporter will not talk to the server, but report things to a local
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynclog file and/or standard out/err. When invoked manually, all the necessary
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncarguments will need to be specified by hand of course - it should be possible
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncto extract them from a test set as well.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>For the early implementation stages, an implementation of the reporter interface
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthat talks to the tinderbox base test manager will be needed. This will be
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdropped later on when a new test manager is ready.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>As hinted at in other sections, there will be a common framework
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync(libraries/packages/classes) for taking care of the tedious bits that every
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest driver needs to do. Sharing code is essential to easing test driver
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdevelopment as well as reducing their complexity. The framework will contain:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">A generic way of submitting output. This will be a generic interface with
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmultiple implementation, the TESTBOX_REPORTER environment variable
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwill decide which of them to use. The interface will have very specific
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmethods to allow the reporter to do a best possible job in reporting the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncresults to the test manager.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Helpers for typical tasks, like:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Copying files.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Deleting files, directory trees and scratch space.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Unzipping files.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Creating ISOs</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>And such things.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Helpers for installing and uninstalling VirtualBox.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Helpers for defining VMs. (The VBox API where available.)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Helpers for controlling VMs. (The VBox API where available.)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The VirtualBox bits will be separate from the more generic ones, simply because
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthis is cleaner it will allow us to reuse the system for testing other products.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The framework will be packaged in a zip file other than the test driver so we
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdon't waste time and space downloading the same common code.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The test driver will poll for the file
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync${TESTBOX_PATH_SCRIPTS}/test-driver-abort and abort all testing when it sees it.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The test driver can be invoked in three modes: execute, help and cleanup. The
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdefault is execute mode, the help shows an configuration summary and the cleanup
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncis for cleaning up after a reboot or aborted run. The latter is done by the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctestbox script on startup and after abort - the driver is expected to clean up
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncby itself after a normal run.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="the-server-side">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>The Server Side</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The server side will be implemented using a webserver (apache), a database
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync(postgres) and cgi scripts (Python). In addition a cron job (Python) running
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynconce a minute will generate static html for frequently used pages and maybe
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncexecute some other tasks for driving the testing forwards. The order queries
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncfrom the testbox script is the primary driving force in the system. The total
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmakes up the test manager.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The test manager can be split up into three rough parts:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Configuration (of tests, testgroups and testboxes).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Execution (of tests, collecting and organizing the output).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Analysis (of test output, mostly about presentation).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="test-manager-requirements">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Test Manager: Requirements</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>List of requirements:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Two level testing - L1 quick smoke tests and L2 longer tests performed on
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbuilds passing L1. (Klaus (IIRC) ment this could be realized using
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest dependency.)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Black listing builds (by revision or similar) known to be bad.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Distinguish between build types so we can do a portion of the testing with
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncstrict builds.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Easy to re-configure build source for testing different branch or for
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctesting a release candidate. (Directory based is fine.)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Useful to be able to partition testboxes (run specific builds on some
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncboxes, let an engineer have a few boxes for a while).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Interation with ILOM/...: reset systems.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Be able to suspend testing on selected testboxes when doing maintance
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync(where automatically resuming testing on reboot is undesired) or similar
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncactivity.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Abort testing on seleced testboxes.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Scheduling of tests requiring more than one testbox.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Scheduling of tests that cannot be executing concurrently on several
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmachines because of some global resource like an iSCSI target.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Jump the scheduling queue. Scheduling of specified test the next time a
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctestbox is available (optionally specifying which testbox to schedule it
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncon).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Configure tests with variable configuration to get better coverage. Two modes:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>TM generates the permutations based on one or more sets of test script arguments.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Each configuration permuation is specified manually.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Test specification needs to be flexible (select tests, disable test, test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncscheduling (run certain tests nightly), ... ).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Test scheduling by hour+weekday and by priority.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Test dependencies (test A depends on test B being successful).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Historize all configuration data, in particular test configs (permutations
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncincluded) and testboxes.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Test sets has at a minimum a build reference, a testbox reference and a
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncprimary log associated with it.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Test sets stores further result as a recursive collection of:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>hierachical subtest name (slash sep)</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>test parameters / config</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>bool fail/succ</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>attributes (typed?)</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>test time</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>e.g. throughput</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>subresults</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>log</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>screenshots, video,...</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">The test sets database structure needs to designed such that data mining
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccan be done in an efficient manner.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Presentation/analysis: graphs!, categorize bugs, columns reorganizing
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncgrouped by test (hierarchical), overviews, result for last day.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="test-manager-configuration">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Test Manager: Configuration</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testboxes">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Testboxes</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Configuration of testboxes doesn't involve much work normally. A testbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncis added manually to the test manager by entering the DNS entry and/or IP
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncaddress (the test manager resolves the missing one when necessary) as well as
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe system UUID (when obtainable - should be displayed by the testbox script
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinstaller). Queries from unregistered testboxes will be declined as a kind of
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsecurity measure, the incident should be logged in the webserver log if
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpossible. In later dealings with the client the System UUID will be the key
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncidentifier. It's permittable for the IP address to change when the testbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncisn't online, but not while testing (just imagine live migration tests and
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncnetwork tests). Ideally, the testboxes should not change IP address.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The testbox edit function must allow changing the name and system UUID.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>One further idea for the testbox configuration is indicating what they are
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccapable of to filter out tests and test configurations that won't work on that
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctestbox. To examplify this take the ACP2 installation test. If the test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmanager does not make sure the testbox have VT-x or AMD-v capabilities, the test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncis surely going to fail. Other testbox capabilities would be total number of
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCPU cores, memory size, scratch space. These testbox capabilities should be
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccollected automatically on bootup by the testbox script together with OS name,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncOS version and OS bitness.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>A final thought, instead of outright declining all requests from new testboxes,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwe could record the unregistered testboxes with ip, UUID, name, os info and
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccapabilities but mark them as inactive. The test operator can then activate
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthem on an activation page or edit the testbox or something.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testcases">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Testcases</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>We use the term testcase for a test.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testgroups">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Testgroups</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Testcases are organized into groups. A testcase can be member of more than one
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncgroup. The testcase gets a priority assigned to it in connection with the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncgroup membership.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Testgroups are picked up by a testbox partition (aka scheduling group) and a
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncprioirty, scheduling time restriction and dependencies on other test groups are
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncassociated with the assignment. A testgroup can be used by several testbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpartitions.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>(This used to be called 'testsuites' but was renamed to avoid confusion with
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe VBox Test Suite.)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="scheduling">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Scheduling</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The initial scheduler will be modelled after what we're doing already on in the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctinderbox driven testing. It's best described as a best effort continuous
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncintegration scheduler. Meaning, it will always use the latest build suitable
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncfor a testcase. It will schedule on a testcase level, using the combined
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpriority of the testcase in the test group and the test group with the testbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpartition, trying to spread the test case argument varation out accordingly
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncover the whole scheduilng queue. Which argument variation to start with, is
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncnot undefined (random would be best).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Later, we may add other schedulers as needed.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="the-test-manager-database">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>The Test Manager Database</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>First a general warning:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThe guys working on this design are not database experts, web
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncprogramming experts or similar, rather we are low level guys
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwho's main job is x86 &amp; AMD64 virtualization. So, please don't
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbe too hard on us. :-)</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>A logical table layout can be found in TestManagerDatabaseMap.png (created by
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncOracle SQL Data Modeler, stored in TestManagerDatabase.dmd). The physical
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdatabase layout can be found in TestManagerDatabaseInit.pgsql postgreSQL
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncscript. The script is commented.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="data-history">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Data History</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>We need to somehow track configuration changes over time. We also need to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbe able to query the exact configuration a test set was run with so we can
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncunderstand and make better use of the results.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>There are different techniques for archiving this, one is tuple-versioning
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync( <a class="reference external" href="http://en.wikipedia.org/wiki/Tuple-versioning">http://en.wikipedia.org/wiki/Tuple-versioning</a> ), another is log trigger
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync( <a class="reference external" href="http://en.wikipedia.org/wiki/Log_trigger">http://en.wikipedia.org/wiki/Log_trigger</a> ). We use tuple-versioning in
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthis database, with 'effective' as start date field name and 'expire' as
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe end (exclusive).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Tuple-versioning has a shortcomming wrt to keys, both primary and foreign.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThe primary key of a table employing tuple-versioning is really
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync'id' + 'valid_period', where the latter is expressed using two fields
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync([effective...expire-1]). Only, how do you tell the database engine that
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncit should not allow overlapping valid_periods? Useful suggestions are
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwelcomed. :-)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Foreign key references to a table using tuple-versioning is running into
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctrouble because of the time axsis and that to our knowledge foreign keys
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmust reference exactly one row in the other table. When time is involved
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwhat we wish to tell the database is that at any given time, there actually
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncis exactly one row we want to match in the other table, only we've no idea
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynchow to express this. So, many foreign keys are not expressed in SQL of this
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdatabase.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>In some cases, we extend the tuple-versioning with a generation ID so that
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncnormal foreign key referencing can be used. We only use this for recording
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync(references in testset) and scheduling (schedqueue), as using it more widely
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwould force updates (gen_id changes) to propagate into all related tables.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>See also:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><a class="reference external" href="http://en.wikipedia.org/wiki/Slowly_changing_dimension">http://en.wikipedia.org/wiki/Slowly_changing_dimension</a></li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><a class="reference external" href="http://en.wikipedia.org/wiki/Change_data_capture">http://en.wikipedia.org/wiki/Change_data_capture</a></li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><a class="reference external" href="http://en.wikipedia.org/wiki/Temporal_database">http://en.wikipedia.org/wiki/Temporal_database</a></li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="test-manager-execution">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Test Manager: Execution</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="test-manager-scenarios">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Test Manager: Scenarios</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testbox-signs-on-at-bootup">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#1 - Testbox Signs On (At Bootup)</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>The testbox supplies a number of inputs when reporting for duty:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>IP address.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>System UUID.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>OS name.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>OS version.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>CPU architecture.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>CPU count (= threads).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>CPU VT-x/AMD-V capability.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>CPU nested paging capability.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Chipset I/O MMU capability.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Memory size.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Scratch size space (for testing).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Testbox Script revision.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Results:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>ACK or NACK.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Testbox ID and name on ACK.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>After receiving a ACK the testbox will ask for work to do, i.e. continue with
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncscenario #2. In the NACK case, it will sleep for 60 seconds and try again.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Actions:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ol class="arabic">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Validate the testbox by looking the UUID up in the TestBoxes table.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncIf not found, NACK the request. SQL:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<pre class="literal-block">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSELECT idTestBox, sName
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncFROM TestBoxes
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncWHERE uuidSystem = :sUuid
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync AND tsExpire = 'infinity'::timestamp;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</pre>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Check if any of the information by testbox script has changed. The two
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsizes are normalized first, memory size rounded to nearest 4 MB and scratch
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncspace is rounded down to nearest 64 MB. If anything changed, insert a new
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncrow in the testbox table and historize the current one, i.e. set
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncOLD.tsExpire to NEW.tsEffective and get a new value for NEW.idGenTestBox.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Check with TestBoxStatuses:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ol class="first last loweralpha simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>If there is an row for the testbox in it already clean up change it
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncto 'idle' state and deal with any open testset like described in
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncscenario #9.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>If there is no row, add one with 'idle' state.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ol>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">ACK the request and pass back the idTestBox.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ol>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Note! Testbox.enabled is not checked here, that is only relevant when it asks</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>for a new task (scenario #2 and #5).</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Note! Should the testbox script detect changes in any of the inputs, it should</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>redo the sign in.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Note! In scenario #8, the box will not sign on until it has done the reboot and</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>cleanup reporting!</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testbox-asks-for-work-to-do">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#2 - Testbox Asks For Work To Do</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Inputs:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>The testbox is supplying its IP indirectly.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>The testbox should supply its UUID and ID directly.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Results:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>IDLE, WAIT, EXEC, REBOOT, UPGRADE, UPGRADE-AND-REBOOT, SPECIAL or DEAD.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Actions:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ol class="arabic">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Validate the ID and IP by selecting the currently valid testbox row:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<pre class="literal-block">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSELECT idGenTestBox, fEnabled, idSchedGroup, enmPendingCmd
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncFROM TestBoxes
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncWHERE id = :id
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync AND uuidSystem = :sUuid
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync AND ip = :ip
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync AND tsExpire = 'infinity'::timestamp;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</pre>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If NOT found return DEAD to the testbox client (it will go back to sign on
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmode and retry every 60 seconds or so - see scenario #1).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Note! The WUI will do all necessary clean-ups when deleting a testbox, so</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><p class="first last">contrary to the initial plans, we don't need to do anything more for
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe DEAD status.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Check with TestBoxStatuses (maybe joined with query from 1).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If enmState is 'gang-gathering': Goto scenario #6 on timeout or pending
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync'abort' or 'reboot' command. Otherwise, tell the testbox to WAIT [done].</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If enmState is 'gang-testing': The gang has been gathered and execution
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynchas been triggered. Goto 5.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If enmState is not 'idle', change it to 'idle'.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If idTestSet is not NULL, CALL scenario #9 to it up.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If there is a pending abort command, remove it.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If there is a pending command and the old state doesn't indicate that it was
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbeing executed, GOTO scenario #3.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Note! There should be a TestBoxStatuses row after executing scenario #1,</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><p class="first last">however should none be found for some funky reason, returning DEAD
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwill fix the problem (see above)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">If the testbox was marked as disabled, respond with an IDLE command to the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctestbox [done]. (Note! Must do this after TestBoxStatuses maintainance from
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpoint 2, or abandond tests won't be cleaned up after a testbox is disabled.)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Consider testcases in the scheduling queue, pick the first one which the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctestbox can execute. There is a concurrency issue here, so we put and
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncexclusive lock on the SchedQueues table while considering its content.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The cursor we open looks something like this:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<pre class="literal-block">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSELECT idItem, idGenTestCaseArgs,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync idTestSetGangLeader, cMissingGangMembers
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncFROM SchedQueues
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncWHERE idSchedGroup = :idSchedGroup
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync AND ( bmHourlySchedule is NULL
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync OR get_bit(bmHourlySchedule, :iHourOfWeek) = 1 ) --&lt; does this work?
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncORDER BY ASC idItem;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</pre>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ol>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If there no rows are returned (this can happen because no testgroups are
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncassociated with this scheduling group, the scheduling group is disabled,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncor because the queue is being regenerated), we will tell the testbox to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncIDLE [done].</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>For each returned row we will:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ol class="first last loweralpha">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Check testcase/group dependencies.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Select a build (and default testsuite) satisfying the dependencies.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Check the testcase requirements with that build in mind.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">If idTestSetGangLeader is NULL, try allocate the necessary resources.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">If it didn't check out, fetch the next row and redo from (a).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Tentatively create a new test set row.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>If not gang scheduling:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Next state: 'testing'</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>ElIf we're the last gang participant:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Set idTestSetGangLeader to NULL.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Set cMissingGangMembers to 0.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Next state: 'gang-testing'</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>ElIf we're the first gang member:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Set cMissingGangMembers to TestCaseArgs.cGangMembers - 1.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Set idTestSetGangLeader to our idTestSet.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Next state: 'gang-gathering'</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Else:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Decrement cMissingGangMembers.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Next state: 'gang-gathering'</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>If we're not gang scheduling OR cMissingGangMembers is 0:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><p class="first last">Move the scheduler queue entry to the end of the queue.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Update our TestBoxStatuses row with the new state and test set.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMMIT;</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ol>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ol class="arabic" start="5">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>If state is 'testing' or 'gang-testing':</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><p class="first">EXEC reponse.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p class="last">The EXEC response for a gang scheduled testcase includes a number of
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncextra arguments so that the script knows the position of the testbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncit is running on and of the other members. This means the that the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncTestSet.iGangMemberNo is passed using --gang-member-no and the IP
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncaddresses of the all gang members using --gang-ipv4-&lt;memb-no&gt; &lt;ip&gt;.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Else (state is 'gang-gathering'):</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><p class="first last">WAIT</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ol>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="pending-command-when-testbox-asks-for-work">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#3 - Pending Command When Testbox Asks For Work</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>This is a subfunction of scenario #2 and #5.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>As seen in scenario #2, the testbox will send 'abort' commands to /dev/null
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwhen it finds one when not executing a test. This includes when it reports
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthat the test has completed (no need to abort a completed test, wasting lot
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncof effort when standing at the finish line).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The other commands, though, are passed back to the testbox. The testbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncscript will respond with an ACK or NACK as it sees fit. If NACKed, the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpending command will be removed (pending_cmd set to none) and that's it.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncIf ACKed, the state of the testbox will change to that appropriate for the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccommand and the pending_cmd set to none. Should the testbox script fail to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncrespond, the command will be repeated the next time it asks for work.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testbox-uploads-results-during-test">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#4 - Testbox Uploads Results During Test</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>TODO</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testbox-completes-test-and-asks-for-work">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#5 - Testbox Completes Test and Asks For Work</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>This is very similar to scenario #2</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>TODO</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="gang-gathering-timeout">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#6 - Gang Gathering Timeout</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>This is a subfunction of scenario #2.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>When gathering a gang of testboxes for a testcase, we do not want to wait
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncforever and have testboxes doing nothing for hours while waiting for partners.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSo, the gathering has a reasonable timeout (imagine something like 20-30 mins).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Also, we need some way of dealing with 'abort' and 'reboot' commands being
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncissued while waiting. The easy way out is pretent it's a time out.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>When changing the status to 'gang-timeout' we have to be careful. First of all,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwe need to exclusively lock the SchedQueues and TestBoxStatuses (in that order)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncand re-query our status. If it changed redo the checks in scenario #2 point 2.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>If we still want to timeout/abort, change the state from 'gang-gathering' to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync'gang-gathering-timedout' on all the gang members that has gathered so far.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThen reset the scheduling queue record and move it to the end of the queue.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>When acting on 'gang-timeout' the TM will fail the testset in a manner similar
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncto scenario #9. No need to repeat that.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="gang-cleanup">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#7 - Gang Cleanup</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>When a testbox completes a gang scheduled test, we will have to serialize
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncresource cleanup (both globally and on testboxes) as they stop. More details
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccan be found in the documentation of 'gang-cleanup'.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>So, the transition from 'gang-testing' is always to 'gang-cleanup'. When we
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccan safely leave 'gang-cleanup' is decided by the query:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<pre class="literal-block">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSELECT COUNT(*)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncFROM TestBoxStatuses,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync TestSets
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncWHERE TestSets.idTestSetGangLeader = :idTestSetGangLeader
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync AND TestSets.idTestBox = TestBoxStatuses.idTestBox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync AND TestBoxStatuses.enmState = 'gang-running'::TestBoxState_T;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</pre>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>As long as there are testboxes still running, we stay in the 'gang-cleanup'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncstate. Once there are none, we continue closing the testset and such.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="testbox-reports-a-crash-during-test-execution">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#8 - Testbox Reports A Crash During Test Execution</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>TODO</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="cleaning-up-abandond-testcase">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#9 - Cleaning Up Abandond Testcase</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>This is a subfunction of scenario #1 and #2. The actions taken are the same in
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncboth situations. The precondition for taking this path is that the row in the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctestboxstatus table is refering to a testset (i.e. testset_id is not NULL).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Actions:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ol class="arabic">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>If the testset is incomplete, we need to completed:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ol class="first last loweralpha simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Add a message to the root TestResults row, creating one if necesary,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthat explains that the test was abandond. This is done
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncby inserting/finding the string into/in TestResultStrTab and adding
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynca row to TestResultMsgs with idStrMsg set to that string id and
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncenmLevel set to 'failure'.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Mark the testset as failed.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ol>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Free any global resources referenced by the test set. This is done by
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdeleting all rows in GlobalResourceStatuses matching the testbox id.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">Set the idTestSet to NULL in the TestBoxStatuses row.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ol>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="cleaning-up-a-disabled-dead-testbox">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>#10 - Cleaning Up a Disabled/Dead TestBox</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The UI needs to be able to clean up the remains of a testbox which for some
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncreason is out of action. Normal cleaning up of abandond testcases requires
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthat the testbox signs on or asks for work, but if the testbox is dead or
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncin some way indisposed, it won't be doing any of that. So, the testbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsheriff needs to have a way of cleaning up after it.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>It's basically a manual scenario #9 but with some safe guards, like checking
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthat the box hasn't been active for the last 1-2 mins (max idle/wait time * 2).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dl class="docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>Note! When disabling a box that still executing the testbox script, this</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd>cleanup isn't necessary as it will happen automatically. Also, it's
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncprobably desirable that the testbox finishes what ever it is doing first
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbefore going dormant.</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="test-manager-analysis">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Test Manager: Analysis</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>One of the testbox sheriff's tasks is to try figure out the reason why something
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncfailed. The test manager will provide facilities for doing so from very early
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncin it's implementation.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>We need to work out some useful status reports for the early implementation.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLater there will be more advanced analysis tools, where for instance we can
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccreate graphs from selected test result values or test execution times.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="implementation-plan">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Implementation Plan</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>This has changed for various reasons. The current plan is to implement the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinfrastructure (TM &amp; testbox script) first and do a small deployment with the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync2-5 test drivers in the Testsuite as basis. Once the bugs are worked out, we
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwill convert the rest of the tests and start adding new ones.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>We just need to finally get this done, no point in doing it piecemeal by now!</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="test-manager-implementation-sub-tasks">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Test Manager Implementation Sub-Tasks</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The implementation of the test manager and adjusting/completing of the testbox
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncscript and the test drivers are tasks which can be done by more than one
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncperson. Splitting up the TM implementation into smaller tasks should allow
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncparallel development of different tasks and get us working code sooner.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="milestone-1">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Milestone #1</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The goal is to getting the fundamental testmanager engine implemented, debugged
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncand working. With the exception of testboxes, the configuration will be done
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncvia SQL inserts.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Tasks in somewhat prioritized order:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Kick off test manager. It will live in testmanager/. Salvage as much as
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncpossible from att/testserv. Create basic source and file layout.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Adjust the testbox script, part one. There currently is a testbox script
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncin att/testbox, this shall be moved up into testboxscript/. The script
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncneeds to be adjusted according to the specification layed down earlier
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncin this document. Installers or installation scripts for all relevant
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynchost OSes are required. Left for part two is result reporting beyond the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncprimary log. This task must be 100% feature complete, on all host OSes,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthere is no room for FIXME, XXX or &#64;todo here.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement the schedule queue generator.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement the testbox dispatcher in TM. Support all the testbox script
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncresponses implemented above, including upgrading the testbox script.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement simple testbox management page.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement some basic activity and result reports so that we can see
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwhat's going on.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Create a testmanager / testbox test setup. This lives in selftest/.<ol class="arabic">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Set up something that runs, no fiddly bits. Debug till it works.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Create a setup that tests testgroup dependencies, i.e. real tests
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdepending on smoke tests.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Create a setup that exercises testcase dependency.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Create a setup that exercises global resource allocation.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Create a setup that exercises gang scheduling.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ol>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Check that all features work.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="milestone-2">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Milestone #2</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The goal is getting to VBox testing.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Tasks in somewhat prioritized order:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement full result reporting in the testbox script and testbox driver.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncA testbox script specific reporter needs to be implemented for the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctestdriver framework. The testbox script needs to forward the results to
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe test manager, or alternatively the testdriver report can talk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdirectly to the TM.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement the test manager side of the test result reporting.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Extend the selftest with some setup that report all kinds of test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncresults.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement script/whatever feeding builds to the test manager from the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctinderboxes.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>The toplevel test driver is a VBox thing that must be derived from the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbase TestDriver class or maybe the VBox one. It should move from
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctoptestdriver to testdriver and be renamed to vboxtltd or smth.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Create a vbox testdriver that boots the t-xppro VM once and that's it.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Create a selftest setup which tests booting t-xppro taking builds from
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe tinderbox.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="milestone-3">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Milestone #3</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>The goal for this milestone is configuration and converting current testscases,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncthe result will be the a minimal test deployment (4-5 new testboxes).</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Tasks in somewhat prioritized order:</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement testcase configuration.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement testgroup configuration.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement build source configuration.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement scheduling group configuration.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement global resource configuration.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Re-visit the testbox configuration.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Black listing of builds.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement simple failure analysis and reporting.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement the initial smoke tests modelled on the current smoke tests.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement installation tests for Windows guests.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement installation tests for Linux guests.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement installation tests for Solaris guest.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Implement installation tests for OS/2 guest.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Set up a small test deployment.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</blockquote>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="further-work">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>Further work</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>After milestone #3 has been reached and issues found by the other team members
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynchave been addressed, we will probably go for full deployment.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Beyond this point we will need to improve reporting and analysis. There may be
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncconfiguration aspects needing reporting as well.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<p>Once deployed, a golden rule will be that all new features shall have test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynccoverage. Preferrably, implemented by someone else and prior to the feature
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncimplementation.</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="discussion-logs">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h1>Discussion Logs</h1>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="various-discussions-with-michal-and-or-klaus">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>2009-07-21,22,23 Various Discussions with Michal and/or Klaus</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Scheduling of tests requiring more than one testbox.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Scheduling of tests that cannot be executing concurrently on several machines
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbecause of some global resource like an iSCSI target.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Manually create the test config permutations instead of having the test
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmanager create all possible ones and wasting time.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Distinguish between built types so we can run smoke tests on strick builds as
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncwell as release ones.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="brief-discussion-with-michal">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>2009-07-20 Brief Discussion with Michal</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Installer for the testbox script to make bringing up a new testbox even
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsmoother.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="raw-input">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>2009-07-16 Raw Input</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>test set. recursive collection of:</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>hierachical subtest name (slash sep)</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>test parameters / config</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>bool fail/succ</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>attributes (typed?)</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>test time</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>e.g. throughput</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>subresults</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>log</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>screenshots,....</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><p class="first">client package (zip) dl from server (maybe client caching)</p>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li><dl class="first docutils">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dt>thoughts on bits to do at once.</dt>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<dd><ul class="first last simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>We <em>really</em> need the basic bits ASAP.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>client -&gt; support for test driver</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>server -&gt; controls configs</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>cleanup on both sides</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dd>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</dl>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<div class="section" id="id1">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<h2>2009-07-15 Raw Input</h2>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<ul class="simple">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>testing should start automatically</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>switching to branch too tedious</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>useful to be able to partition testboxes (run specific builds on some boxes, let an engineer have a few boxes for a while).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>test specification needs to be more flexible (select tests, disable test, test scheduling (run certain tests nightly), ... )</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>testcase dependencies (blacklisting builds, run smoketests on box A before long tests on box B, ...)</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>more testing flexibility, more test than just install/moke. For instance unit tests, benchmarks, ...</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>presentation/analysis: graphs!, categorize bugs, columns reorganizing grouped by test (hierarchical), overviews, result for last day.</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>testcase specificion, variables (e.g. I/O-APIC, SMP, HWVIRT, SATA...) as sub-tests</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>interation with ILOM/...: reset systems</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>Changes needs LDAP authentication</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>historize all configuration w/ name</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<li>ability to run testcase locally (provided the VDI/ISO/whatever extra requirements can be met).</li>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</ul>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<hr class="docutils" />
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<table class="docutils footnote" frame="void" id="id2" rules="none">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<colgroup><col class="label" /><col /></colgroup>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<tbody valign="top">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<tr><td class="label">[1]</td><td>no such footnote</td></tr>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</tbody>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</table>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<hr class="docutils" />
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<table class="docutils field-list" frame="void" rules="none">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<col class="field-name" />
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<col class="field-body" />
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<tbody valign="top">
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<tr class="field"><th class="field-name">Status:</th><td class="field-body">$Id$</td>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</tr>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync<tr class="field"><th class="field-name">Copyright:</th><td class="field-body">Copyright (C) 2010-2014 Oracle Corporation.</td>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</tr>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</tbody>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</table>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</div>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</body>
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync</html>