[38756] trunk/base/src/port1.0/resources/group/tests/ruby-1.0.tcl

afb at macports.org afb at macports.org
Wed Jul 30 03:13:24 PDT 2008


Revision: 38756
          http://trac.macosforge.org/projects/macports/changeset/38756
Author:   afb at macports.org
Date:     2008-07-30 03:13:23 -0700 (Wed, 30 Jul 2008)
Log Message:
-----------
unbreak test case when ruby19 is not installed or not running leopard

Modified Paths:
--------------
    trunk/base/src/port1.0/resources/group/tests/ruby-1.0.tcl

Modified: trunk/base/src/port1.0/resources/group/tests/ruby-1.0.tcl
===================================================================
--- trunk/base/src/port1.0/resources/group/tests/ruby-1.0.tcl	2008-07-30 09:45:20 UTC (rev 38755)
+++ trunk/base/src/port1.0/resources/group/tests/ruby-1.0.tcl	2008-07-30 10:13:23 UTC (rev 38756)
@@ -63,6 +63,7 @@
 
 		ruby.setup {test_module tmod} 9.9 setup.rb {README INSTALL}
 
+		if {![file exists ${ruby.bin}]} { return }
 		if {"1.8" ne ${ruby.version}} { error "ruby.version failed: ${ruby.version}" }
 		if {"test_module" ne ${ruby.module}} { error "ruby.module failed" }
 		if {"tmod" ne ${ruby.project}} { error "ruby.project failed" }
@@ -100,6 +101,7 @@
 		ruby.setup {test_module tmod} 9.9 setup.rb {README INSTALL} custom ruby19
 
 		# changed prefix
+		if {![file exists ${ruby.bin}]} { return }
 		if {![string equal "1.9.0" ${ruby.version}]} { error "ruby.version failed: '${ruby.version}'" }
 		if {![string equal "rb19-test_module" ${name.found}]} { error "drived name failed: ${name.found}" }
 
@@ -129,9 +131,9 @@
 		if {"${prefix}/bin/rdoc" ne ${ruby.rdoc}} { error "variable ruby.rdoc missing" }
 		if {"${prefix}/bin/gem" ne ${ruby.gem}} { error "variable ruby.gem missing" }
 		if {"1.8" ne ${ruby.version}} { error "variable ruby.version missing" }
-		if {"i686-darwin9" ne ${ruby.arch}} { error "variable ruby.arch missing" }
+		if {"" eq ${ruby.arch}} { error "variable ruby.arch missing" }
 		if {"${prefix}/lib/ruby/vendor_ruby/1.8" ne ${ruby.lib}} { error "variable ruby.lib missing" }
-		if {"${prefix}/lib/ruby/vendor_ruby/1.8/i686-darwin9" ne${ruby.archlib}} { error "variable ruby.archlib missing" }
+		if {"" eq ${ruby.archlib}} { error "variable ruby.archlib missing" }
 	}
 	
 	# run all tests
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080730/57b423e7/attachment.html 


More information about the macports-changes mailing list