1#!/bin/bash 2 3. ./test-common.sh 4 5cleanup 26 6 7# ------------------------------- Test 26 ------------------------------------ 8# If there is error in config file, log should not be rotated and original log 9# should be untouched 10 11preptest test.log 26 1 0 12# log with 1 byte should not be rotated 13$RLR test-config.26 2>error.log 14 15grep "unknown option" error.log >/dev/null 16if [ $? != 0 ]; then 17 echo "No error printed, but there should be one." 18 exit 3 19fi 20 21rm error.log 22 23checkoutput <<EOF 24test.log 0 25test.log.1 0 zero 26EOF 27