Re: Idea for a smoke setup: read-only home directory

2008-07-07 Thread Barbie
On Sat, Jul 05, 2008 at 08:31:07AM -0400, James E Keenan wrote: Funny you should mention that. I've been slowly working through the rewrite of YACSmoke. One of the aspects that I've been thinking about is having CPAN Testers run the often disputed pod.t and podcover.t type tests.

Re: Idea for a smoke setup: read-only home directory

2008-07-05 Thread Barbie
On Fri, Jul 04, 2008 at 10:02:24PM -0400, James E Keenan wrote: David Cantrell wrote: On Tue, Jun 17, 2008 at 09:40:02PM -0400, David Golden wrote: There also seem to be some things in ~/tmp/ That's on linux. It's worse on Win32. Lots of stuff winds up dumped in c:\. In one case, I think

Re: Idea for a smoke setup: read-only home directory

2008-07-05 Thread James E Keenan
On Jul 5, 2008, at 7:58 AM, Barbie wrote: On Fri, Jul 04, 2008 at 10:02:24PM -0400, James E Keenan wrote: David Cantrell wrote: On Tue, Jun 17, 2008 at 09:40:02PM -0400, David Golden wrote: There also seem to be some things in ~/tmp/ That's on linux. It's worse on Win32. Lots of stuff

Re: Idea for a smoke setup: read-only home directory

2008-07-04 Thread James E Keenan
David Cantrell wrote: On Tue, Jun 17, 2008 at 09:40:02PM -0400, David Golden wrote: There also seem to be some things in ~/tmp/ That's on linux. It's worse on Win32. Lots of stuff winds up dumped in c:\. In one case, I think there were several thousand tiny directories. On *nix I

Re: Idea for a smoke setup: read-only home directory

2008-07-04 Thread James E Keenan
David Golden wrote: So I keep noticing litter in my home directory while running the smoker. It looks like either temp files or default locations for things. I consider that bad behavior for tests. I have been guilty of that *in the past*. During my rewrite of ExtUtils::ModuleMaker in

Re: Idea for a smoke setup: read-only home directory

2008-07-04 Thread James E Keenan
imacat wrote: In my test script I create a temporarily directory as the home directory and set the HOME environemnt variable to it. After the tests are finished that directory is removed with File::Path::rmtree() and the HOME environment variable is restored. A very good suggestion --

Re: Idea for a smoke setup: read-only home directory

2008-06-18 Thread Barbie
On Wed, Jun 18, 2008 at 12:08:46PM +0300, Serguei Trouchelle wrote: David Golden wrote: So I keep noticing litter in my home directory while running the smoker. It looks like either temp files or default locations for things. I consider that bad behavior for tests. I'm considering

Re: Idea for a smoke setup: read-only home directory

2008-06-18 Thread David Golden
On Wed, Jun 18, 2008 at 9:11 AM, David Cantrell [EMAIL PROTECTED] wrote: On *nix I periodically clean out several hundred files from /tmp. I assume that they're created by File::Temp. Or just created by hand and ignored. David

Re: Idea for a smoke setup: read-only home directory

2008-06-18 Thread David Cantrell
On Wed, Jun 18, 2008 at 06:53:30AM -0400, David Golden wrote: My standard approach is to have a test setup routine that (a) creates a temp directory and (b) mocks File::HomeDir to make sure that all it's methods return the temp directory. The only real trick is making sure that

Re: Idea for a smoke setup: read-only home directory

2008-06-18 Thread imacat
On Tue, 17 Jun 2008 21:22:50 -0400 David Golden [EMAIL PROTECTED] wrote: I'm considering making my home directory read-only and then smoking all of CPAN again to see what fails its tests. In my test script I create a temporarily directory as the home directory and set the HOME environemnt

Re: [SPAM] Re: Idea for a smoke setup: read-only home directory

2008-06-18 Thread Serguei Trouchelle
David Cantrell wrote: There also seem to be some things in ~/tmp/ That's on linux. It's worse on Win32. Lots of stuff winds up dumped in c:\. In one case, I think there were several thousand tiny directories. On *nix I periodically clean out several hundred files from /tmp. I assume that

Idea for a smoke setup: read-only home directory

2008-06-17 Thread David Golden
So I keep noticing litter in my home directory while running the smoker. It looks like either temp files or default locations for things. I consider that bad behavior for tests. I'm considering making my home directory read-only and then smoking all of CPAN again to see what fails its tests.

Re: Idea for a smoke setup: read-only home directory

2008-06-17 Thread Andy Armstrong
On 18 Jun 2008, at 02:22, David Golden wrote: So I keep noticing litter in my home directory while running the smoker. It looks like either temp files or default locations for things. I consider that bad behavior for tests. I'm considering making my home directory read-only and then smoking

Re: Idea for a smoke setup: read-only home directory

2008-06-17 Thread David Golden
On Tue, Jun 17, 2008 at 9:26 PM, Andy Armstrong [EMAIL PROTECTED] wrote: How about a user who's home directory is a unionfs mount with the basic file structure R/O and a disposable R/W layer on top of it? It's not the clutter that concerns me -- it's that I don't think testers should be writing

Re: Idea for a smoke setup: read-only home directory

2008-06-17 Thread Andy Armstrong
On 18 Jun 2008, at 02:28, David Golden wrote: On Tue, Jun 17, 2008 at 9:26 PM, Andy Armstrong [EMAIL PROTECTED] wrote: How about a user who's home directory is a unionfs mount with the basic file structure R/O and a disposable R/W layer on top of it? s/who's/whose/ It's not the clutter

Re: Idea for a smoke setup: read-only home directory

2008-06-17 Thread David Golden
On Tue, Jun 17, 2008 at 9:32 PM, Andy Armstrong [EMAIL PROTECTED] wrote: Ah yes - in that case I agree. Out of interest what kind of stuff are people dumping there? * mail-audit.log -- that appears to be from Mail::Audit. * abc -- containing the string hello * cookies.txt -- containing the

Re: Idea for a smoke setup: read-only home directory

2008-06-17 Thread Elliot Shank
David Golden wrote: So I keep noticing litter in my home directory while running the smoker. It looks like either temp files or default locations for things. I consider that bad behavior for tests. I'm considering making my home directory read-only and then smoking all of CPAN again to see