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 command 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/command_log/t/insert.inc
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
--exec wc -l var/master-data/command.log | tr -d ' '
# Truncate the log file
--source suite/command_log/t/truncate_log.inc
# Trim result since Solaris/BSD wc program apparently adds whitespace before output
--exec wc -l var/master-data/command.log | tr -d ' '
|