[Swift-commit] r3816 - in trunk/tests: . providers providers/local providers/local-pbs providers/local-pbs-coasters providers/sge-local

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Dec 21 17:57:20 CST 2010


Author: davidk
Date: 2010-12-21 17:57:20 -0600 (Tue, 21 Dec 2010)
New Revision: 3816

Added:
   trunk/tests/providers/
   trunk/tests/providers/local-pbs-coasters/
   trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.check.sh
   trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.setup.sh
   trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.swift
   trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.timeout
   trunk/tests/providers/local-pbs-coasters/catsn.0001.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0002.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0003.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0004.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0005.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0006.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0007.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0008.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0009.out.expected
   trunk/tests/providers/local-pbs-coasters/catsn.0010.out.expected
   trunk/tests/providers/local-pbs-coasters/data.txt
   trunk/tests/providers/local-pbs-coasters/sites.template.xml
   trunk/tests/providers/local-pbs-coasters/tc.template.data
   trunk/tests/providers/local-pbs-coasters/title.txt
   trunk/tests/providers/local-pbs/
   trunk/tests/providers/local-pbs/001-catsn-localpbs.check.sh
   trunk/tests/providers/local-pbs/001-catsn-localpbs.setup.sh
   trunk/tests/providers/local-pbs/001-catsn-localpbs.swift
   trunk/tests/providers/local-pbs/001-catsn-localpbs.timeout
   trunk/tests/providers/local-pbs/catsn.0001.out.expected
   trunk/tests/providers/local-pbs/catsn.0002.out.expected
   trunk/tests/providers/local-pbs/catsn.0003.out.expected
   trunk/tests/providers/local-pbs/catsn.0004.out.expected
   trunk/tests/providers/local-pbs/catsn.0005.out.expected
   trunk/tests/providers/local-pbs/catsn.0006.out.expected
   trunk/tests/providers/local-pbs/catsn.0007.out.expected
   trunk/tests/providers/local-pbs/catsn.0008.out.expected
   trunk/tests/providers/local-pbs/catsn.0009.out.expected
   trunk/tests/providers/local-pbs/catsn.0010.out.expected
   trunk/tests/providers/local-pbs/data.txt
   trunk/tests/providers/local-pbs/sites.template.xml
   trunk/tests/providers/local-pbs/tc.template.data
   trunk/tests/providers/local-pbs/title.txt
   trunk/tests/providers/local/
   trunk/tests/providers/local/001-catsn-local.check.sh
   trunk/tests/providers/local/001-catsn-local.setup.sh
   trunk/tests/providers/local/001-catsn-local.swift
   trunk/tests/providers/local/001-catsn-local.timeout
   trunk/tests/providers/local/catsn.0001.out.expected
   trunk/tests/providers/local/catsn.0002.out.expected
   trunk/tests/providers/local/catsn.0003.out.expected
   trunk/tests/providers/local/catsn.0004.out.expected
   trunk/tests/providers/local/catsn.0005.out.expected
   trunk/tests/providers/local/catsn.0006.out.expected
   trunk/tests/providers/local/catsn.0007.out.expected
   trunk/tests/providers/local/catsn.0008.out.expected
   trunk/tests/providers/local/catsn.0009.out.expected
   trunk/tests/providers/local/catsn.0010.out.expected
   trunk/tests/providers/local/data.txt
   trunk/tests/providers/local/sites.template.xml
   trunk/tests/providers/local/tc.template.data
   trunk/tests/providers/local/title.txt
   trunk/tests/providers/sge-local/
   trunk/tests/providers/sge-local/001-catsn-local.check.sh
   trunk/tests/providers/sge-local/001-catsn-local.setup.sh
   trunk/tests/providers/sge-local/001-catsn-local.swift
   trunk/tests/providers/sge-local/001-catsn-local.timeout
   trunk/tests/providers/sge-local/catsn.0001.out.expected
   trunk/tests/providers/sge-local/catsn.0002.out.expected
   trunk/tests/providers/sge-local/catsn.0003.out.expected
   trunk/tests/providers/sge-local/catsn.0004.out.expected
   trunk/tests/providers/sge-local/catsn.0005.out.expected
   trunk/tests/providers/sge-local/catsn.0006.out.expected
   trunk/tests/providers/sge-local/catsn.0007.out.expected
   trunk/tests/providers/sge-local/catsn.0008.out.expected
   trunk/tests/providers/sge-local/catsn.0009.out.expected
   trunk/tests/providers/sge-local/catsn.0010.out.expected
   trunk/tests/providers/sge-local/data.txt
   trunk/tests/providers/sge-local/sites.template.xml
   trunk/tests/providers/sge-local/tc.template.data
   trunk/tests/providers/sge-local/title.txt
