Ticket #45010: mp-test.diff

File mp-test.diff, 782 bytes (added by kurthindenburg (Kurt Hindenburg), 9 years ago)
  • macports1.0/macports.tcl

     
    20092009        macports::push_log $mport
    20102010    }
    20112011
     2012    if {$target eq "test"} {
     2013        # Before continuing with dependents, verify test.run is present and yes
     2014        set test_valid [catch {_mportkey $mport test.run} res]
     2015        if {$test_valid != 0 || $res ne "yes"} {
     2016            return -code error [format [msgcat::mc "%s has no tests turned on. see 'test.run' in portfile(7)"] $portname]
     2017        }
     2018    }
     2019
    20122020    # Use _target_needs_deps as a proxy for whether we're going to
    20132021    # build and will therefore need to check Xcode version and
    20142022    # supported_archs.