We could do something like "make DESTDIR=/tmp install" and then run it from there for tests.
What kinds of tests do you imagine? Buildbot has support for unit tests and more.Basically running pd patches that are designed to test something, then output a standard result, like the word "SUCCESS" or something like that. We need to write them :)