~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/collections/README

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
This directory contains collections of test runs that we run during our
 
2
integration and release testing. Each file contains zero or more lines,
 
3
with one invocation of mysql-test-run.pl on each. These invocations are
 
4
written so that, with the assumption that perl is in your search path,
 
5
any collection can run as a shell script or a batch file, with the parent
 
6
mysql-test directory being the current working directory.
 
7
 
 
8
During integration testing, we choose the collection to run by following
 
9
these steps:
 
10
 
 
11
1) We choose the extension to look for, based on these rules:
 
12
   - If we're running a per-push test, we choose ".push" as the extension.
 
13
   - If we're running a daily test, we choose ".daily" as the extension.
 
14
   - If we're running a weekly test, we choose ".weekly" as the extension.
 
15
 
 
16
2) If there is a collection that has the same name as the branch we're
 
17
   testing plus the extension as determined in step 1, we choose that
 
18
   collection.
 
19
 
 
20
3) If the branch is unknown or we have removed all characters from it
 
21
   and still not found a matching collection, we choose the name "default"
 
22
   plus the extension determined in step 1. If there is no such file,
 
23
   we give up and don't test anything at all.
 
24
 
 
25
4) If we haven't found a collection yet, we remove the last character from 
 
26
   the branch name and go back to step 2.
 
27
 
 
28
5) The commands from the collection are run line by line via execv() or
 
29
   similar system calls. They are not run as a shell script. Shell 
 
30
   expansions are not guaranteed to work and most likely won't.