[Swift-commit] r3950 - in trunk/tests/providers: . local-cobalt local-cobalt/intrepid local-cobalt/surveyor

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Jan 10 21:59:49 CST 2011


Author: davidk
Date: 2011-01-10 21:59:49 -0600 (Mon, 10 Jan 2011)
New Revision: 3950

Added:
   trunk/tests/providers/local-cobalt/
   trunk/tests/providers/local-cobalt/intrepid/
   trunk/tests/providers/local-cobalt/intrepid/100-cp.check.sh
   trunk/tests/providers/local-cobalt/intrepid/100-cp.clean.sh
   trunk/tests/providers/local-cobalt/intrepid/100-cp.setup.sh
   trunk/tests/providers/local-cobalt/intrepid/100-cp.swift
   trunk/tests/providers/local-cobalt/intrepid/100-cp.timeout
   trunk/tests/providers/local-cobalt/intrepid/sites.template.xml
   trunk/tests/providers/local-cobalt/intrepid/tc.template.data
   trunk/tests/providers/local-cobalt/intrepid/title.txt
   trunk/tests/providers/local-cobalt/surveyor/
   trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.check.sh
   trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.setup.sh
   trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.swift
   trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.timeout
   trunk/tests/providers/local-cobalt/surveyor/README
   trunk/tests/providers/local-cobalt/surveyor/catsn.0001.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0002.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0003.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0004.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0005.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0006.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0007.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0008.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0009.out.expected
   trunk/tests/providers/local-cobalt/surveyor/catsn.0010.out.expected
   trunk/tests/providers/local-cobalt/surveyor/data.txt
   trunk/tests/providers/local-cobalt/surveyor/sites.template.xml
   trunk/tests/providers/local-cobalt/surveyor/tc.template.data
   trunk/tests/providers/local-cobalt/surveyor/title.txt
Log:
Adding some of the provider tests from 0.92 to trunk


Added: trunk/tests/providers/local-cobalt/intrepid/100-cp.check.sh
===================================================================
--- trunk/tests/providers/local-cobalt/intrepid/100-cp.check.sh	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/intrepid/100-cp.check.sh	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x 
+
+grep $( uname -m )  100-cp-output.txt || exit 1
+
+exit 0


Property changes on: trunk/tests/providers/local-cobalt/intrepid/100-cp.check.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-cobalt/intrepid/100-cp.clean.sh
===================================================================
--- trunk/tests/providers/local-cobalt/intrepid/100-cp.clean.sh	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/intrepid/100-cp.clean.sh	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x 
+
+rm -v 100-cp-input.txt 100-cp-output.txt || exit 1
+
+exit 0


Property changes on: trunk/tests/providers/local-cobalt/intrepid/100-cp.clean.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-cobalt/intrepid/100-cp.setup.sh
===================================================================
--- trunk/tests/providers/local-cobalt/intrepid/100-cp.setup.sh	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/intrepid/100-cp.setup.sh	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x 
+
+uname -a > 100-cp-input.txt || exit 1
+
+exit 0


Property changes on: trunk/tests/providers/local-cobalt/intrepid/100-cp.setup.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-cobalt/intrepid/100-cp.swift
===================================================================
--- trunk/tests/providers/local-cobalt/intrepid/100-cp.swift	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/intrepid/100-cp.swift	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,13 @@
+
+type file;
+
+app (file o) cp(file i)
+{
+  cp @i @o;
+}
+
+file input<"100-cp-input.txt">;
+file output<"100-cp-output.txt">;
+
+output = cp(input);
+

Added: trunk/tests/providers/local-cobalt/intrepid/100-cp.timeout
===================================================================
--- trunk/tests/providers/local-cobalt/intrepid/100-cp.timeout	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/intrepid/100-cp.timeout	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+3000

Added: trunk/tests/providers/local-cobalt/intrepid/sites.template.xml
===================================================================
--- trunk/tests/providers/local-cobalt/intrepid/sites.template.xml	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/intrepid/sites.template.xml	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,32 @@
+<config>
+
+  <pool handle="localhost" sysinfo="INTEL32::LINUX">
+    <gridftp url="local://localhost" />
+    <execution provider="local" url="none" />
+    <workdirectory>/scratch/wozniak/work</workdirectory>
+    <!-- <profile namespace="karajan" key="maxSubmitRate">1</profile> -->
+    <profile namespace="karajan" key="jobThrottle">0.04</profile>
+    <profile namespace="swift"   key="stagingMethod">file</profile>
+  </pool>
+
+  <pool handle="coasters_alcfbgp">
+    <filesystem provider="local" />
+    <execution provider="coaster" jobmanager="local:cobalt"/>
+    <!-- <profile namespace="swift"   key="stagingMethod">local</profile> -->
+    <profile namespace="globus"  key="internalHostname">_HOST_</profile>
+    <profile namespace="globus"  key="project">_PROJECT_</profile>
+    <profile namespace="globus"  key="queue">_QUEUE_</profile>
+    <profile namespace="globus"  key="kernelprofile">zeptoos</profile>
+    <profile namespace="globus"  key="alcfbgpnat">true</profile>
+    <profile namespace="karajan" key="jobthrottle">21</profile>
+    <profile namespace="karajan" key="initialScore">10000</profile>
+    <profile namespace="globus"  key="workersPerNode">1</profile>
+    <profile namespace="globus"  key="workerLoggingLevel">DEBUG</profile>
+    <profile namespace="globus"  key="slots">1</profile>
+    <profile namespace="globus"  key="maxTime">900</profile> <!-- seconds -->
+    <profile namespace="globus"  key="nodeGranularity">64</profile>
+    <profile namespace="globus"  key="maxNodes">64</profile>
+    <workdirectory>_WORK_</workdirectory>
+  </pool>
+
+</config>

