tests/unit/utils/HtmlPurifierTest.php -text
tests/unit/utils/TextSanitizerTest.php -text
tests/unit/utils/UtilsTest.php -text
+tools/VM-scripts/README.txt -text
+tools/VM-scripts/build.sh -text
+tools/VM-scripts/install-gui.sh -text
+tools/VM-scripts/install.sh -text
+tools/VM-scripts/run-testsuite.sh -text
+tools/VM-scripts/shrink.sh -text
+tools/VM-scripts/start-selenium.sh -text
+tools/VM-scripts/update.sh -text
tools/bugzilla2GForge.pl svneol=native#text/x-perl
tools/check_and_update_forum_role_settings.php -text
tools/cmp-schemas.pl svneol=native#text/x-perl
--- /dev/null
+See ~/Desktop/README.html which contains some docs.
+
+See also :
+https://fusionforge.org/plugins/mediawiki/wiki/fusionforge/index.php/Virtual_machine_development_environment
+for some more details.
+
+The ~/fusionforge "directory" should hold the to-be-tested tested
+contents of the repository.
+
+It may conveniently be a soft link pointing to a trunk checkout or a
+branch checkout if you intend to have several branches under test in
+the same VM.
+
+For instance, one may :
+
+# cd ~
+# bzr checkout svn://scm.fusionforge.org/svnroot/fusionforge/trunk fusionforge-trunk
+# ln -s fusionforge-trunk fusionforge
+
+-- Olivier Berger
--- /dev/null
+#! /bin/sh
+
+# removed as the grep test below would break otherwise
+#set -e
+
+#set -x
+
+# Pupulate the repo
+rm -rf /root/debian-repository
+mkdir -p /root/debian-repository
+mini-dinstall -b
+
+cd /root/fusionforge/src
+f=$(mktemp)
+cp debian/changelog $f
+
+# The build is likely to fail if /tmp is too short.
+# When filesystem is too much full, the boot scripts mount a tmpfs /tmp that is far too small to allow builds,
+# but still gets unnoticed.
+# We assume here that you didn't change the VM partitions layout and that /tmp is not a mounted partition.
+mount | grep /tmp
+if [ $? -eq 0 ]; then
+ echo "WARNING: It is likely that the mounted /tmp could be too short. If you experience a build error bellow, Try make some room on the FS and reboot, first."
+fi
+
+dch --newversion 999+$(date +%Y%m%d%H%M%S)-1 --distribution local --force-distribution "Autobuilt."
+debuild --no-lintian --no-tgz-check -us -uc -tc
+
+debrelease -f local
+mv $f debian/changelog
+
+cd
--- /dev/null
+#! /bin/sh
+
+apt-get install -y nodm xfce4
+sed -i -e 's/^NODM_ENABLED=.*/NODM_ENABLED=true/' -e 's/^NODM_USER=.*/NODM_USER=root/' /etc/default/nodm
+/etc/init.d/nodm restart
--- /dev/null
+#! /bin/sh
+
+set -e
+set -x
+
+aptitude update
+if dpkg -l fusionforge-full | grep -q ^ii ; then
+ # Already installed, upgrading
+ /root/scripts/reload-db.sh
+ UCF_FORCE_CONFFNEW=yes LANG=C DEBIAN_FRONTEND=noninteractive aptitude -y dist-upgrade
+else
+ # Initial installation
+ UCF_FORCE_CONFFNEW=yes LANG=C DEBIAN_FRONTEND=noninteractive aptitude -y install postgresql-8.4
+ UCF_FORCE_CONFFNEW=yes LANG=C DEBIAN_FRONTEND=noninteractive aptitude -y install gforge-db-postgresql
+ UCF_FORCE_CONFFNEW=yes LANG=C DEBIAN_FRONTEND=noninteractive aptitude -y install fusionforge-full
+ /usr/share/gforge/bin/forge_set_password admin myadmin
+ a2dissite default
+ invoke-rc.d apache2 restart
+ su - postgres -c "pg_dump -Fc gforge" > /root/dump
+fi
--- /dev/null
+#! /bin/sh
+
+export CONFIG_PHP=/root/fusionforge/tests/func/config.php.ffsandbox
+
+# Run the phpunit + Selenium functional tests
+cd /root/fusionforge/tests
+if [ "$*" = "" ] ; then
+ phpunit --verbose SeleniumTests.php
+else
+ for i in $* ; do
+ phpunit --verbose $i
+ done
+fi
+
+# If available, run the JUnit OSLC provider test suite
+if [ -d /root/fusionforge/src/plugins/oslc/tests ]; then
+ cd /root/fusionforge/src/plugins/oslc/tests
+ ./setup-provider-test.sh
+ ./run-provider-tests.sh
+fi
--- /dev/null
+#! /bin/sh
+
+apt-get clean
+aptitude clean
+find /var/cache -type f | xargs rm
+rm -rf /tmp/*
+rm -rf /root/debian-repository
+# Maven2 stuff
+rm -rf /root/.m2/
+rm -f /root/.bzr/repository/obsolete_packs/*
+rm -f /root/fusionforge-trunk/*999*
+rm -f /var/log/*.gz
+rm -f /var/lib/aptitude/pkgstates.old
+
+df -h /
+
+mount -oremount,ro /
+fsck -fpC /dev/sda1
+zerofree -v /dev/sda1
+mount -oremount,rw /
+swapoff -a
+dd if=/dev/zero of=/dev/sda5
+mkswap /dev/sda5
--- /dev/null
+#! /bin/sh
+
+cd /root/fusionforge/3rd-party/selenium
+make
--- /dev/null
+#! /bin/sh
+
+aptitude update
+aptitude dist-upgrade
+
+# Make sure to add tools needed for build.sh
+aptitude bzr install mini-dinstall devscripts dpatch sharutils docbook-to-man
+
+set -e
+
+cd /root/fusionforge
+
+if [ -d .bzr/ ] ; then
+ bzr update
+else
+ git pull
+fi
+
+