If you are running Ubuntu 14.04, you can bootstrap a development environment using the script bin/bootstrap_development.sh. It will alter your environment, including ~/.ssh/config and /etc/hosts, so consider running it in a VM or container.
It takes 6-7 hours in total to load all of the testdata and run all of the tests. See the comments in the file for more information.