The build system's <<make distcheck>> target includes running <<make installcheck>> (or is it make checkinstall :-). The installed GUI tests (assuming that there is a display :-) should hang off the installcheck target.