1
**********************************
2
Writing drizzletest test cases
3
**********************************
8
Here, we discuss various topics related to writing test cases, with a focus on features
9
that allow for more complex testing scenarios. Additional documentation for other testing
10
tools will come later.
12
Using a pre-populated datadir
13
=============================
14
The experimental test runner, dbqp allows for starting a server with a pre-populated datadir
15
for a test case. This is accomplished via the use of a .cnf file (versus a master.opt file)
16
Over time, this will be the direction for all drizzletest cases.
18
The .cnf file shown below tells the test-runner to use the directory drizzle/tests/std_data/backwards_compat_data
19
as the datadir for the first server. If a test uses multiple servers, the .cnf file can have additional sections ([s1]...[sN])::
25
load-datadir=backwards_compat_data
28
All datadirs are expected to be in tests/std_data. If there is need for the ability to use datadirs outside of this location,