[MacPorts] #45010: RFE: stop "port test" immediately if no test phase defined

MacPorts noreply at macports.org
Sun Sep 6 09:32:05 PDT 2015


#45010: RFE: stop "port test" immediately if no test phase defined
--------------------------+--------------------------------
  Reporter:  dstrubbe@…   |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:  2.3.1
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------------------

Comment (by cal@…):

 Replying to [comment:3 khindenburg@…]:
 > I agree.  It is trivial to check for 'target equal test' in
 macports1.0/macports.tcl before or after installing dependencies.
 However, I'm at a lost of how to get the "test.run" option from the
 portfile.  If someone can point me in the correct direction, I'll give
 this a shot.

 I agree with jmr that the test should be in macports1.0/macports.tcl. To
 get the value of `test.run` from the Portfile context, you can use
 `$workername eval [list option test.run]`. In theory, you could also use
 the _mportkey helper to get variables from the Portfile context, but
 that's currently broken with non-trivial variable names:

 {{{
 % set key test.run
 test.run
 % $workername eval [list set $key]
 yes
 % _mportkey $mport $key
 can't read "test": no such variable
 %
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/45010#comment:6>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list