[111075] branches/gsoc13-tests/src/port1.0/tests

Clemens Lang cal at macports.org
Sat Sep 14 04:00:22 PDT 2013


Hi,

On Sat, Sep 14, 2013 at 12:26:16AM -0700, marius at macports.org wrote:
> Revision: 111075
>           https://trac.macports.org/changeset/111075
> Author:   marius at macports.org
> Date:     2013-09-14 00:26:16 -0700 (Sat, 14 Sep 2013)
> Log Message:
> -----------
> port1.0: added porttest.test file and test target in Portfile
> 
> Modified Paths:
> --------------
>     branches/gsoc13-tests/src/port1.0/tests/Portfile
> 
> Added Paths:
> -----------
>     branches/gsoc13-tests/src/port1.0/tests/porttest.tcl
> 
> Modified: branches/gsoc13-tests/src/port1.0/tests/Portfile
> ===================================================================
> --- branches/gsoc13-tests/src/port1.0/tests/Portfile	2013-09-14 07:19:03 UTC (rev 111074)
> +++ branches/gsoc13-tests/src/port1.0/tests/Portfile	2013-09-14 07:26:16 UTC (rev 111075)
> @@ -37,4 +37,6 @@
>      eval xinstall -m 644 [glob ${worksrcpath}/*.1] ${destroot}${prefix}/share/man/man1/
>  }
>  
> -test.run		yes
> +test {
> +    file delete -force $worksrcpath/README
> +}
> 
> Added: branches/gsoc13-tests/src/port1.0/tests/porttest.tcl
> ===================================================================
> --- branches/gsoc13-tests/src/port1.0/tests/porttest.tcl	                        (rev 0)
> +++ branches/gsoc13-tests/src/port1.0/tests/porttest.tcl	2013-09-14 07:26:16 UTC (rev 111075)
> @@ -0,0 +1,72 @@
> +package require tcltest 2
> +namespace import tcltest::*
> +
> +set pwd [file normalize $argv0]
> +set pwd [eval file join {*}[lrange [file split $pwd] 0 end-1]]
> +
> +#source ../../macports1.0/macports_fastload.tcl

Don't forget this file also needs to source the correct
macports_fastload.tcl file.

-- 
Clemens Lang



More information about the macports-dev mailing list