Perl5-Alien / Alien-Base

Base classes for Alien:: modules (deprecated, see Alien-Build)
Other
35 stars 19 forks source link

Windows and DESTDIR #66

Closed plicease closed 9 years ago

plicease commented 10 years ago

On windows:

N:\home\ollisg\dev\Alien-Base>prove -lv t\builder.t
t\builder.t ..
    # Subtest: default temp and share
    ok 1 - An object of class 'Alien::Base::ModuleBuild' isa 'Alien::Base::ModuleBuild'
    ok 2 - An object of class 'Alien::Base::ModuleBuild' isa 'Module::Build'
    ok 3 - Creates _alien dir
    ok 4 - Creates _share dir
Cleaning up build files
    ok 5 - Removes _alien dir
    ok 6 - Removes _share dir
    1..6
ok 1 - default temp and share
    # Subtest: override temp and share
    ok 1 - Creates _test_temp dir
    ok 2 - Creates _test_temp dir
Cleaning up build files
    ok 3 - Removes _test_temp dir
    ok 4 - Removes _test_share dir
    1..4
ok 2 - override temp and share
    # Subtest: destdir
Building My-Test
Downloading File: foo.tar.gz ... Done
Extracting Archive ... Done
Building library ... % mkdir bin
% touch bin/foo
Done
Library looks like it installed, but no version was determined at t\builder.t line 113.
    ok 1 - destdir accessor
Installing C:\Users\ollisg\AppData\Local\Temp\ckLzHWa0XG\home\ollisg\perl5\strawberry\x86\5.18.2\lib\perl5\auto\share\dist\My-Test\README
Installing C:\Users\ollisg\AppData\Local\Temp\ckLzHWa0XG\home\ollisg\perl5\strawberry\x86\5.18.2\lib\perl5\My\Test\ConfigData.pm
Failed to change directory to 'C:\Users\ollisg\AppData\Local\Temp\ckLzHWa0XG\N:\home\ollisg\perl5\strawberry\x86\5.18.2\lib\perl5\auto\share\dist\My-Test': No such file or directory at N:\home\ollisg\dev\Alien-B
ase\lib/Alien/Base/ModuleBuild.pm line 333.
    # Child (destdir) exited without calling finalize()

not ok 3 - destdir
#   Failed test 'destdir'
#   at N:/home/ollisg/perl5/strawberry/x86/5.18.2/lib/perl5/Test/Builder.pm line 276.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 3.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/3 subtests

Test Summary Report
-------------------
t\builder.t (Wstat: 512 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=1, Tests=3,  2 wallclock secs ( 0.01 usr +  0.03 sys =  0.05 CPU)
Result: FAIL
plicease commented 10 years ago

DESTDIR didn't work on MSWin32 before, so I don't feel this should be a blocker for a production release. Also: I think most people will be installing via cpan on Strawberry Perl for MSWin32. But would like to fix this soonish.

plicease commented 10 years ago

Should also check how this is handled in MB and make sure that it is supported on MSWin32.

edit s/AB/MB/

plicease commented 9 years ago

DESTDIR does not appear to work with MB so the I think the appropriate thing to do is to skip this test on MSWin32.