chiark / gitweb /
doctests: Extract and use
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 24 Dec 2019 00:49:00 +0000 (00:49 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Dec 2019 22:19:08 +0000 (22:19 +0000)
commit78995cd20340b0a913870b10c096eb85fdc5f1a9
treee7094b1b5da438891d147e8274a154b4bceb0ea4
parentd40a03f954b17e2cbe9b66cd5755290820642515
doctests: Extract and use

Include the doctests from the toplevel Subdir.sd.mk.

In check, extract the doctests, and seddery the expected output into
the combined expected output file.  This involves adding a comment in
Subdir.mk.expected to indicate where the doctests will appear.

In update-expected, contrive to strip the doctest output back out of
the actual output so we can update only the manually-edited part.

Consequential changes to MAKEFILE_TEMPLATES in main.mk.expected
and .gitignore.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/filter/.gitignore
tests/filter/Subdir.mk.expected
tests/filter/Subdir.sd.mk
tests/filter/check
tests/filter/main.mk.expected
tests/filter/update-expected