Running PHP tests on Mac OS X

Trevor Johns trevor at tjohns.net
Fri Dec 28 04:21:36 PST 2007


Hi everyone,
Sorry if this is explained elsewhere, but I'm having difficulty  
getting the test suite for the PHP OpenID library to run.

I'm running Mac OS X 10.5 and have PHPUnit 1.3.2 installed. When I try  
to execute admin/runtests, I get the following error:

     readlink: illegal option -- -
     usage: readlink [-n] [file ...]

Since this is used to determine the location of the other test scripts  
via $HERE, this is predictably followed by several 'no such file or  
directory' errors.

If I edit runtests so that $HERE is populated with $PWD instead of  
trying to determine the path via readlink, the PHPUnit tests run but  
the formatting tests (longlines, nobadbraces, nobadcase, opentag, and  
docblocks) fail with this error:

     Running test (...)
     xargs: illegal option -- l
     usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [- 
J replstr]
                  [-L number] [-n number [-x]] [-P maxprocs] [-s size]
                  [utility [argument ...]]

Am I missing something?

-- 
Trevor Johns
http://tjohns.net




More information about the Dev mailing list