Changeset 111306


Ignore:
Timestamp:
Sep 18, 2013, 8:32:32 PM (7 years ago)
Author:
marius@…
Message:

package1.0: added ports tree update before running tests from makefile target

Location:
branches/gsoc13-tests/src/package1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc13-tests/src/package1.0/Makefile

    r110590 r111306  
    1818
    1919test::
     20ifeq ($(shell id -u),0)
     21        $(prefix)/bin/port sync
     22endif
    2023        $(TCLSH) ./tests/test.tcl -nocolor
    2124
  • branches/gsoc13-tests/src/package1.0/tests/portpkg.test

    r111302 r111306  
    2424    Port pkg main unit test.
    2525} -constraints {
    26         root
     26    root
    2727} -setup {
    2828    global os.platform os.major os.arch epoch destpath package.destpath configure.build_arch
     
    3838    set res_dir $destpath/fondu-1_060102_1.mpkg/Contents/Resources
    3939
    40         set mport [mportopen file://.]
     40    set mport [mportopen file://.]
    4141    set workername [ditem_key $mport workername]
    4242
    4343} -body {
    4444    if {[$workername eval eval_targets pkg] != 0} {
    45                 return "FAIL: cannot create pkg"
     45        return "FAIL: cannot create pkg. Maybe should update ports tree ?"
    4646    }
    4747
    4848    if {![file exists $pwd/work/fondu-060102_1.pkg]} {
    49                 return "FAIL: missing pkg file"
     49        return "FAIL: missing pkg file"
    5050    }
    5151
     
    5353
    5454} -cleanup {
    55         mportclose $mport
     55    mportclose $mport
    5656    file delete -force $destpath
    57         file delete -force $pwd/work
    58        
     57    file delete -force $pwd/work
     58   
    5959} -result "Package pkg successful."
    6060
Note: See TracChangeset for help on using the changeset viewer.