I want to build multiple versions of libreoffice on a machine (Debian 6) and want to test these versions against a set of test cases automatically. I also want to test the given libreoffice version by compiling/linking it against multiple versions of allowed GTK and other dependencies.
What is the best way to organize the set up for this type of sandboxing and testing? Any pointers in this directions are also welcome.
I don't want to incur the overheads of setting up of multiple virtual machines for this job, as the VMs take a lot of space and CPU bandwidth and also make it difficult to insert/extract data to and from them.
Edit: Information about any Linux distro will do, I will try to adapt it to Debian.