[Swift-commit] r4514 - trunk/tests/providers/local-pbs-coasters/crow
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Mon May 23 12:05:23 CDT 2011
Author: wozniak
Date: 2011-05-23 12:05:23 -0500 (Mon, 23 May 2011)
New Revision: 4514
Added:
trunk/tests/providers/local-pbs-coasters/crow/001-catsn.check.sh
trunk/tests/providers/local-pbs-coasters/crow/001-catsn.setup.sh
trunk/tests/providers/local-pbs-coasters/crow/001-catsn.swift
trunk/tests/providers/local-pbs-coasters/crow/sites.template.xml
trunk/tests/providers/local-pbs-coasters/crow/tc.template.data
Log:
Copy beagle tests into crow
Copied: trunk/tests/providers/local-pbs-coasters/crow/001-catsn.check.sh (from rev 4503, trunk/tests/providers/local-pbs-coasters/beagle/001-catsn.check.sh)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/001-catsn.check.sh (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/001-catsn.check.sh 2011-05-23 17:05:23 UTC (rev 4514)
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# Pseudo-code for now
+
+# for f in *.out.expected
+# do
+# assert *.out exists
+# assert *.out == data.txt
+# done
Copied: trunk/tests/providers/local-pbs-coasters/crow/001-catsn.setup.sh (from rev 4503, trunk/tests/providers/local-pbs-coasters/beagle/001-catsn.setup.sh)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/001-catsn.setup.sh (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/001-catsn.setup.sh 2011-05-23 17:05:23 UTC (rev 4514)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cp -v $GROUP/data.txt . || exit 1
Copied: trunk/tests/providers/local-pbs-coasters/crow/001-catsn.swift (from rev 4503, trunk/tests/providers/local-pbs-coasters/beagle/001-catsn.swift)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/001-catsn.swift (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/001-catsn.swift 2011-05-23 17:05:23 UTC (rev 4514)
@@ -0,0 +1,15 @@
+type file;
+
+app (file o) cat (file i)
+{
+ cat @i stdout=@o;
+}
+
+// string t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
+// string char[] = @strsplit(t, "");
+
+file out[]<simple_mapper; location=".", prefix="catsn.",suffix=".out">;
+foreach j in [1:@toint(@arg("n","10"))] {
+ file data<"data.txt">;
+ out[j] = cat(data);
+}
Copied: trunk/tests/providers/local-pbs-coasters/crow/sites.template.xml (from rev 4503, trunk/tests/providers/local-pbs-coasters/beagle/sites.template.xml)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/sites.template.xml (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/sites.template.xml 2011-05-23 17:05:23 UTC (rev 4514)
@@ -0,0 +1,33 @@
+<config>
+
+<import file="sys.xml"/>
+<set name="wdir" value="/lustre/beagle/{user.name}/work"/>
+<echo message="setting workDirectory to: {wdir}"/>
+
+<pool handle="beagle-pbs">
+ <execution jobmanager="local:pbs" provider="coaster" url="none"/>
+ <filesystem provider="local" url="none" />
+ <profile namespace="globus" key="maxWallTime">1</profile>
+ <profile namespace="globus" key="maxTime">7200</profile>
+
+ <profile namespace="globus" key="providerAttributes">
+ pbs.aprun;pbs.mpp;depth=24
+ </profile>
+ <profile key="jobsPerNode" namespace="globus">24</profile>
+ <profile key="slots" namespace="globus">1</profile>
+ <profile key="nodeGranularity" namespace="globus">1</profile>
+ <profile key="maxNodes" namespace="globus">1</profile>
+ <profile key="queue" namespace="globus">batch</profile>
+ <profile key="workerLoggingLevel" namespace="globus">DEBUG</profile>
+ <profile key="workerLoggingDirectory" namespace="globus">{wdir}</profile>
+ <profile key="jobThrottle" namespace="karajan">5.99</profile>
+ <profile key="initialScore" namespace="karajan">10000</profile>
+ <profile namespace="globus" key="project">_PROJECT_</profile>
+ <profile namespace="globus" key="project">_QUEUE_</profile>
+ <workdirectory>{wdir}</workdirectory>
+</pool>
+</config>
+
+<!-- RESERVATIONS:
+Add something like this to your providerAttributes:
+pbs.resources=advres=modFTDock.47 -->
Copied: trunk/tests/providers/local-pbs-coasters/crow/tc.template.data (from rev 4503, trunk/tests/providers/local-pbs-coasters/beagle/tc.template.data)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/tc.template.data (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/tc.template.data 2011-05-23 17:05:23 UTC (rev 4514)
@@ -0,0 +1,7 @@
+beagle-pbs echo /bin/echo INSTALLED INTEL32::LINUX
+beagle-pbs cat /bin/cat INSTALLED INTEL32::LINUX
+beagle-pbs ls /bin/ls INSTALLED INTEL32::LINUX
+beagle-pbs grep /bin/grep INSTALLED INTEL32::LINUX
+beagle-pbs sort /bin/sort INSTALLED INTEL32::LINUX
+beagle-pbs paste /bin/paste INSTALLED INTEL32::LINUX
+beagle-pbs wc /usr/bin/wc INSTALLED INTEL32::LINUX
More information about the Swift-commit
mailing list