Lines Matching refs:file

25 #                Test #1: Test that logrotate -f <file.conf> rotates the logfile
26 # as per the specifications in the conf file. Create a file
27 # tst_logfile in /var/log/. Create a conf file such that this
29 # logrotate -f <file.conf>, check to see if it forced rotation.
33 # logrotate <file.conf> every minute. The conf file specifies
34 # that the rotation happen only if the log file exceeds 2k file
100 # check if commands tst_*, logrotate, awk and file exists.
104 chk_ifexists INIT file || return $RC
132 # according to the specifications in the config file.
133 # - create a config file that will rotate the /var/log/tst_logfile
134 # file.
135 # - use force option to force logrotate to cause the log file to
137 # - compress the file after rotation.
152 tst_resm TINFO "Test #1: this will rotate the log file according to"
154 tst_resm TINFO "Test #1: 1. rotate /var/log/tst_logfile file."
161 # create config file.
163 #****** Begin Config file *******
175 #****** End Config file *******
178 # create a log file in /var/log/
181 # This is a dummy log file.
187 echo "This a dummy log file used to test logrotate command." >> \
203 # check if config file $LTPTMP/tst_logrotate.conf is read
207 grep "reading config file $LTPTMP/tst_logrotate.conf" \
218 # Check if compressed log file is created.
221 file /var/log/tst_logfile.1.gz | grep "gzip compressed data" \
226 "Test #1: logrotate created a compressed file."
229 "Test #1: Failed to create a compressed file. Reason:"
251 # - create a config file that will rotate the /var/log/tst_largelogfile.
265 # create config file.
282 # create the pseudo-log file.
284 # This is a psuedo-log file. This file will grow to a 2k size before
307 # cron job to increase the log file size.
328 # increase the log file size.
331 tst_resm TINFO "Test #2: Checking if file size is > 2k"
351 file /var/log/tst_largelogfile.1.gz | grep "gzip compressed data" \
356 "Test #1: logrotate worked as cron, created a compressed file."
359 "Test #1: Failed to create a compressed file. Reason:"