1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#
# 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
#
# Truncate the log file to reset for the next test
--source ../plugin/transaction_log/tests/t/truncate_log.inc
# Populate log with some records...
--source ../plugin/transaction_log/tests/t/insert.inc
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
--exec wc -l var/master-data/local/transaction.log | tr -d ' '
# Truncate the log file
--source ../plugin/transaction_log/tests/t/truncate_log.inc
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
--exec wc -l var/master-data/local/transaction.log | tr -d ' '
|