1#!/bin/bash
2
3. ./test-common.sh
4
5cleanup 76
6
7# ------------------------------- Test 76 ------------------------------------
8# compress and mail should work when logrotate runs with closed stdin/stdout
9# https://github.com/logrotate/logrotate/issues/154
10preptest test.log 76 2 2
11
12$RLR test-config.76 --verbose <&- >&-
13
14checkoutput <<EOF
15test.log 0
16test.log.1.gz 1 zero
17test.log.2.gz 1 first
18EOF
19
20checkmail test.log.3.gz second
21