1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#
# This file runs the tests in various .inc files. The
# tests are all run in this manner to preserve ordering
# for a variety of tests. This allows the output from
# the command_reader to be easily compared by just looking
# at the last number of X lines. It also removes the
# dependency of tests one failed test can be easily
# commented out.
#
# To add a new test, the easiest method is to copy a
# existing test and suit it to ones liking. If you look
# in an existing *.inc test you will notice:
#
# --exec ../drizzled/message/command_reader var/master-data/event.log | tail -n 10 | sed 's/\/\* SID: [0-9] XID: [0-9]* \*\/ //g' | sed 's/Timestamp: [0-9]*//g'
#
# The 'tail -n <number of lines> will need to be modified
# to match the number of lines (statements) that were
# added to the command reader output from your test. The
# *.inc file should then be added to the test section
# and the result section below.
#
# To comment out a test comment out the appropriate
# --source line and the matching --exec line below.
#
# Tests
--source suite/command_log/t/insert.inc
--source suite/command_log/t/multi_insert.inc
--source suite/command_log/t/alter.inc
--source suite/command_log/t/database.inc
--source suite/command_log/t/rename.inc
--source suite/command_log/t/delete.inc
# MySQL Bug 36763
#--source suite/command_log/t/truncate.inc
# Needs fixing
#--source suite/command_log/t/rand.inc
#--source suite/command_log/t/tmp_table.inc
# Read in the command.log. We must cut out all the Timestamp: XXXXXX
# because they are not deterministic. The XID numbers are also removed
# these are deterministic, but they introduce a test dependancy making
# it difficult to add/remove tests in the future.
--exec ../drizzled/message/command_reader var/master-data/command.log | sed 's/\/\* SID: [0-9] XID: [0-9]* \*\/ //g' | sed 's/Timestamp: [0-9]*//g'
# Test the truncate_log functionality
--source suite/command_log/t/truncate_log.inc
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
--exec wc -l var/master-data/command.log | tr -d ' '
|