Wrap up existing tests for consumption by automated infrastructure

creates make test/check targets, and theoretically analogues for IDEs too.

Semantics preserving, just packaging up what's already there.  Also fixes tests that were broken by the --redirect_output => default patch.