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 :)

What about starting to make a list of things to test? I'd nominate [expr]...
And (you'll love this :) externals' authors can make similar test patches for their stuff!

Andras