Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re-Test a CPAN module

by saintex (Scribe)
on Mar 11, 2011 at 18:08 UTC ( [id://892705]=perlquestion: print w/replies, xml ) Need Help??

saintex has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,
I would like to Test (and install) a CPAN module.
In my case:
JavaScript

The installation fails, but it is not this one the point.

I would like to re-test the installation after some changes, but I can't.

If I re-try the test, with:

test JavaScript
I have:
Running test for module 'JavaScript' Running make for C/CL/CLAESJAC/JavaScript-1.16.tar.gz Has already been unwrapped into directory /home/saintex/.cpan/build/ +JavaScript-1.16-UlIU_w No 'Makefile' created , won't make Running make test Make had some problems, won't test

And there is no way to re-test (neither with "clean JavaScipt").

So I have to delete the module manually, and re-install.
Is there any way to re-test, without delete the module from build directory?

Thank you for your answers!

Replies are listed 'Best First'.
Re: Re-Test a CPAN module
by Corion (Patriarch) on Mar 11, 2011 at 18:16 UTC

    Do the build manually then:

    cpan> look JavaScript > perl Makefile.PL > make test > make install # well, only if "make test" was to your satisfaction
      thank you for your answer.
      I will try in this way on Monday.
      Please, let me understand how CPAN extactly works.
      If I try:
      get Module

      My module is downloaded in some directory.
      where?
      In my case is: /home/myUser/.cpan/build

      Is there any way to download the module in a different directory? Then:
      test module
      It do the tests.
      Where are located the test?
      I think in the directory .cpan/build/module/t


      finally:
      install module.
      The module is installed in Perl directory, which maybe different from CPAN downloaded module.

      Also here: is there any way to install in a different directory?

      Is it correct?

      Finally: if I want to do some changes to Makefile.PL, in order to pass the tests suite,
      is there some way to do it in a "clean" mode?

      Please, if you have that possibility, can you go into these aspects thoroughly?

      Thank you very much for your answer.

        If you don't want to use CPAN, you can just download the packages from CPAN. Then unpack the packages, do your modifications and tests, and make install.

Re: Re-Test a CPAN module
by Khen1950fx (Canon) on Mar 12, 2011 at 01:11 UTC
      Thank you for suggestion,
      I have already tried Javascipt::SpiderMonkey and it works fine.
      But I need the other module (it is a dependency required from another module too).
Re: Re-Test a CPAN module
by Anonymous Monk on Mar 11, 2011 at 18:23 UTC
    Try using force test ...
      in this way, it doesn't work, because I have:
      Running test for module 'JavaScript' Running make for C/CL/CLAESJAC/JavaScript-1.16.tar.gz Has already been unwrapped into directory /home/saintex/.cpan/build/ +JavaScript-1.16-UlIU_w No 'Makefile' created , won't make Running make test Make had some problems, won't test

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://892705]
Approved by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-20 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found