<div dir="ltr"><div>Hi Ansgar,<br><br></div>It's great to hear from you. I apologize for my late reply, have been since couple of days.<br><div class="gmail_extra"><br>There are already a few unit tests, but many parts of dak need access to<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the repository and the database.  Just a random example: when dak<br>
processes an upload to unstable it makes sure the upload has a higher<br>
version number than already present in unstable.  We currently have no<br>
way of testing such code automatically.<br>
<br>
This is where the Summer of Code project comes in: we want you to write<br>
a framework for such tests and also to implement some.<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
To makes these tests reproducible, they should probably be run in a<br>
clean environment.  This means automatically setting up a dak instance,<br>
including a postgresql database (maybe even setup a temporary PostgreSQL<br>
installation automatically so one does not need special permissions to<br>
run the testsuite).<br>
<br>
Some tests would need some packages already installed into the temporary<br>
dak instance.  Take the example from above: a version comparision with<br>
the version already in the archive would be boring if the archive was<br>
empty.  You need to figure out some way to do this.<br>
<br>
I hope you get a rough idea what we want.  Feel free to ask if you want<br>
to know more.  If you are interested, you might want to try and setup a<br>
dak instance by hand and play around a bit with it.  There's a short<br>
README in the setup directory in dak's Git repository[4].  You also need<br>
some basic knowledge about creating Debian packages as these will be<br>
needed for the tests (not much needed there as our test packages will be<br>
almost empty).<br>
<br>
  [4] git clone <a href="https://ftp-master.debian.org/git/dak.git" target="_blank">https://ftp-master.debian.org/git/dak.git</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Ansgar<br>
</font></span></blockquote></div><br></div></div>