Greetings folks,
I'm not a perl user, and it's been *some* time since I last knowingly opened up a perl script. While providing some karma feedback for a recent perl update, it occurred that it might be nice to have a few sample perl test cases linked from the bodhi update request.
Does anyone have any perl test case suggestions that we can add to https://fedoraproject.org/wiki/Category:Package_perl_test_cases ?
Thanks, James
On Wed, Apr 06, 2011 at 10:45:16 -0400, James Laska jlaska@redhat.com wrote:
Greetings folks,
I'm not a perl user, and it's been *some* time since I last knowingly opened up a perl script. While providing some karma feedback for a recent perl update, it occurred that it might be nice to have a few sample perl test cases linked from the bodhi update request.
Does anyone have any perl test case suggestions that we can add to https://fedoraproject.org/wiki/Category:Package_perl_test_cases ?
It is fairly normal for perl modules to come with test cases. I am not sure of what you need to do to run them as they are installed, but it is normal to run them when building them from source.
On Wed, 2011-04-06 at 09:48 -0500, Bruno Wolff III wrote:
On Wed, Apr 06, 2011 at 10:45:16 -0400, James Laska jlaska@redhat.com wrote:
Greetings folks,
I'm not a perl user, and it's been *some* time since I last knowingly opened up a perl script. While providing some karma feedback for a recent perl update, it occurred that it might be nice to have a few sample perl test cases linked from the bodhi update request.
Does anyone have any perl test case suggestions that we can add to https://fedoraproject.org/wiki/Category:Package_perl_test_cases ?
It is fairly normal for perl modules to come with test cases. I am not sure of what you need to do to run them as they are installed, but it is normal to run them when building them from source.
Is that something a tester should validate from the koji build logs? Meaning, check whether %check ran, and passed?
Anything else to consider?
Thanks, James
On Wed, Apr 06, 2011 at 11:08:08 -0400, James Laska jlaska@redhat.com wrote:
Is that something a tester should validate from the koji build logs? Meaning, check whether %check ran, and passed?
I don't know if anyone runs %check for perl modules now, but it sounds like a good idea to start doing that where it won't cause problems. Some of the tests may do things that we don't want to do while doing automated building, but I expect it would be fine for most perl modules.
On 04/06/2011 05:08 PM, James Laska wrote:
On Wed, 2011-04-06 at 09:48 -0500, Bruno Wolff III wrote:
On Wed, Apr 06, 2011 at 10:45:16 -0400, James Laskajlaska@redhat.com wrote:
Greetings folks,
I'm not a perl user, and it's been *some* time since I last knowingly opened up a perl script. While providing some karma feedback for a recent perl update, it occurred that it might be nice to have a few sample perl test cases linked from the bodhi update request.
Does anyone have any perl test case suggestions that we can add to https://fedoraproject.org/wiki/Category:Package_perl_test_cases ?
It is fairly normal for perl modules to come with test cases. I am not sure of what you need to do to run them as they are installed, but it is normal to run them when building them from source.
Is that something a tester should validate from the koji build logs?
It's convention for all fedora perl packages to run these test in %check.
I.e. usually (i.e. there are exceptions), a perl-package which fails its testsuite will fail building.
Meaning, check whether %check ran, and passed?
So far, this has been considered responsibility of the Fedora package maintainer as well as has making sure %check runs a perl package's testsuite and produces reasonable results, always been been part of the Fedora package reviews.
Anything else to consider?
I am not sure what you are aim at.
The current number one issue with perl packages in Fedora are package dependencies (perl module dependencies) and the impact of changes in rpm's perl dependency-generator between different versions of rpm.
Bugs in functionality usually are much covered by perl packages' upstreams than they are by Fedora users or Fedora package maintainers. In other words, the usual situation with perl packages is upstreams releasing updates, which fix bugs no Fedora user had reported nor the Fedora maintainer has tripped over.
Ralf
On Thu, 2011-04-07 at 07:06 +0200, Ralf Corsepius wrote:
On 04/06/2011 05:08 PM, James Laska wrote:
On Wed, 2011-04-06 at 09:48 -0500, Bruno Wolff III wrote:
On Wed, Apr 06, 2011 at 10:45:16 -0400, James Laskajlaska@redhat.com wrote:
Greetings folks,
I'm not a perl user, and it's been *some* time since I last knowingly opened up a perl script. While providing some karma feedback for a recent perl update, it occurred that it might be nice to have a few sample perl test cases linked from the bodhi update request.
Does anyone have any perl test case suggestions that we can add to https://fedoraproject.org/wiki/Category:Package_perl_test_cases ?
It is fairly normal for perl modules to come with test cases. I am not sure of what you need to do to run them as they are installed, but it is normal to run them when building them from source.
Is that something a tester should validate from the koji build logs?
It's convention for all fedora perl packages to run these test in %check.
I.e. usually (i.e. there are exceptions), a perl-package which fails its testsuite will fail building.
Meaning, check whether %check ran, and passed?
So far, this has been considered responsibility of the Fedora package maintainer as well as has making sure %check runs a perl package's testsuite and produces reasonable results, always been been part of the Fedora package reviews.
<nod>
Anything else to consider?
I am not sure what you are aim at.
I'm looking for some quick/basic ideas we can turn into test cases on the wiki anchored at https://fedoraproject.org/wiki/Category:Package_perl_test_cases. These tests are then linked in the bodhi updated as suggested tests. While providing karma feedback for perl, I thought it would be handy to have a list of *basic* perl tests available for testers to run (esp since I don't use perl much).
Thanks, James
On 04/07/2011 02:57 PM, James Laska wrote:
On Thu, 2011-04-07 at 07:06 +0200, Ralf Corsepius wrote:
Anything else to consider?
I am not sure what you are aim at.
I'm looking for some quick/basic ideas we can turn into test cases on the wiki anchored at https://fedoraproject.org/wiki/Category:Package_perl_test_cases. These tests are then linked in the bodhi updated as suggested tests. While providing karma feedback for perl, I thought it would be handy to have a list of *basic* perl tests available for testers to run (esp since I don't use perl much).
OK, somewhat oversimplified, think of "perl-module" packages as "library" and "plugin" packages.
Should there be any general considerations for testing them, they may also be applicable to perl module packages.
Ralf
On Fri, 2011-04-08 at 06:46 +0200, Ralf Corsepius wrote:
On 04/07/2011 02:57 PM, James Laska wrote:
On Thu, 2011-04-07 at 07:06 +0200, Ralf Corsepius wrote:
Anything else to consider?
I am not sure what you are aim at.
I'm looking for some quick/basic ideas we can turn into test cases on the wiki anchored at https://fedoraproject.org/wiki/Category:Package_perl_test_cases. These tests are then linked in the bodhi updated as suggested tests. While providing karma feedback for perl, I thought it would be handy to have a list of *basic* perl tests available for testers to run (esp since I don't use perl much).
OK, somewhat oversimplified, think of "perl-module" packages as "library" and "plugin" packages.
I understand what perl modules are, and how they are packaged. This thread was intended to flesh out some basic test ideas for perl (and possibly modules).
Should there be any general considerations for testing them, they may also be applicable to perl module packages.
Definitely. Anything come to mind?
Thanks, James