s"></a>
<h2>Set up &amp; run functional tests</h2>

<p>Some scripts use sudo chown command to operate on Moodle data, so to let them run without prompting for password add something like this to /etc/sudoers (use visudo to edit):</p>

<pre><code>%adm    ALL = NOPASSWD: /bin/chown, /bin/chmod
</code></pre>

<p>Then make sure your shell user is in group adm.</p>

<p>Create 2 directories for Moodle data, eg: ~/data/moosh-test/moodledata25 and ~/data/moosh-test/moodledata26. Give apache user write access to Moo