Steve Kemp's Blog

Debian & Free Software

About This Site

This is a simple blog relating to Debian & Free Software issues.

Archive

Testing ...
9th January 2006

Perl Testing

Writing test cases for Perl code with Test::More is fun!

It is slightly less fun when you have to come up with creative solutions to the problem of your code requiring root privileges – which means that your script + tests will fail when run by a mere mortal user.

I was thinking I could run my test cases at the time that the Debian package is built, (and do so), but I realise now that the buildd system doesn’t run with root privileges either – it uses sudo to install packages for example.

Ho hum.

Tags

Created by Chronicle v3.1