[Swift-commit] r4159 - in SwiftApps/SwiftR/Swift: . tests

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Mar 2 15:42:42 CST 2011


Author: tga
Date: 2011-03-02 15:42:42 -0600 (Wed, 02 Mar 2011)
New Revision: 4159

Added:
   SwiftApps/SwiftR/Swift/tests/cobalt_script.R
   SwiftApps/SwiftR/Swift/tests/cobalt_test.sub
Modified:
   SwiftApps/SwiftR/Swift/NAMESPACE
Log:
Added submit files to perform tests for cobalt.

Added getNodeList to namespace.


Modified: SwiftApps/SwiftR/Swift/NAMESPACE
===================================================================
--- SwiftApps/SwiftR/Swift/NAMESPACE	2011-03-02 20:48:44 UTC (rev 4158)
+++ SwiftApps/SwiftR/Swift/NAMESPACE	2011-03-02 21:42:42 UTC (rev 4159)
@@ -1,6 +1,7 @@
 export(swiftapply)
 export(swiftLapply)
 export(swiftInit)
+export(getNodeList)
 export(swiftShutdown)
 export(swiftLibrary)
 export(swiftDetach)

Added: SwiftApps/SwiftR/Swift/tests/cobalt_script.R
===================================================================
--- SwiftApps/SwiftR/Swift/tests/cobalt_script.R	                        (rev 0)
+++ SwiftApps/SwiftR/Swift/tests/cobalt_script.R	2011-03-02 21:42:42 UTC (rev 4159)
@@ -0,0 +1,11 @@
+require(Swift)
+
+x1 <- getNodeList()
+print("Auto:")
+print(x1)
+
+x2 <- getNodeList("cobalt")
+print("pbs:")
+print(x2)
+
+runAllSwiftTests(server="ssh", hosts=x2[[1]], cores=8)

Added: SwiftApps/SwiftR/Swift/tests/cobalt_test.sub
===================================================================
--- SwiftApps/SwiftR/Swift/tests/cobalt_test.sub	                        (rev 0)
+++ SwiftApps/SwiftR/Swift/tests/cobalt_test.sub	2011-03-02 21:42:42 UTC (rev 4159)
@@ -0,0 +1,12 @@
+#!/bin/sh
+export WORKER_LOGGING_LEVEL=ERROR
+echo '***' COBALT_NODEFILE file: $COBALT_NODEFILE CONTACT:http://10.40.9.151:47853
+cat $COBALT_NODEFILE
+echo '***' unique nodes are:
+sort < $COBALT_NODEFILE|uniq
+
+echo GLOBUS_HOSTNAME $GLOBUS_HOSTNAME
+export GLOBUS_HOSTNAME=""
+Rscript `dirname $0`/cobalt_script.R
+
+


Property changes on: SwiftApps/SwiftR/Swift/tests/cobalt_test.sub
___________________________________________________________________
Name: svn:executable
   + *




More information about the Swift-commit mailing list