~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/t/truncate_log.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Tests the truncate debug functionality of the transaction log
3
 
#
4
 
# We insert some things into the log, then truncate, and check
5
 
# that the size of the log file is 0 after truncation
6
 
#
7
 
 
8
 
# Truncate the log file to reset for the next test
9
 
--source ../plugin/transaction_log/tests/t/truncate_log.inc
10
 
 
11
 
# Populate log with some records...
12
 
--source ../plugin/transaction_log/tests/t/insert.inc
13
 
 
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 ' ' 
17
 
 
18
 
# Truncate the log file
19
 
--source ../plugin/transaction_log/tests/t/truncate_log.inc
20
 
 
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 ' '