Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 300699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:56:17+00:00 2026-05-12T06:56:17+00:00

I have an app that I pack into binary form using PerlApp for distribution.

  • 0

I have an app that I pack into “binary” form using PerlApp for distribution. Since my clients want a simple install for their Win32 systems, this works very nicely.

Now a client has decided that they need to run all unit tests, like in a standard install. However, they still will not install a normal Perl.

So, I find myself in need of a way to package my unit tests for operation on my client’s systems.

My first thought was that I could pack up prove in one file and pack each of my tests separately. Then ship a zip file with the appropriate structure.

A bit of research showed that Test::Harness::Straps invokes perl from the command line.

Is there an existing tool that helps with this process?

Perhaps I could use PAR::Packer‘s parl tool to handle invocation of my test scripts.

I’m interested in thoughts on how to apply either PAR or PerlApp, as well as any thoughts on how to approach overriding Test::Harness and friends.

Thanks.

Update: I don’t have my heart set on PAR or PerlApp. Those are just the tools I am familiar with. If you have an idea or a solution that requires a different packager (such as Cava Packager), I would love to hear about it.

Update 2: tsee pointed out a great new feature in PAR that gets me close. Are there any TAP experts out there that can supply some ideas or pointers on where to look in the new Test::Harness distribution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:56:17+00:00Added an answer on May 12, 2026 at 6:56 am

    I’m probably not breaking big news if I tell you that PAR (and probably also perlapp) aren’t meant to package the whole test suite and plethora of CPAN-module build byproducts. They’re intended to package stand-alone applications or binary JAR-like module libraries.

    This being said, you can add arbitrary files to a PAR archive (both to .par libraries and stand-alone .exe’s) using pp’s -a switch. In case of the stand-alone executable, the contents will be extracted to $ENV{PAR_TEMP}.”/inc” at run-time.

    That leaves you with the problem of reusing the PAR-packaged executable to run the test harness (and letting that run your executable as a “perl”). Now, I have no ready and done solution for that, but I’ve recently worked on making PAR-packaged executables re-useable as more-or-less general purpose perl interpreters. Two gotchas before I explain how you can use that:

    • Your application isn’t going to magically be called “perl” and add itself to your $PATH.
    • The “reuse” of the application as a general purpose perl requires special options and does not currently support the normal perl options (those in perlrun). It can simply run an external perl script of your choice.

    Unfortunately, the latter problem is what may kill this approach for you. Support for perl command line options is something I’ve been thinking about, but won’t implement any time soon.

    Here’s the recipe how you get PAR with “reusable exe” support:

    • Install the newest version of PAR from CPAN.
    • Install the newest, developer version of PAR::Packer from CPAN (0.992_02 or 03).
    • Add the “–reusable” option to your pp command line.
    • Run your executable with the following options to run an external script “foo.pl”:

      ./myapp –par-options –reuse foo.pl FOO-PL-OPTIONS-HERE

    Unfortunately, how you’re going to teach Test::Harness that “./myapp –par-options –reuse” is a perl interpreter is beyond me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 216k
  • Answers 216k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Unfortunately you can't make all of the people happy all… May 12, 2026 at 11:15 pm
  • Editorial Team
    Editorial Team added an answer I think that this sort of flexibility is an advantage… May 12, 2026 at 11:14 pm
  • Editorial Team
    Editorial Team added an answer You can use opendir() repeatedly. Just keep your DIR *s… May 12, 2026 at 11:14 pm

Related Questions

I have a Tix.ComboBox with an editable text field. How do I force the
Trying to parse an HTML document and extract some elements (any links to text
This is my attempt to cut through extraneous issues raised Why don’t my system
I have an image in my xaml as so: <Image Name=TotalFloors Width=98 Source=../Images/FloorOne.png Margin=0

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.