in reply to Post installation tests for a wrapper to a CLI utility?
I would set up as many VMs as possible, each one set up to continuously test the distribution against a different version of the CLI automatically. It's even easier if you can install multiple versions on one machine. You usually can't support all versions of a binary of course, but if you have decent coverage across a reasonable number of versions, things should go well.
In your Makefile.PL (or alternate build system setup file), you can do a check and just die() if the version of the CLI on the client system does not conform to one of the versions that your tests pass against. If the CLI has a --version flag for instance, this is trivially easy to support.
By the sounds of it, the CLI is something installed by the client and used in production, so I would loudly advise against (ie. don't do it!) copying in the new CLI onto a system. Instead, advise the installer of the distribution when you stop the install process that their version of the CLI is/can not be supported, and they need to upgrade, and display the version options they have.
Here's an example where I check for a binary (perlbrew or berrybrew depending on OS-type). I don't exit, I just warn that we'll install anyways, but the Perl "binaries" I'm about to install to use the distribution's modules simply won't work (because they won't work period and it'll be clear; this isn't a situation where it may partly work, but other things could cause detrimental issues. If it were, I'd hard exit).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Post installation tests for a wrapper to a CLI utility?
by nysus (Parson) on Jan 31, 2018 at 07:09 UTC | |
by marto (Cardinal) on Jan 31, 2018 at 09:36 UTC | |
by soonix (Chancellor) on Jan 31, 2018 at 10:47 UTC | |
by VinsWorldcom (Prior) on Jan 31, 2018 at 13:06 UTC | |
by Marshall (Canon) on Jan 31, 2018 at 20:48 UTC |