Forcing the test phase to be run by default in a Portfile?

Ryan Schmidt ryandesign at macports.org
Sun Mar 30 22:40:10 PDT 2008


On Mar 30, 2008, at 22:38, Frederick Akalin wrote:

> I want to have the test phase run automatically for a particular port
>  because it is important to guarantee correctness for that port (in
>  this case, I'm working with gmp).  I couldn't find a switch to do it;
>  test.run only enables the test phase and does not have it run.  Is
>  there an easy way to do this?

I'm not sure. In the absence of such an option, consider

sudo port -d test foo && sudo port clean --work foo && sudo port  
install foo

or

sudo port -d test foo && sudo port clean --work foo && sudo port  
upgrade foo



More information about the macports-dev mailing list