Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Windows does not like me - why?

0 views
Skip to first unread message

Ingo Lantschner

unread,
Oct 29, 2009, 6:56:50 AM10/29/09
to cpan-teste...@perl.org
Hi all,
I have 2 modules in CPAN, which get tested since several weeks.
http://matrix.cpantesters.org/?author=lanti

For some reason they do not get tested on specific operating systems
f.e. Windows. Is there some technical reason for this (or is this just a
question of sympathy - which would be reciprocal in some cases :-) )?

Cheers - Ingo

David Golden

unread,
Oct 29, 2009, 7:16:38 AM10/29/09
to Ingo Lantschner, cpan-teste...@perl.org

My quick test of Backup::SingleFile fails because Test::File fails.
Because a prerequisite failed, no reports about Backup::SingleFile are
sent.

You can check your dependency tree on different operating systems here:

http://deps.cpantesters.org/?module=Backup%3A%3ASingleFile&perl=any+version&os=Windows+(Win32)

-- David

M W487

unread,
Oct 29, 2009, 9:06:16 AM10/29/09
to David Golden, Ingo Lantschner, cpan-teste...@perl.org
> http://deps.cpantesters.org/?module=Backup%3A%3ASingleFile&perl=any+version&os=Windows+(Win32)

27. Test::File No results
28. Test::Manifest No results

I wonder why Test::Manifest has no test results?

David Golden

unread,
Oct 29, 2009, 9:24:00 AM10/29/09
to M W487, Ingo Lantschner, cpan-teste...@perl.org

I don't know.

The sad thing about Test::Files is that a bug was opened three
*years* ago, a patch was giving two and a half years ago, and yet it's
still broken.

http://rt.cpan.org/Public/Bug/Display.html?id=21933


-- David

M W487

unread,
Oct 29, 2009, 9:40:25 AM10/29/09
to David Golden, Ingo Lantschner, cpan-teste...@perl.org
Hum. Can anyone provide a link listing what CPAN modules use
"Test::Manifest" in their test suite? Maybe that and Test::Files
should be avoided...

David Golden

unread,
Oct 29, 2009, 10:24:14 AM10/29/09
to M W487, Ingo Lantschner, cpan-teste...@perl.org
CPANTS should have a list of modules that use them.

David

M W487

unread,
Oct 29, 2009, 11:02:15 AM10/29/09
to David Golden, Ingo Lantschner, cpan-teste...@perl.org
Whoops! I now note a difference between

Test::Files

and

Test::File

and note from CPANTS very sparse information on both:

Test-Files-0.14 (PHILCROW)

Used by 4 other dists
used by Kwalitee PauseID
App-MaMGal 100.00% PORRIDGE
Bigtop 130.44% PHILCROW
HTML-Encapsulate 121.74% NPW
Maildir-Lite 104.35% DEIAN

and

Test-File-1.29 (BDFOY)
Used by 0 other dists
used by Kwalitee PauseID
none found

David Cantrell

unread,
Oct 29, 2009, 11:30:22 AM10/29/09
to cpan-teste...@perl.org

It doesn't. It has six passes.

--
David Cantrell | Official London Perl Mongers Bad Influence

Your call is important to me. To see if it's important to
you I'm going to make you wait on hold for five minutes.
All calls are recorded for blackmail and amusement purposes.

David Cantrell

unread,
Oct 29, 2009, 11:45:17 AM10/29/09
to cpan-teste...@perl.org
On Thu, Oct 29, 2009 at 09:40:25AM -0400, M W487 wrote:
> Hum. Can anyone provide a link listing what CPAN modules use
> "Test::Manifest" in their test suite? Maybe that and Test::Files
> should be avoided...

CPANTS is meant to be able to tell you that, but appears to be horribly
out-of-date.

It should be fairly easy to patch CPANdeps to figure it out, but I lack
tuits. Have at it:
http://www.cantrell.org.uk/cgit/cgit.cgi/cpandeps/

What may not be obvious from the code is that you can rely on all the
META.yml files being cached, as I now do that as a batch job (see
getfiles.sh and populate-cache.pl). There are still some mathoms in
lib/CPANdeps.pm for fetching them, but you can ignore that.

The patch should probably go in populate-cache.pl.

--
David Cantrell | top google result for "internet beard fetish club"

Eye have a spelling chequer / It came with my pea sea
It planely marques four my revue / Miss Steaks eye kin knot sea.
Eye strike a quay and type a word / And weight for it to say
Weather eye am wrong oar write / It shows me strait a weigh.

Ingo Lantschner

unread,
Oct 29, 2009, 1:10:59 PM10/29/09
to cpan-teste...@perl.org
David Golden schrieb:

> My quick test of Backup::SingleFile fails because Test::File fails.
> Because a prerequisite failed, no reports about Backup::SingleFile are
> sent.
>
> You can check your dependency tree on different operating systems here:
>
> http://deps.cpantesters.org/?module=Backup%3A%3ASingleFile&perl=any+version&os=Windows+(Win32)

ok, thanks for this hint. I looked into Test::File and saw, that it
always fails on Win32. Looking in one of the reports I found lines like
this one:

[...]
ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks!
[...]
Failed test 'Is multi user'
[...]

Since my Windows-knowldege is quite outdated, I am not sure but I guess
that the test from Test::File do not consider Windows to be a multi-user
system (which is not true, for Windows NT 3.x and later). Smylinks may
still not be supported by Windows and its NTFS. So probably the best
would be to file a bug against Test::File or to remove Test::File from
my module (which means that I have to remove or rewrite several test).
Any other/better idea?

Thanks, Ingo

Jan Dubois

unread,
Oct 29, 2009, 1:21:08 PM10/29/09
to Ingo Lantschner, cpan-teste...@perl.org
On Thu, 29 Oct 2009, Ingo Lantschner wrote:
> Since my Windows-knowldege is quite outdated, I am not sure but I guess
> that the test from Test::File do not consider Windows to be a multi-user
> system (which is not true, for Windows NT 3.x and later). Smylinks may
> still not be supported by Windows and its NTFS. So probably the best

Symlinks are only supported by Windows Vista and later (2008 Server, 7),
and then only on supporting filesystems (NTFS).

> would be to file a bug against Test::File or to remove Test::File from
> my module (which means that I have to remove or rewrite several test).

You could do *both*. :)

Cheers,
-Jan

0 new messages