Search

Menu

Pages

Users

Help

Tools

Syndication

Our Sponsors

Edsger Dijkstra:

"Program testing can be used to show the presence of bugs, but never to show their absence!"

CPAN Testers is only made possible with the support of our sponsors.
For more information on sponsoring, please visit the
I ♥ CPAN Testers website.

Dyn (pronounced “dine”) is the worldwide Internet Infrastructure as a Service (IaaS) leader, powering Managed DNS and Email Delivery for over four million enterprise clients, small businesses and home users. Simply put, Dyn helps websites run faster and be more reliable, while also ensuring that transactional emails that consumers want and need reach their inboxes. We make the Internet a better place.

The CPAN Testers Wiki site has been upgraded since you last accessed the site.
Please press the F5 key or CTRL-R to refresh your browser cache to use the latest javascript and CSS files.

Distroprefs

Distroprefs are an overlooked feature in CPAN (search for the "Configuration for individual distribution (Distroprefs)" section). For smoke testing, they allow one to specify distributions to skip according to certain rules or provide answers to interactive question in the build process.

Distroprefs are *.yml files, kept in the CPAN 'prefs_dir' option directory. By default, this is ~/.cpan/prefs (unfortunately, on Windows, that's like "c:\documents and settings\USERNAME\Local Settings\.cpan\prefs")

The never.yml file in that repository is recommended. Others represent his collected experience smoke testing, but without later review to see if problems were fixed.

Another collection of distroprefs may be found here:

$ git clone git://github.com/eserte/srezic-cpan-distroprefs

Chris Williams said on cpan-testers-discuss@perl.org around Feb 2009:

CPANPLUS itself doesn't have the equivalent of 'distprefs'.

If you use CPAN(PLUS)::YACSmoke there is a documented mechanism in both modules for excluding
particular distributions.

the location where CPANPLUS stores it's configuration files, ie. the .cpanplus/ directory. This is where
it locates the cpansmoke.ini file and puts the cpansmoke.dat.* files that are the SDBM test report history files.

CPANPLUS usually locates the .cpanplus in $HOME, but it will check the following ENV vars in order:

APPDATA HOME USERPROFILE WINDIR SYS$LOGIN

On Windows I tend to set APPDATA to something I control, like C:\Strawberry for Strawberry Perl or C:\Perl for
ActiveState Perl. That way I have separate environments for CPANPLUS on those two perls.

I also tend to unset APPDATA in my cygwin.bat launcher, so it picks up $HOME instead of $APPDATA.