File: t-few

package info (click to toggle)
dkim-rotate 1.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 196 kB
  • sloc: perl: 832; sh: 324; makefile: 55
file content (42 lines) | stat: -rwxr-xr-x 792 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Copyright 2022 Ian Jackson and contributors to dkim-rotate
# SPDX-License-Identifier: GPL-3.0-or-later
# There is NO WARRANTY.

set -ex

. tests/lib

allow_stall=true

cat >>$tmp/etc/test.zone <<END -
! max_selector 2
END

day 0 --new
for d in 1 2 3 4 5 6; do day $d; done

diff -ub - $tmp/out.4.+0.done <<END
END

diff -ub - $tmp/out.4.+18.done <<END
END

diff -ub - $tmp/out.5.+0.done <<END
END

diff -ub - $tmp/out.5.+18.done <<END
test                  b  +N +X deadvertised.
test                  b     -1 generated.
END

diff -ub - $tmp/out.6.+0.done <<END
test                 (b) +X  R revealed.
test                  a  +0 +N advanced; now emails percolating.
test                  b  -1 +0 advanced; now in use.
END

diff -ub - $tmp/out.6.+18.done <<END
END

echo ok.