~drizzle-pbxt/drizzle/drizzle-pbxt-2

« back to all changes in this revision

Viewing changes to tests/suite/command_log/t/truncate_log.test

  • Committer: Paul McCullagh
  • Date: 2009-11-10 14:18:39 UTC
  • mfrom: (1038.1.7 drizzle-pbxt-pre-merge)
  • Revision ID: paul.mccullagh@primebase.org-20091110141839-2j3k43b17ag6f605
Merged Drizzle trunk and PBXT 1.0.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Tests the truncate debug functionality of the command 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
# Populate log with some records...
 
9
--source suite/command_log/t/insert.inc
 
10
 
 
11
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
 
12
--exec wc -l var/master-data/command.log | tr -d ' ' 
 
13
 
 
14
# Truncate the log file
 
15
--source suite/command_log/t/truncate_log.inc
 
16
 
 
17
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
 
18
--exec wc -l var/master-data/command.log | tr -d ' '