On Fri, 2009-10-23 at 16:15 +0300, Alexander Todorov wrote:
Hi all,
I have a test which runs rpmlint against all packages in the distro and I'd like
to convert it to AutoQA format. I've read
https://fedoraproject.org/wiki/Writing_AutoQA_Tests but it doesn't mention what
parameters are available to tests to use. My original test accepts NFS path,
mounts it, finds all *.rpm files and runs rpmlint -i against all of them. Is it
possible to access the storage media from the test case or to have a pointer to
the rpm files itself (if running against a particular package)?
Oh, good question. The short answer: assume that you have a URL that
points to the newly-built package/tree.
The exact environment specified for the test varies depending on what
hook it's triggered by. See the README files, for example:
https://fedorahosted.org/autoqa/browser/hooks/post-repo-update/README
https://fedorahosted.org/autoqa/browser/hooks/post-tree-compose/README
post-koji-build is still being designed but will probably get either a
package URL *or* just a package NVR, which you can convert to a URL
using a koji RPC.
Hope that helps.
-w