Removed:
   trunk/tests/site/
Log:
Updates for provider tests


Added: trunk/tests/providers/local/001-catsn-local.check.sh
===================================================================
--- trunk/tests/providers/local/001-catsn-local.check.sh	                        (rev 0)
+++ trunk/tests/providers/local/001-catsn-local.check.sh	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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/001-catsn-local.check.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local/001-catsn-local.setup.sh
===================================================================
--- trunk/tests/providers/local/001-catsn-local.setup.sh	                        (rev 0)
+++ trunk/tests/providers/local/001-catsn-local.setup.sh	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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/001-catsn-local.setup.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local/001-catsn-local.swift
===================================================================
--- trunk/tests/providers/local/001-catsn-local.swift	                        (rev 0)
+++ trunk/tests/providers/local/001-catsn-local.swift	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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/001-catsn-local.timeout
===================================================================
--- trunk/tests/providers/local/001-catsn-local.timeout	                        (rev 0)
+++ trunk/tests/providers/local/001-catsn-local.timeout	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+30

Added: trunk/tests/providers/local/catsn.0001.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0001.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0001.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0002.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0002.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0002.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0003.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0003.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0003.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0004.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0004.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0004.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0005.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0005.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0005.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0006.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0006.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0006.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0007.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0007.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0007.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0008.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0008.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0008.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0009.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0009.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0009.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/catsn.0010.out.expected
===================================================================
--- trunk/tests/providers/local/catsn.0010.out.expected	                        (rev 0)
+++ trunk/tests/providers/local/catsn.0010.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/data.txt
===================================================================
--- trunk/tests/providers/local/data.txt	                        (rev 0)
+++ trunk/tests/providers/local/data.txt	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local/sites.template.xml
===================================================================
--- trunk/tests/providers/local/sites.template.xml	                        (rev 0)
+++ trunk/tests/providers/local/sites.template.xml	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1,9 @@
+<config>
+<pool handle="local">
+  <execution provider="local" />
+  <gridftp url="local://localhost" />
+  <profile key="initialScore" namespace="karajan">10000</profile>
+  <profile key="jobThrottle" namespace="karajan">.31</profile>
+  <workdirectory>_WORK_</workdirectory>
+</pool>
+</config>

Added: trunk/tests/providers/local/tc.template.data
===================================================================
--- trunk/tests/providers/local/tc.template.data	                        (rev 0)
+++ trunk/tests/providers/local/tc.template.data	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1,8 @@
+local 	echo 		/bin/echo	INSTALLED	INTEL32::LINUX
+local 	cat 		/bin/cat	INSTALLED	INTEL32::LINUX
+local 	ls 		/bin/ls		INSTALLED	INTEL32::LINUX
+local 	grep 		/bin/grep	INSTALLED	INTEL32::LINUX
+local 	sort 		/bin/sort	INSTALLED	INTEL32::LINUX
+local 	paste 		/bin/paste	INSTALLED	INTEL32::LINUX
+local	wc		/usr/bin/wc	INSTALLED	INTEL32::LINUX
+

Added: trunk/tests/providers/local/title.txt
===================================================================
--- trunk/tests/providers/local/title.txt	                        (rev 0)
+++ trunk/tests/providers/local/title.txt	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Local Configuration Test

Added: trunk/tests/providers/local-pbs/001-catsn-localpbs.check.sh
===================================================================
--- trunk/tests/providers/local-pbs/001-catsn-localpbs.check.sh	                        (rev 0)
+++ trunk/tests/providers/local-pbs/001-catsn-localpbs.check.sh	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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-pbs/001-catsn-localpbs.check.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-pbs/001-catsn-localpbs.setup.sh
===================================================================
--- trunk/tests/providers/local-pbs/001-catsn-localpbs.setup.sh	                        (rev 0)
+++ trunk/tests/providers/local-pbs/001-catsn-localpbs.setup.sh	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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-pbs/001-catsn-localpbs.setup.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-pbs/001-catsn-localpbs.swift
===================================================================
--- trunk/tests/providers/local-pbs/001-catsn-localpbs.swift	                        (rev 0)
+++ trunk/tests/providers/local-pbs/001-catsn-localpbs.swift	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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-pbs/001-catsn-localpbs.timeout
===================================================================
--- trunk/tests/providers/local-pbs/001-catsn-localpbs.timeout	                        (rev 0)
+++ trunk/tests/providers/local-pbs/001-catsn-localpbs.timeout	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+180

