ajeet@perl has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks

Asking you a very basic question, because i am little bit confused...

While installing any perl modules from CPAN, we go through following phases

perl Makefile.PL make make test make install

Now, My question is that can we ignore make test phase while installation, or it do something which is required for installation...??

Replies are listed 'Best First'.
Re: Ommiting make test while installation perl modules
by jethro (Monsignor) on Apr 13, 2010 at 09:03 UTC
    You could ignore make test. It would be very bad module design if it did anything else than testing the installation.

    But don't blame anyone but yourself if you later waste hours to find the problem in a broken installation because one of the modules didn't install correctly.

      Yeah...you are right..Thank You :)
Re: Ommiting make test while installation perl modules
by marto (Cardinal) on Apr 13, 2010 at 09:04 UTC
Re: Ommiting make test while installation perl modules
by syphilis (Archbishop) on Apr 13, 2010 at 09:06 UTC
    You can skip make test if you want.

    Cheers,
    Rob
      Thanks...
Re: Ommiting make test while installation perl modules
by pemungkah (Priest) on Apr 14, 2010 at 23:42 UTC
    The 'make test', as others have noted, simply makes sure that the module functions in your environment (for differing values of 'functions', depending on how good the test suite is).

    Many Linux distributions provide Perl module packages that simply copy the modules into place without doing 'make test'; however, generally speaking, the package builder ran the tests on his or her build system. This is a little less safe than building and installing them yourself, but can save a heap of time.