I've written a Perl module which includes a Perl script to exercise the packaged functionality. The module has unit tests, some of which test the script: execute it via the "system" call and compare outputs to pre-recorded data. On my Linux machine, all the tests pass, so I uploaded the module to CPAN.
Unfortunately, when CPAN tests my module some more, its unit test often fail - it looks like they don't work anywhere but on linux, and while the specific failure reports aren't exactly the same, all agree that it's the script which won't run. So, what should I do with it? I can't take the script out - it's really necessary for the module to be useful. I suppose I don't have to test it, but that's a cop-out... Surely lots of people are including scripts with their Perl modules - is there some special way to package them?