Added: trunk/tests/providers/local-pbs/catsn.0001.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0001.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0001.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0002.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0002.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0002.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0003.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0003.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0003.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0004.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0004.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0004.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0005.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0005.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0005.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0006.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0006.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0006.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0007.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0007.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0007.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0008.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0008.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0008.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0009.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0009.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0009.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/catsn.0010.out.expected
===================================================================
--- trunk/tests/providers/local-pbs/catsn.0010.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs/catsn.0010.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/data.txt
===================================================================
--- trunk/tests/providers/local-pbs/data.txt	                        (rev 0)
+++ trunk/tests/providers/local-pbs/data.txt	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs/sites.template.xml
===================================================================
--- trunk/tests/providers/local-pbs/sites.template.xml	                        (rev 0)
+++ trunk/tests/providers/local-pbs/sites.template.xml	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1,8 @@
+<config>
+<pool handle="local-pbs">
+  <execution jobmanager="local:pbs" provider="local" url="none" />
+  <filesystem provider="local" url="none" />
+  <profile key="jobThrottle" namespace="karajan">0</profile>
+  <workdirectory>_WORK_</workdirectory>
+</pool>
+</config>

Added: trunk/tests/providers/local-pbs/tc.template.data
===================================================================
--- trunk/tests/providers/local-pbs/tc.template.data	                        (rev 0)
+++ trunk/tests/providers/local-pbs/tc.template.data	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1,8 @@
+local-pbs 	echo 		/bin/echo	INSTALLED	INTEL32::LINUX
+local-pbs 	cat 		/bin/cat	INSTALLED	INTEL32::LINUX
+local-pbs 	ls 		/bin/ls		INSTALLED	INTEL32::LINUX
+local-pbs 	grep 		/bin/grep	INSTALLED	INTEL32::LINUX
+local-pbs 	sort 		/bin/sort	INSTALLED	INTEL32::LINUX
+local-pbs 	paste 		/bin/paste	INSTALLED	INTEL32::LINUX
+local-pbs	wc		/usr/bin/wc	INSTALLED	INTEL32::LINUX
+

Added: trunk/tests/providers/local-pbs/title.txt
===================================================================
--- trunk/tests/providers/local-pbs/title.txt	                        (rev 0)
+++ trunk/tests/providers/local-pbs/title.txt	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Local PBS Configuration Test

Added: trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.check.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.check.sh	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.check.sh	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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-pbs-coasters/001-catsn-pads-local-pbs-coasters.check.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.setup.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.setup.sh	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.setup.sh	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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-pbs-coasters/001-catsn-pads-local-pbs-coasters.setup.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.swift
===================================================================
--- trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.swift	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.swift	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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-pbs-coasters/001-catsn-pads-local-pbs-coasters.timeout
===================================================================
--- trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.timeout	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/001-catsn-pads-local-pbs-coasters.timeout	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+180

Added: trunk/tests/providers/local-pbs-coasters/catsn.0001.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0001.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0001.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0002.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0002.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0002.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0003.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0003.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0003.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0004.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0004.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0004.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0005.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0005.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0005.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0006.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0006.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0006.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0007.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0007.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0007.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0008.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0008.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0008.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0009.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0009.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0009.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/catsn.0010.out.expected
===================================================================
--- trunk/tests/providers/local-pbs-coasters/catsn.0010.out.expected	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/catsn.0010.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/data.txt
===================================================================
--- trunk/tests/providers/local-pbs-coasters/data.txt	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/data.txt	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/local-pbs-coasters/sites.template.xml
===================================================================
--- trunk/tests/providers/local-pbs-coasters/sites.template.xml	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/sites.template.xml	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1,15 @@
+<config>
+<pool handle="local-pbs-coasters">
+  <execution jobmanager="local:pbs" provider="coaster" url="none"/>
+  <filesystem provider="local" url="none" />
+  <profile key="maxtime" namespace="globus">3000</profile>
+  <profile key="workersPerNode" namespace="globus">1</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">fast</profile>
+  <profile key="jobThrottle" namespace="karajan">5.99</profile>
+  <profile key="initialScore" namespace="karajan">10000</profile>
+  <workdirectory>_WORK_</workdirectory>
+</pool>
+</config>

