tests and diagnostics?

Is there by any chance something like a "self test" shield and sketch that one can load up new hardware with to get a quick idea whether it does most of the things it's supposed to do? This would be especially valuable when building new versions of the arduino board or implementing new cpus...