[41523] trunk/base/tests/test

pguyot at kallisys.net pguyot at kallisys.net
Wed Nov 5 05:35:28 PST 2008


Revision: 41523
          http://trac.macports.org/changeset/41523
Author:   pguyot at kallisys.net
Date:     2008-11-05 05:35:27 -0800 (Wed, 05 Nov 2008)
Log Message:
-----------
Add a test that was sleeping on my disk, and that illustrates a buggy behaviour with variants

Added Paths:
-----------
    trunk/base/tests/test/variants/
    trunk/base/tests/test/variants/Portfile
    trunk/base/tests/test/variants/master

Added: trunk/base/tests/test/variants/Portfile
===================================================================
--- trunk/base/tests/test/variants/Portfile	                        (rev 0)
+++ trunk/base/tests/test/variants/Portfile	2008-11-05 13:35:27 UTC (rev 41523)
@@ -0,0 +1,42 @@
+# $Id$
+
+PortSystem 1.0
+name		variants
+version		1
+categories	test
+maintainers	pguyot at kallisys.net
+description	Test port for variants logic
+homepage	http://www.macports.org/
+platforms	darwin
+
+long_description ${description}
+
+fetch 		{}
+checksum	{}
+extract		{}
+configure	{}
+build		{}
+destroot	{
+	system "touch ${destroot}${prefix}/lib/${name}"
+}
+
+test {
+	# test is actually installing this.
+}
+
+use_configure	no
+
+# We override universal variant.
+variant universal {
+	puts "Universal Variant"
+}
+
+# We define the utopia platform twice
+platform utopia {
+	puts "Utopia platform -- 1"
+}
+platform utopia {
+	puts "Utopia platform -- 2"
+}
+
+default_variants	+utopia


Property changes on: trunk/base/tests/test/variants/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/base/tests/test/variants/master
===================================================================
--- trunk/base/tests/test/variants/master	                        (rev 0)
+++ trunk/base/tests/test/variants/master	2008-11-05 13:35:27 UTC (rev 41523)
@@ -0,0 +1,8 @@
+Utopia platform -- 1
+Utopia platform -- 2
+--->  Fetching variants
+--->  Verifying checksum(s) for variants
+--->  Extracting variants
+--->  Configuring variants
+--->  Building variants
+--->  Testing variants
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081105/eb8cfa0d/attachment.html>


More information about the macports-changes mailing list