Rewrite compiler test using python.

Nice because we're now checking the output for success/failure
automatically rather than by eye.
4 files changed