[Swift-commit] r8281 - in SwiftApps/subjobs: . tests tests/common tests/vesta

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Tue Oct 21 15:17:38 CDT 2014


Author: ketan
Date: 2014-10-21 15:17:38 -0500 (Tue, 21 Oct 2014)
New Revision: 8281

Added:
   SwiftApps/subjobs/tests/
   SwiftApps/subjobs/tests/common/
   SwiftApps/subjobs/tests/common/cobalt.mira.xml
   SwiftApps/subjobs/tests/common/cobalt.vesta.xml
   SwiftApps/subjobs/tests/mira/
   SwiftApps/subjobs/tests/miratests.sh
   SwiftApps/subjobs/tests/vesta/
   SwiftApps/subjobs/tests/vesta/simple.swift
   SwiftApps/subjobs/tests/vestatests.sh
Log:
add tests

Added: SwiftApps/subjobs/tests/common/cobalt.mira.xml
===================================================================
--- SwiftApps/subjobs/tests/common/cobalt.mira.xml	                        (rev 0)
+++ SwiftApps/subjobs/tests/common/cobalt.mira.xml	2014-10-21 20:17:38 UTC (rev 8281)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<config xmlns="http://www.ci.uchicago.edu/swift/SwiftSites">
+
+<pool handle="cluster">
+<execution provider="coaster" jobmanager="local:cobalt" />
+
+<profile namespace="globus" key="slots">1</profile>
+<profile namespace="globus" key="mode">script</profile>
+
+<profile namespace="karajan" key="jobThrottle">2.99</profile>
+<profile namespace="karajan" key="initialScore">10000</profile>
+<profile namespace="globus" key="maxwalltime">00:40:00</profile>
+<profile namespace="globus" key="walltime">2050</profile>
+
+<profile namespace="globus" key="maxnodes">512</profile>
+<profile namespace="globus" key="nodegranularity">512</profile>
+<profile key="SUBBLOCK_SIZE" namespace="env">16</profile>
+<!--
+<profile key="WORKER_LOGGING_LEVEL" namespace="env">DEBUG</profile>
+<profile key="ENABLE_WORKER_LOGGING" namespace="env">TRUE</profile>
+<profile key="ENABLE_WORKER_LOGGING" namespace="env">ON</profile>
+<profile key="WORKER_LOG_DIR" namespace="env">/home/ketan/workerlogs</profile>
+-->
+<profile namespace="globus" key="workerLoggingLevel">DEBUG</profile>
+<profile namespace="globus" key="workerLoggingDirectory">/home/ketan/workerlogs</profile>
+<profile namespace="globus" key="jobsPerNode">32</profile>
+
+<workdirectory>/home/ketan/swiftwork</workdirectory>
+<filesystem provider="local"/>
+
+</pool>
+</config>

Added: SwiftApps/subjobs/tests/common/cobalt.vesta.xml
===================================================================
--- SwiftApps/subjobs/tests/common/cobalt.vesta.xml	                        (rev 0)
+++ SwiftApps/subjobs/tests/common/cobalt.vesta.xml	2014-10-21 20:17:38 UTC (rev 8281)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<config xmlns="http://www.ci.uchicago.edu/swift/SwiftSites">
+
+<pool handle="cluster">
+<execution provider="coaster" jobmanager="local:cobalt" />
+
+<profile namespace="globus" key="slots">2</profile>
+<profile namespace="globus" key="mode">script</profile>
+
+<profile namespace="karajan" key="jobThrottle">2.99</profile>
+<profile namespace="karajan" key="initialScore">10000</profile>
+<profile namespace="globus" key="maxwalltime">00:40:00</profile>
+<profile namespace="globus" key="walltime">2050</profile>
+
+<profile namespace="globus" key="maxnodes">512</profile>
+<profile namespace="globus" key="nodegranularity">512</profile>
+<profile key="SUBBLOCK_SIZE" namespace="env">16</profile>
+<!--
+<profile key="WORKER_LOGGING_LEVEL" namespace="env">DEBUG</profile>
+<profile key="ENABLE_WORKER_LOGGING" namespace="env">TRUE</profile>
+<profile key="ENABLE_WORKER_LOGGING" namespace="env">ON</profile>
+<profile key="WORKER_LOG_DIR" namespace="env">/home/ketan/workerlogs</profile>
+-->
+<profile namespace="globus" key="workerLoggingLevel">DEBUG</profile>
+<profile namespace="globus" key="workerLoggingDirectory">/home/ketan/workerlogs</profile>
+<profile namespace="globus" key="jobsPerNode">32</profile>
+
+<workdirectory>/home/ketan/swiftwork</workdirectory>
+<filesystem provider="local"/>
+
+</pool>
+</config>

Added: SwiftApps/subjobs/tests/miratests.sh
===================================================================
--- SwiftApps/subjobs/tests/miratests.sh	                        (rev 0)
+++ SwiftApps/subjobs/tests/miratests.sh	2014-10-21 20:17:38 UTC (rev 8281)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+echo "Running test1"
+
+cd vesta
+
+sh run.sh
+
+cd ../mira
+
+sh run.sh
+

Added: SwiftApps/subjobs/tests/vesta/simple.swift
===================================================================
--- SwiftApps/subjobs/tests/vesta/simple.swift	                        (rev 0)
+++ SwiftApps/subjobs/tests/vesta/simple.swift	2014-10-21 20:17:38 UTC (rev 8281)
@@ -0,0 +1,16 @@
+type file;
+
+app (file o, file sout, file serr) cat (file i)
+{
+  bgsh "/home/ketan/SwiftApps/subjobs/mpicatnap" @i @o arg("s","1") stdout=@sout stderr=@serr;
+}
+
+file out[]<simple_mapper; location="outdir", prefix="f.",suffix=".out">;
+
+foreach j in [1:toInt(arg("n","1"))] {
+  file data<"data.txt">;
+  file sout<single_file_mapper; file=strcat("outdir/f.",j,".stdout")>;
+  file serr<single_file_mapper; file=strcat("outdir/f.",j,".stderr")>;
+  (out[j],sout,serr) = cat(data);
+}
+

Added: SwiftApps/subjobs/tests/vestatests.sh
===================================================================
--- SwiftApps/subjobs/tests/vestatests.sh	                        (rev 0)
+++ SwiftApps/subjobs/tests/vestatests.sh	2014-10-21 20:17:38 UTC (rev 8281)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+echo "Running test1"
+
+cd vesta
+
+sh run.sh
+
+cd ../mira
+
+sh run.sh
+




More information about the Swift-commit mailing list