~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Tests the truncate debug functionality of the transaction log
#
# We insert some things into the log, then truncate, and check
# that the size of the log file is 0 after truncation
#

# Populate log with some records...
--source suite/transaction_log/t/insert.inc

# Trim result since Solaris/BSD wc program apparently adds whitespace before output
--exec wc -l var/master-data/transaction.log | tr -d ' ' 

# Truncate the log file
--source suite/transaction_log/t/truncate_log.inc

# Trim result since Solaris/BSD wc program apparently adds whitespace before output
--exec wc -l var/master-data/transaction.log | tr -d ' '