[pacman-dev] Added SigLevel parsing code

Dan McGee dpmcgee at gmail.com
Mon Jul 18 21:11:29 EDT 2011


On Mon, Jul 18, 2011 at 6:08 AM, Sebastian Nowicki <sebnow at gmail.com> wrote:
> On Mon, Jul 18, 2011 at 12:16 PM, Kerrick Staley <mail at kerrickstaley.com> wrote:
>> Also, can anyone recommend a way to easily test a change such as this?
>
>
> Probably not what you want to hear, but you can create a unit test
> suite, which would be trivial for a function such as this (no state or
> I/O). Pacman/libalpm has functional tests, as described in
> ./test/pacman/README.

We currently have extremely simplistic support for this in pactest,
and it will need some massive improvement in the future. See the
one-liner change I had to make in conf.py (s/VerifySig/SigLevel/), but
we really need to test all aspects of signing and keyrings and all
that, which we currently don't do at all.

-Dan


More information about the pacman-dev mailing list