~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/testing/writing_tests.rst

  • Committer: Mark Atwood
  • Date: 2011-05-15 01:16:29 UTC
  • mfrom: (2274.1.9 dbqp_server_setup)
  • Revision ID: me@mark.atwood.name-20110515011629-votxs0oxy9s3gnpl
Tags: 2011.05.18
mergeĀ lp:~patrick-crews/drizzle/dbqp_server_setup

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
**********************************
 
2
Writing drizzletest test cases
 
3
**********************************
 
4
 
 
5
Synopsis
 
6
========
 
7
 
 
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.
 
11
 
 
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.
 
17
 
 
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])::
 
20
 
 
21
    [test_servers] 
 
22
    servers = [[]]
 
23
 
 
24
    [s0]
 
25
    load-datadir=backwards_compat_data
 
26
 
 
27
 
 
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,
 
29
it can be explored.
 
30