| 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. |
| 31 |
|
| 32 |
The directory may contain collections that are "super sets" of others, |
| 33 |
identified by a file name suffix ".in". These files may contain lines |
| 34 |
"#include <filename>", or lines with mysql-test-run.pl invocations. |
| 35 |
CMake will create a new file without the .in suffix where |
| 36 |
the include lines are replaced with the contents of the referred |
| 37 |
file. Filename is local to the collections directory, and includes do |
| 38 |
not nest. |