Tests fail on Strawberry Perl 5.24.1.1 (64bit) Windows 10 due to missing rm/diff #60

Open
jfroebe opened this Issue Apr 5, 2017 · 2 comments

Comments

Projects
None yet
3 participants

jfroebe commented Apr 5, 2017

Platform: Strawberry Perl 5.24.1.1 (64bit) Windows 10
Inline::C version: 0.76

Test t/parse-pegex.t is looking for platform specific rm and diff. These should be replaced with perl implementations.

inline-c_testfailures.txt

nanis commented May 9, 2017 edited

Same issue with Visual Studio 2013 compiled perl 5.24.1 on Windows 10. At the very least, tests should be skipped if external programs are not found:

t\parse-pegex.t .......... 9/? 'diff' is not recognized as an internal or external command,
operable program or batch file.
'diff' is not recognized as an internal or external command,
....
diff' is not recognized as an internal or external command,
operable program or batch file.

Workaround

Visual Studio optionally offers to install Git which installs some useful utilities (including perl) in c:\Program Files\git\usr\bin which is not usually added to %PATH%. Appending that directory to the path:

path=%path%;"c:\Program Files\git\usr\bin"

results in

$ prove -vb t\parse-pegex.t
Test Summary Report
-------------------
t\parse-pegex.t (Wstat: 0 Tests: 24 Failed: 0)
  TODO passed:   4, 7-9
Files=1, Tests=24,  3 wallclock secs ( 0.11 usr +  0.02 sys =  0.13 CPU)
Result: PASS
Collaborator

perlpunk commented May 19, 2017

thanks, i created PR #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment