Unify test harness

This is basic support for what I introduced in #475. 
This is not completely finished, but I think this should considerably improve the CI output.
I tested on R2011b and the horizontal concatenation fails. A `;` needs to be added after `filenames` to fix the issue.