tests: assorted fixes
Fixes developed while working on making tests run in gitlab CI:
- make tests work in out-of-tree builds
- Fix failure to make distcheck
- report failure if stderr has unexpected output
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Fixes developed while working on making tests run in gitlab CI: