#!/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

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

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

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

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

echo ok.
