On Sa, 2013-11-02 at 12:03 +0100, Rafael Laboissiere wrote: > * Benjamin Drung <bdr...@debian.org> [2013-11-02 00:05]: > > > > I have just one recommendation/wish: It would be nice if test cases > > could be added for the new feature. The test cases should work offline. > > Would something along the lines of the very simple-minded shell script > attached below be appropriate? Of course, it will need adaptation for > the shunit2 framework used in devscripts.
Yes, that's exactly what I hoped for. We already have test/test_uscan, which contains one online test. This could be converted to an offline test with your test framework. > What this script does is (1) create a minimal Debian package directory, > containing minimal files debian/{changelog,watch,copyright}, (2) create a > minimal repository, containing a tarball (built on the fly), and (3) > start an HTTP server that works offline, using the SimpleHTTPServer > module of Python. Maybe this short description could be added to the test case as comment (for documentation). -- Benjamin Drung Debian & Ubuntu Developer -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org