[pacman-dev] A makepkg test suite
Ashley Whetter
awhetter.2011 at my.bristol.ac.uk
Fri Jul 12 15:00:37 EDT 2013
I've recently come across issue FS#15645 ([makepkg] needs a test
suite) and I'd like to have a bash at implementing it. It seems like a
good idea to get peoples ideas and thoughts first so what do you
think?
My first reaction is to do something similar to the pacman tests and
just write a custom framework in python. Also have the output the same
as the pacman tests.
I think keeping the idea an environment (like in the pacman tests)
seems a bit heavy handed because the only configuration done is in
makepkg.conf and we can probably fake a pacman environment using a
stub pacman. Or maybe we could utilise the pacman test environments!
Unit testing should be easy enough because we can just call specific
functions in makepkg and check the output.
For functional testing I'm not really sure.
As for acceptance testing we can just put different flag combinations
in different test environments, and check the return code. Check the
.PKGINFO. Maybe that files were put where they should be in pkg and
src, as well as in the package itself.
Have some PKGBUILDs that fail for various reasons like syntax, a
dependency package doesn't exist. Make sure missing
{,make,check}dependencies are installed.
Any suggestions or ideas?
Ashley
More information about the pacman-dev
mailing list