[Swift-commit] r5239 - in branches/release-0.93/tests/providers: . ranger ranger/gt2 ranger/local

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Oct 17 21:59:34 CDT 2011


Author: davidk
Date: 2011-10-17 21:59:34 -0500 (Mon, 17 Oct 2011)
New Revision: 5239

Added:
   branches/release-0.93/tests/providers/ranger/
   branches/release-0.93/tests/providers/ranger/gt2/
   branches/release-0.93/tests/providers/ranger/gt2/001-catsn-ranger.swift
   branches/release-0.93/tests/providers/ranger/gt2/cf
   branches/release-0.93/tests/providers/ranger/gt2/data.txt
   branches/release-0.93/tests/providers/ranger/gt2/sites.template.xml
   branches/release-0.93/tests/providers/ranger/gt2/start_proxy.sh
   branches/release-0.93/tests/providers/ranger/gt2/tc.template.data
   branches/release-0.93/tests/providers/ranger/local/
   branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.check.sh
   branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.setup.sh
   branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.swift
   branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.timeout
   branches/release-0.93/tests/providers/ranger/local/catsn.0001.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0002.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0003.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0004.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0005.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0006.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0007.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0008.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0009.out.expected
   branches/release-0.93/tests/providers/ranger/local/catsn.0010.out.expected
   branches/release-0.93/tests/providers/ranger/local/data.txt
   branches/release-0.93/tests/providers/ranger/local/sites.template.xml
   branches/release-0.93/tests/providers/ranger/local/tc.template.data
   branches/release-0.93/tests/providers/ranger/local/title.txt
Log:
Provider tests for ranger


Added: branches/release-0.93/tests/providers/ranger/gt2/001-catsn-ranger.swift
===================================================================
--- branches/release-0.93/tests/providers/ranger/gt2/001-catsn-ranger.swift	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/gt2/001-catsn-ranger.swift	2011-10-18 02:59:34 UTC (rev 5239)
@@ -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: branches/release-0.93/tests/providers/ranger/gt2/cf
===================================================================
--- branches/release-0.93/tests/providers/ranger/gt2/cf	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/gt2/cf	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1,7 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+lazy.errors=false
+status.mode=provider
+use.provider.staging=true
+provider.staging.pin.swiftfiles=false

Added: branches/release-0.93/tests/providers/ranger/gt2/data.txt
===================================================================
--- branches/release-0.93/tests/providers/ranger/gt2/data.txt	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/gt2/data.txt	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+ranger testing yeehaw

Added: branches/release-0.93/tests/providers/ranger/gt2/sites.template.xml
===================================================================
--- branches/release-0.93/tests/providers/ranger/gt2/sites.template.xml	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/gt2/sites.template.xml	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1,16 @@
+<config>
+<pool handle="ranger">
+      <execution provider="coaster" jobManager="gt2:SGE" url="129.114.50.165"/>
+      <filesystem provider="gsiftp" url="gsiftp://129.114.50.166"/>
+      <profile namespace="globus" key="maxtime">3600</profile>
+      <profile namespace="globus" key="maxWallTime">00:00:03</profile>
+      <profile namespace="globus" key="jobsPerNode">1</profile>
+      <profile namespace="globus" key="nodeGranularity">16</profile>
+      <profile namespace="globus" key="maxNodes">16</profile>
+      <profile namespace="globus" key="queue">development</profile>
+      <profile namespace="karajan" key="jobThrottle">0.9</profile>
+      <profile namespace="globus" key="project">TG-DBS080004N</profile>
+      <profile namespace="globus" key="pe">16way</profile>
+      <workdirectory>_WORK_</workdirectory>
+</pool>
+</config>

Added: branches/release-0.93/tests/providers/ranger/gt2/start_proxy.sh
===================================================================
--- branches/release-0.93/tests/providers/ranger/gt2/start_proxy.sh	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/gt2/start_proxy.sh	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+myproxy-logon -l dkelly -s myproxy.teragrid.org


Property changes on: branches/release-0.93/tests/providers/ranger/gt2/start_proxy.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/providers/ranger/gt2/tc.template.data
===================================================================
--- branches/release-0.93/tests/providers/ranger/gt2/tc.template.data	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/gt2/tc.template.data	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+ranger 	cat 		/bin/cat

Added: branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.check.sh
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.check.sh	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.check.sh	2011-10-18 02:59:34 UTC (rev 5239)
@@ -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: branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.check.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.setup.sh
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.setup.sh	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.setup.sh	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cp -v $GROUP/data.txt . || exit 1
+cp -v $GROUP/*expected . || exit 1
+
+export QUEUE=normal
+


Property changes on: branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.swift
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.swift	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.swift	2011-10-18 02:59:34 UTC (rev 5239)
@@ -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: branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.timeout
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.timeout	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/001-catsn-ranger.timeout	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1,2 @@
+7200
+

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0001.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0001.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0001.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0002.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0002.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0002.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0003.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0003.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0003.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0004.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0004.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0004.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0005.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0005.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0005.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0006.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0006.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0006.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0007.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0007.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0007.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0008.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0008.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0008.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0009.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0009.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0009.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/catsn.0010.out.expected
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/catsn.0010.out.expected	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/catsn.0010.out.expected	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/data.txt
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/data.txt	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/data.txt	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Hello world

Added: branches/release-0.93/tests/providers/ranger/local/sites.template.xml
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/sites.template.xml	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/sites.template.xml	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1,17 @@
+<config>
+<pool handle="ranger">
+  <execution jobmanager="local:sge" provider="coaster" url="none"/>
+  <filesystem provider="local" url="none" />
+  <profile namespace="globus" key="maxWallTime">2</profile>
+  <profile namespace="globus" key="maxTime">300</profile>
+  <profile key="jobsPerNode" namespace="globus">1</profile>
+  <profile key="slots" namespace="globus">1</profile>
+  <profile key="nodeGranularity" namespace="globus">16</profile>
+  <profile key="maxNodes" namespace="globus">16</profile>
+  <profile key="queue" namespace="globus">development</profile>
+  <profile key="jobThrottle" namespace="karajan">5.99</profile>
+  <profile key="initialScore" namespace="karajan">10000</profile>
+  <profile namespace="globus" key="project">TG-DBS080004N</profile>
+  <workdirectory>_WORK_</workdirectory>
+</pool>
+</config>

Added: branches/release-0.93/tests/providers/ranger/local/tc.template.data
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/tc.template.data	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/tc.template.data	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1,8 @@
+ranger 	echo 		/bin/echo	INSTALLED	INTEL32::LINUX	null
+ranger 	cat 		/bin/cat	INSTALLED	INTEL32::LINUX	null
+ranger 	ls 		/bin/ls		INSTALLED	INTEL32::LINUX	null
+ranger 	grep 		/bin/grep	INSTALLED	INTEL32::LINUX	null
+ranger 	sort 		/bin/sort	INSTALLED	INTEL32::LINUX	null
+ranger 	paste 		/bin/paste	INSTALLED	INTEL32::LINUX	null
+ranger	wc		/usr/bin/wc	INSTALLED	INTEL32::LINUX	null
+

Added: branches/release-0.93/tests/providers/ranger/local/title.txt
===================================================================
--- branches/release-0.93/tests/providers/ranger/local/title.txt	                        (rev 0)
+++ branches/release-0.93/tests/providers/ranger/local/title.txt	2011-10-18 02:59:34 UTC (rev 5239)
@@ -0,0 +1 @@
+Ranger local SGE




More information about the Swift-commit mailing list