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

2008-07-07 Thread David Cantrell
Barbie wrote: 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

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

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 win

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

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 -- an

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 Jul

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 periodica

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 t

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 environe

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

2008-06-18 Thread David Golden
On Wed, Jun 18, 2008 at 9:34 AM, David Cantrell <[EMAIL PROTECTED]> wrote: > FWIW, instead of mocking File::HomeDir, my approach would be to wrap all > uses of it in a tiny function: > > sub _gethomedir { return File::HomeDir->my_home(); } > > and then when testing my module that uses it, do this

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 $INC{F

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 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 periodically clean out seve

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 cons

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

2008-06-18 Thread David Golden
On Wed, Jun 18, 2008 at 1:01 AM, Andreas J. Koenig <[EMAIL PROTECTED]> wrote: >> On Tue, 17 Jun 2008 23:23:00 -0400, "David Golden" <[EMAIL PROTECTED]> >> said: > > > Though I will say that from experience, mocking a home directory isn't > > the easiest to do and always get right. > > ad

Idea for a smoke setup: read-only home directory

2008-06-18 Thread Serguei Trouchelle
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

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

2008-06-17 Thread Andreas J. Koenig
> On Tue, 17 Jun 2008 23:23:00 -0400, "David Golden" <[EMAIL PROTECTED]> > said: > Though I will say that from experience, mocking a home directory isn't > the easiest to do and always get right. adduser ? -- andreas

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

2008-06-17 Thread David Golden
On Tue, Jun 17, 2008 at 10:32 PM, Elliot Shank <[EMAIL PROTECTED]> wrote: > Please do. Forget "mere" testing, I don't want that happening with modules > I install for actual use. Well, some default to that. Or at least to creating .foo config files or directories. But still, I don't think that

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 w

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" -- contai

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: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 writ

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

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.