This gist demonstrates how to use a transient (temporary) schroot environment to set up a controlled environment to run the Ratchet test suite. It assumes you're running this on a recent version of Ubuntu (a virtual machine will do as well).
- We want to run the test suite in isolation without installing the required tools on our host.
- Instead, all tools will be installed in a transient schroot that will be reset whenever we leave it.
- The schroot is a convenient wrapper to set up a blank system in a chroot, but still provides access to your home directory where the workspace (Ratchet) is installed.
- This allows us to easily hack the source code on the host system and running exactly the same code in the schroot test environment.
- As such, you can read/write to your home directory from within your schroot, which is convenient in our case. Obviously, this is not a safe option if you're running untrusted code.
- We use debootstrap to set up a new Ubuntu Precise (12.04 LTS) VM.