chiark / gitweb /
tests/example/check: Better handling of makefile updates
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Dec 2019 11:01:28 +0000 (11:01 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Dec 2019 16:04:44 +0000 (16:04 +0000)
commit1e8cf1c577b74d3d83a17a9f1ae163eeae3e700d
tree516b27231b481f673839a468022b98e880f3273c
parenta4d9f732b93f499b96e3a52459c5f7d2366da14a
tests/example/check: Better handling of makefile updates

Rather than checking just for presence of a string in a templated
output file, also have the input file define a target which we try to
run.  This checks that make actually reread the file.

Also add ||false to the grep lines, which makes the stderr output
more obviously contain a failure when the test fails.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/example/check