1 / 19

How to be a CPAN tester

How to be a CPAN tester. An extended Lightning Talk. How to be a CPAN tester. 1. Install CPAN::Reporter. $ perl -MCPAN -e ‘install qw(CPAN::Reporter)’. How to be a CPAN tester. 1. Install CPAN::Reporter. $ perl -MCPAN -e ‘install qw(CPAN::Reporter)’. 2. Configure CPAN::Reporter.

zona
Télécharger la présentation

How to be a CPAN tester

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to be a CPAN tester An extended Lightning Talk

  2. How to be a CPAN tester 1. Install CPAN::Reporter $ perl -MCPAN -e ‘install qw(CPAN::Reporter)’

  3. How to be a CPAN tester 1. Install CPAN::Reporter $ perl -MCPAN -e ‘install qw(CPAN::Reporter)’ 2. Configure CPAN::Reporter $ perl -MCPAN -e shell CPAN> o conf init test_report Email test reports if CPAN::Reporter is installed (yes/no)? …

  4. How to be a CPAN tester 1. Install CPAN::Reporter $ perl -MCPAN -e ‘install qw(CPAN::Reporter)’ 2. Configure CPAN::Reporter $ perl -MCPAN -e shell CPAN> o conf init test_report Email test reports if CPAN::Reporter is installed (yes/no)? … CPAN> o conf commit CPAN> exit

  5. How to be a CPAN tester 1. Install CPAN::Reporter $ perl -MCPAN -e ‘install qw(CPAN::Reporter)’ 2. Configure CPAN::Reporter $ perl -MCPAN -e shell CPAN> o conf init test_report Email test reports if CPAN::Reporter is installed (yes/no)? … CPAN> o conf commit CPAN> exit 3. Subscribe to the CPAN testers mailing list http://lists.cpan.org/showlist.cgi?name=cpan-testers

  6. How to be a CPAN tester 1. Install CPAN::Reporter $ perl -MCPAN -e ‘install qw(CPAN::Reporter)’ 2. Configure CPAN::Reporter $ perl -MCPAN -e shell CPAN> o conf init test_report Email test reports if CPAN::Reporter is installed (yes/no)? … CPAN> o conf commit CPAN> exit 3. Subscribe to the CPAN testers mailing list http://lists.cpan.org/showlist.cgi?name=cpan-testers 4. Test it! $ perl -MCPAN -e ‘test qw(Some::Module)’

  7. How to be a CPAN tester 1. Install CPAN::Reporter $ perl -MCPAN -e ‘install qw(CPAN::Reporter)’ 2. Configure CPAN::Reporter $ perl -MCPAN -e shell CPAN> o conf init test_report Email test reports if CPAN::Reporter is installed (yes/no)? … CPAN> o conf commit CPAN> exit 3. Subscribe to the CPAN testers mailing list http://lists.cpan.org/showlist.cgi?name=cpan-testers 4. Test it! $ perl -MCPAN -e ‘test qw(Some::Module)’ Here endeth the Lightning Talk

  8. How to be a prolific CPAN tester Or how I learned to automate it all and test 10,000 modules a month (This is the extended bit)

  9. How to be a prolific CPAN tester 1. Use my hideous shell scripts http://cpantest.grango.org/cgi-bin/pages.cgi?act=wiki-page&pagename=CPANTesting

  10. How to be a prolific CPAN tester 1. Use my hideous shell scripts http://cpantest.grango.org/cgi-bin/pages.cgi?act=wiki-page&pagename=CPANTesting http://shorterlink.org/3506

  11. How to be a prolific CPAN tester 1. Use my hideous shell scripts http://cpantest.grango.org/cgi-bin/pages.cgi?act=wiki-page&pagename=CPANTesting http://shorterlink.org/3506 2. Get annoyed at modules that ask you questions This package comes with some sample programs that I can try to install in /usr/bin. Note that you can avoid these questions by passing the '-n' option to 'Makefile.PL'. Do you want to install lwp-request? [y] Do you want to install lwp-mirror? [y] Do you want to install lwp-rget? [y] Do you want to install lwp-download? [y] The lwp-request program will use the name it is invoked with to determine what HTTP method to use. I can set up alias for the most common HTTP methods. These alias are also installed in /usr/bin. Do you want to install the GET alias? [n] Do you want to install the HEAD alias? [n] Do you want to install the POST alias? [n]

  12. How to be a prolific CPAN tester 3. Install Expect $ perl -MCPAN -e ‘install qw(Expect)’

  13. How to be a prolific CPAN tester 3. Install Expect $ perl -MCPAN -e ‘install qw(Expect)’ 4. Write some CPAN distribution preferences files See ‘distroprefs’ in the CPAN.pm manpage

  14. How to be a prolific CPAN tester 3. Install Expect $ perl -MCPAN -e ‘install qw(Expect)’ 4. Write some CPAN distribution preferences files See ‘distroprefs’ in the CPAN.pm manpage 5. Automate away the annoying questions --- comment: "Auto-test libwww-perl" match: distribution: "^GAAS/libwww-perl-5.8" pl: eexpect: mode: anyorder reuse: 1 talk: - "Do you want to" - "\n"

  15. How to be a prolific CPAN tester 6. Automate away annoying authors! --- comment: "Ignore this whiny bitch" match: distribution: ”DCANTRELL/" disabled: 1

  16. How to be a prolific CPAN tester 6. Automate away annoying authors! --- comment: "Ignore this whiny bitch" match: distribution: ”DCANTRELL/" disabled: 1 7. Automate away annoying installers! My Module::Install killer is too big to fit in the margin of this slide.

  17. How to be a prolific CPAN tester 6. Automate away annoying authors! --- comment: "Ignore this whiny bitch" match: distribution: ”DCANTRELL/" disabled: 1 7. Automate away annoying installers! My Module::Install killer is too big to fit in the margin of this slide. 8. Expect email from authors

  18. Thanks to … Super Dimension Fortress <http://sdf.lonestar.org/> Josh Boyd Bill Bradford <http://sunhelp.org/> cray-cyber.org

  19. See also The cpan-testers-discuss mailing list #cpantesters-discuss on irc.perl.org The CPAN-testers wiki: http://cpantest.grango.org/

More Related