mypearl has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am working for creating perl BUILD on windows7 and I am successful in running the build for single module. I followed following steps:
1) I used module-starter to create new module. It has lib/newmodule.pm and few testing .t scripts in t directory.
2) Then I ran perl Build.pl, perl Build, perl Build test and then perl Build dist. Hence I get a archived file in the end as an output. I used Module::Build in Build.pl
3) Here the module-starter gives you sample code with test::more module in t directory.
So this process I have understood but I am not completely clear on the build concept. I have few doubts:
My development environment is like this:
C:/perl ---Activestate perl 5.14.2
C:/development ---main folder for perl code
C:/development/project_name/bin/*.pl ---PL files (single PL or PL which calls functions from PM files in lib directory mentioned below)
C:/development/project_name/lib/*.pm ---PM files (custom PM having functions being called by PL files mentioned above in bin directory)
Q1.) Is this Directory structure fine?
Q2.) Where should I keep the build scripts in above structure (if above structure is fine)?
Q3.) Will there be a single build script for a complete development folder OR there should be multiple build scripts for each PL/PM file.
Q4.) Is Module::Build sufficient to create the Build for the whole structure including PL,PM files?
Q5.) What should be the structure of Build code? Should it be the same which Module-starter gives you. If yes, then what should be the structure of "t" directory in it? Please guide me explicitly how should be the build directory and which files should be there
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PERL build using unit test and static analysis
by Anonymous Monk on May 24, 2012 at 07:36 UTC | |
|
Re: PERL build using unit test and static analysis
by eyepopslikeamosquito (Archbishop) on May 24, 2012 at 11:08 UTC | |
|
Re: PERL build using unit test and static analysis
by choroba (Cardinal) on May 24, 2012 at 11:53 UTC | |
by Anonymous Monk on May 24, 2012 at 11:58 UTC |