1
1
This directory contains collections of test runs that we run during our
2
2
integration and release testing. These files are not directly useful
3
3
outside this context, but need to be part of the source repository
4
- and are included for reference.Each file contains zero or more lines,
4
+ and are included for reference. Each file contains zero or more lines,
5
5
with one invocation of mysql-test-run.pl on each. These invocations are
6
6
written so that, with the assumption that perl is in your search path,
7
- any collection can run as a shell script or a batch file, with the parent
8
- mysql-test directory being the current working directory.
7
+ any collection can in principle run as a shell script or a batch file,
8
+ with the parent mysql-test directory being the current working directory.
9
9
10
10
During integration testing, we choose the collection to run by following
11
11
these steps:
@@ -19,6 +19,9 @@ these steps:
19
19
testing plus the extension as determined in step 1, we choose that
20
20
collection.
21
21
22
+ 2b) If we are running a valgrind test and there is a collection with
23
+ the chosen name and the suffix "-valgrind" we choose that instead.
24
+
22
25
3) If the branch is unknown or we have removed all characters from it
23
26
and still not found a matching collection, we choose the name "default"
24
27
plus the extension determined in step 1. If there is no such file,
@@ -38,3 +41,29 @@ CMake will create a new file without the .in suffix where
38
41
the include lines are replaced with the contents of the referred
39
42
file. Filename is local to the collections directory, and includes do
40
43
not nest.
44
+
45
+ Notes on some of the mysql-test-run.pl arguments and how they work in
46
+ our continous intergation test framework. These are mostly for those
47
+ writing or editing such files as they are specific to that setup.
48
+
49
+ 1) The --comment argument produces a header which is parsed by the log
50
+ analyzer to produce an entry for the result summary, seen as the
51
+ name of the test batch. The names should be unique. Also, avoid too
52
+ long names as it may clutter the presentation.
53
+
54
+ 2) Do not use --mem, use --vardir instead. Before the test is run, a
55
+ host specific ramdisk path is prepended to the vardir argument to
56
+ ensure that tests always run on ramdisk. This also works on Windows
57
+ or Mac OSX where --mem is not supported.
58
+
59
+ 3) The name of the --vardir directory must start with 'var' in order for
60
+ the test results to be correctly included in the result
61
+ tarballs. They should also be unique across the collection file to
62
+ avoid clashes. If --vardir is not specified, the --comment name will
63
+ be used with a prefix "var-".
64
+
65
+ 4) Any --parallel setting will be overridden by a host specific
66
+ setting (which may be modified by branch; e.g. some hosts may need a
67
+ lower setting for cluster). Most hosts use 8. It does not hurt to
68
+ add --parallel=auto but this will only have effect should we have
69
+ forgotten to set a parallel setting for a host.
0 commit comments