Current plan is to have a tests/ folder in packages, where each file in this folder is a shell script which indicates a test failure by a non-zero exit value.