2 # subdirmk - part of the test suite
3 # Copyright 2019 Mark Wooding
4 # Copyright 2019 Ian Jackson
5 # SPDX-License-Identifier: LGPL-2.0-or-later
6 # There is NO WARRANTY.
8 # Usual approach to updating the expected outputs is
10 # tests/filter/update-expected
11 # selectively git-add the things that are right, after inspecting them
14 files=$(find tests/filter -name \*.expected.tmp)
17 (s/\n//, $stripnl=0) if $stripnl;
18 next unless /^# doctests start/../^# doctests end/;
22 <${f%.expected.tmp}.tmp >${f%.tmp}