silnrsi / font-ttf-scripts

Font::TTF::Scripts perl module
Artistic License 2.0
19 stars 7 forks source link

allow system installed scripts to be tested #4

Closed glasseyes closed 8 years ago

glasseyes commented 8 years ago

if you aren't running the tests from the source directory then this will use scripts installed in /usr/bin

This is useful to check that it has been installed properly.

glasseyes commented 8 years ago

Ubuntu and Debian have a thing called autopkgtest that runs package tests on a temporary system that has the package installed. For perl packages it does this by copying the t directory (without the rest of the source) to a temp dir and then runs the tests from there.

bobh0303 commented 8 years ago

That seems cool. Presumably it copies the t folder and all its subfolders.

And do the scripts always get installed to /usr/bin?

glasseyes commented 8 years ago

On Sat, Nov 14, 2015 at 2:52 AM, Bob Hallissy notifications@github.com wrote:

That seems cool. Presumably it copies the t folder and all its subfolders.

Thanks. Indeed it does.

And do the scripts always get installed to /usr/bin?

No, not always but it is the standard location for packaging systems to install it. The default is probably /usr/local/bin. Another way to do it would be to call scripts without specifying the path then whichever comes first in PATH will be executed. The downside with that is that if you have multiple versions installed you won't necessarily know what is being called.