Added: trunk/tests/providers/local-cobalt/intrepid/tc.template.data
===================================================================
--- trunk/tests/providers/local-cobalt/intrepid/tc.template.data	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/intrepid/tc.template.data	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+coasters_alcfbgp	cp 		/bin/cp         INSTALLED	INTEL32::LINUX	null

Added: trunk/tests/providers/local-cobalt/intrepid/title.txt
===================================================================
--- trunk/tests/providers/local-cobalt/intrepid/title.txt	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/intrepid/title.txt	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Site Test: BG/P: Intrepid

Added: trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.check.sh
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.check.sh	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.check.sh	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -x
+
+for count in `seq --format "%04.f" 1 1 10`
+do
+	[ -f catsn.$count.out ] || exit 1
+	CONTENTS1=$( cat catsn.$count.out.expected )
+	CONTENTS2=$( cat catsn.$count.out )
+	[[ $CONTENTS1 == $CONTENTS2 ]] || exit 1
+done
+exit 0


Property changes on: trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.check.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.setup.sh
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.setup.sh	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.setup.sh	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cp -v $GROUP/data.txt . || exit 1
+cp -v $GROUP/*expected . || exit 1


Property changes on: trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.setup.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.swift
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.swift	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.swift	2011-01-11 03:59:49 UTC (rev 3950)
@@ -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);
+}

Added: trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.timeout
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.timeout	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/001-catsn-surveyor.timeout	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+1000

Added: trunk/tests/providers/local-cobalt/surveyor/README
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/README	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/README	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,3 @@
+Be sure to set PROJECT and QUEUE. These settings worked for me, but unsure if they are universal
+export PROJECT=HTCScienceApps
+export QUEUE=default

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0001.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0001.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0001.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0002.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0002.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0002.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0003.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0003.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0003.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0004.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0004.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0004.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0005.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0005.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0005.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0006.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0006.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0006.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0007.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0007.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0007.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0008.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0008.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0008.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0009.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0009.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0009.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/catsn.0010.out.expected
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/catsn.0010.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/catsn.0010.out.expected	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/data.txt
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/data.txt	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/data.txt	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-cobalt/surveyor/sites.template.xml
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/sites.template.xml	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/sites.template.xml	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,22 @@
+<config>
+  <pool handle="surveyor">
+    <filesystem provider="local" />
+    <execution provider="coaster" jobmanager="local:cobalt"/>
+    <!-- <profile namespace="swift"   key="stagingMethod">local</profile> -->
+    <profile namespace="globus"  key="internalHostname">_HOST_</profile>
+    <profile namespace="globus"  key="project">_PROJECT_</profile>
+    <profile namespace="globus"  key="queue">_QUEUE_</profile>
+    <profile namespace="globus"  key="kernelprofile">zeptoos</profile>
+    <profile namespace="globus"  key="alcfbgpnat">true</profile>
+    <profile namespace="karajan" key="jobthrottle">21</profile>
+    <profile namespace="karajan" key="initialScore">10000</profile>
+    <profile namespace="globus"  key="workersPerNode">1</profile>
+    <profile namespace="globus"  key="workerLoggingLevel">DEBUG</profile>
+    <profile namespace="globus"  key="slots">1</profile>
+    <profile namespace="globus"  key="maxTime">900</profile> <!-- seconds -->
+    <profile namespace="globus"  key="nodeGranularity">64</profile>
+    <profile namespace="globus"  key="maxNodes">64</profile>
+    <workdirectory>_WORK_</workdirectory>
+  </pool>
+</config>
+

Added: trunk/tests/providers/local-cobalt/surveyor/tc.template.data
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/tc.template.data	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/tc.template.data	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1,7 @@
+surveyor 	echo 		/bin/echo	INSTALLED	INTEL32::LINUX
+surveyor 	cat 		/bin/cat	INSTALLED	INTEL32::LINUX
+surveyor 	ls 		/bin/ls		INSTALLED	INTEL32::LINUX
+surveyor 	grep 		/bin/grep	INSTALLED	INTEL32::LINUX
+surveyor 	sort 		/bin/sort	INSTALLED	INTEL32::LINUX
+surveyor 	paste 		/bin/paste	INSTALLED	INTEL32::LINUX
+surveyor	wc		/usr/bin/wc	INSTALLED	INTEL32::LINUX

Added: trunk/tests/providers/local-cobalt/surveyor/title.txt
===================================================================
--- trunk/tests/providers/local-cobalt/surveyor/title.txt	                        (rev 0)
+++ trunk/tests/providers/local-cobalt/surveyor/title.txt	2011-01-11 03:59:49 UTC (rev 3950)
@@ -0,0 +1 @@
+Surveyor Site Configuration Test




More information about the Swift-commit mailing list