Moved test runner logic to shell script, tweaked makefile.