[PATCH] selftest: add a script to perform selftest compile tests