2
# Tests the truncate debug functionality of the transaction log
4
# We insert some things into the log, then truncate, and check
5
# that the size of the log file is 0 after truncation
8
# Truncate the log file to reset for the next test
9
--source ../plugin/transaction_log/tests/t/truncate_log.inc
11
# Populate log with some records...
12
--source ../plugin/transaction_log/tests/t/insert.inc
14
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
15
--replace_result $DRIZZLETEST_VARDIR VARDIR
16
--exec wc -l $DRIZZLETEST_VARDIR/master-data/local/transaction.log | tr -d ' '
18
# Truncate the log file
19
--source ../plugin/transaction_log/tests/t/truncate_log.inc
21
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
22
--replace_result $DRIZZLETEST_VARDIR VARDIR
23
--exec wc -l $DRIZZLETEST_VARDIR/master-data/local/transaction.log | tr -d ' '