[PATCH] tests: only compile test programs when running test