[test] add unit tests for ruleset
We extract the rules building logic from readfile into a Ruleset.buildrules()
method to ease testing.
if ${CHROOT_TEST_INSTALLDEB:-false} ; then
aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \
debconf python adduser openssh-server ucf
echo dpkg -i /var/cache/apt/archives/mercurial-common_*.deb /var/cache/apt/archives/mercurial_*.deb *.deb
dpkg -i /var/cache/apt/archives/mercurial-common_*.deb /var/cache/apt/archives/mercurial_*.deb *.deb
else
aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \
make mercurial xsltproc docbook-xsl openssh-server \
python adduser
cd mercurial-server
make setup-adduser
fi