Added: trunk/tests/providers/local-pbs-coasters/tc.template.data
===================================================================
--- trunk/tests/providers/local-pbs-coasters/tc.template.data	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/tc.template.data	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1,8 @@
+local-pbs-coasters 	echo 		/bin/echo	INSTALLED	INTEL32::LINUX	GLOBUS::maxwalltime="00:05:00"
+local-pbs-coasters 	cat 		/bin/cat	INSTALLED	INTEL32::LINUX	GLOBUS::maxwalltime="00:05:00"
+local-pbs-coasters 	ls 		/bin/ls		INSTALLED	INTEL32::LINUX	GLOBUS::maxwalltime="00:05:00"
+local-pbs-coasters 	grep 		/bin/grep	INSTALLED	INTEL32::LINUX	GLOBUS::maxwalltime="00:05:00"
+local-pbs-coasters 	sort 		/bin/sort	INSTALLED	INTEL32::LINUX	GLOBUS::maxwalltime="00:05:00"
+local-pbs-coasters 	paste 		/bin/paste	INSTALLED	INTEL32::LINUX	GLOBUS::maxwalltime="00:05:00"
+local-pbs-coasters	wc		/usr/bin/wc	INSTALLED	INTEL32::LINUX	GLOBUS::maxwalltime="00:05:00"
+

Added: trunk/tests/providers/local-pbs-coasters/title.txt
===================================================================
--- trunk/tests/providers/local-pbs-coasters/title.txt	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/title.txt	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Local PBS with Coasters Configuration Test

Added: trunk/tests/providers/sge-local/001-catsn-local.check.sh
===================================================================
--- trunk/tests/providers/sge-local/001-catsn-local.check.sh	                        (rev 0)
+++ trunk/tests/providers/sge-local/001-catsn-local.check.sh	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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/sge-local/001-catsn-local.check.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/sge-local/001-catsn-local.setup.sh
===================================================================
--- trunk/tests/providers/sge-local/001-catsn-local.setup.sh	                        (rev 0)
+++ trunk/tests/providers/sge-local/001-catsn-local.setup.sh	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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/sge-local/001-catsn-local.setup.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/providers/sge-local/001-catsn-local.swift
===================================================================
--- trunk/tests/providers/sge-local/001-catsn-local.swift	                        (rev 0)
+++ trunk/tests/providers/sge-local/001-catsn-local.swift	2010-12-21 23:57:20 UTC (rev 3816)
@@ -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/sge-local/001-catsn-local.timeout
===================================================================
--- trunk/tests/providers/sge-local/001-catsn-local.timeout	                        (rev 0)
+++ trunk/tests/providers/sge-local/001-catsn-local.timeout	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+30

Added: trunk/tests/providers/sge-local/catsn.0001.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0001.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0001.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0002.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0002.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0002.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0003.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0003.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0003.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0004.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0004.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0004.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0005.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0005.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0005.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0006.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0006.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0006.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0007.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0007.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0007.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0008.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0008.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0008.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0009.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0009.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0009.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/catsn.0010.out.expected
===================================================================
--- trunk/tests/providers/sge-local/catsn.0010.out.expected	                        (rev 0)
+++ trunk/tests/providers/sge-local/catsn.0010.out.expected	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/data.txt
===================================================================
--- trunk/tests/providers/sge-local/data.txt	                        (rev 0)
+++ trunk/tests/providers/sge-local/data.txt	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/providers/sge-local/sites.template.xml
===================================================================
--- trunk/tests/providers/sge-local/sites.template.xml	                        (rev 0)
+++ trunk/tests/providers/sge-local/sites.template.xml	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1,10 @@
+<config>
+<pool handle="sge-local">
+   <execution provider="sge" url="none" />
+   <profile namespace="globus" key="pe">threaded</profile>
+   <profile key="jobThrottle" namespace="karajan">.49</profile>
+   <profile namespace="karajan" key="initialScore">10000</profile>
+   <filesystem provider="local" url="none" />
+   <workdirectory>_WORK_</workdirectory>
+ </pool>
+</config>

Added: trunk/tests/providers/sge-local/tc.template.data
===================================================================
--- trunk/tests/providers/sge-local/tc.template.data	                        (rev 0)
+++ trunk/tests/providers/sge-local/tc.template.data	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1,8 @@
+sge-local 	echo 		/bin/echo	INSTALLED	INTEL32::LINUX
+sge-local 	cat 		/bin/cat	INSTALLED	INTEL32::LINUX
+sge-local 	ls 		/bin/ls		INSTALLED	INTEL32::LINUX
+sge-local 	grep 		/bin/grep	INSTALLED	INTEL32::LINUX
+sge-local 	sort 		/bin/sort	INSTALLED	INTEL32::LINUX
+sge-local 	paste 		/bin/paste	INSTALLED	INTEL32::LINUX
+sge-local	wc		/usr/bin/wc	INSTALLED	INTEL32::LINUX
+

Added: trunk/tests/providers/sge-local/title.txt
===================================================================
--- trunk/tests/providers/sge-local/title.txt	                        (rev 0)
+++ trunk/tests/providers/sge-local/title.txt	2010-12-21 23:57:20 UTC (rev 3816)
@@ -0,0 +1 @@
+SGE Local Configuration Test




More information about the Swift-commit mailing list