[Swift-commit] r4207 - trunk/tests/providers/local-coasters
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Tue Mar 22 14:29:59 CDT 2011
Author: wozniak
Date: 2011-03-22 14:29:59 -0500 (Tue, 22 Mar 2011)
New Revision: 4207
Added:
trunk/tests/providers/local-coasters/200-cp.check.sh
trunk/tests/providers/local-coasters/200-cp.clean.sh
trunk/tests/providers/local-coasters/200-cp.setup.sh
trunk/tests/providers/local-coasters/200-cp.swift
trunk/tests/providers/local-coasters/README.txt
trunk/tests/providers/local-coasters/sites.template.xml
trunk/tests/providers/local-coasters/tc.template.data
trunk/tests/providers/local-coasters/title.txt
Modified:
trunk/tests/providers/local-coasters/
Log:
Simple local-coasters test
Property changes on: trunk/tests/providers/local-coasters
___________________________________________________________________
Name: svn:ignore
+ 200-input.txt
Added: trunk/tests/providers/local-coasters/200-cp.check.sh
===================================================================
--- trunk/tests/providers/local-coasters/200-cp.check.sh (rev 0)
+++ trunk/tests/providers/local-coasters/200-cp.check.sh 2011-03-22 19:29:59 UTC (rev 4207)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -x
+
+grep $( uname -m ) 200-input.txt || exit 1
+grep $( uname -m ) 200-output.txt || exit 1
+
+exit 0
Property changes on: trunk/tests/providers/local-coasters/200-cp.check.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/providers/local-coasters/200-cp.clean.sh
===================================================================
--- trunk/tests/providers/local-coasters/200-cp.clean.sh (rev 0)
+++ trunk/tests/providers/local-coasters/200-cp.clean.sh 2011-03-22 19:29:59 UTC (rev 4207)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x
+
+rm -rv 200-output.txt || exit 1
+
+exit 0
Property changes on: trunk/tests/providers/local-coasters/200-cp.clean.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/providers/local-coasters/200-cp.setup.sh
===================================================================
--- trunk/tests/providers/local-coasters/200-cp.setup.sh (rev 0)
+++ trunk/tests/providers/local-coasters/200-cp.setup.sh 2011-03-22 19:29:59 UTC (rev 4207)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -x
+
+{
+ uname -a
+ date
+} > 200-input.txt
+
+exit 0
Property changes on: trunk/tests/providers/local-coasters/200-cp.setup.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/providers/local-coasters/200-cp.swift
===================================================================
--- trunk/tests/providers/local-coasters/200-cp.swift (rev 0)
+++ trunk/tests/providers/local-coasters/200-cp.swift 2011-03-22 19:29:59 UTC (rev 4207)
@@ -0,0 +1,10 @@
+
+type file;
+
+app (file o) cp(file i)
+{
+ cp @i @o;
+}
+
+file input<"200-input.txt">;
+file output<"200-output.txt"> = cp(input);
Added: trunk/tests/providers/local-coasters/README.txt
===================================================================
--- trunk/tests/providers/local-coasters/README.txt (rev 0)
+++ trunk/tests/providers/local-coasters/README.txt 2011-03-22 19:29:59 UTC (rev 4207)
@@ -0,0 +1,5 @@
+
+Tests for basic Coasters functionality on local machine
+
+200 series: Simple jobs, simple settings
+
Added: trunk/tests/providers/local-coasters/sites.template.xml
===================================================================
--- trunk/tests/providers/local-coasters/sites.template.xml (rev 0)
+++ trunk/tests/providers/local-coasters/sites.template.xml 2011-03-22 19:29:59 UTC (rev 4207)
@@ -0,0 +1,24 @@
+<config>
+
+ <pool handle="localhost" sysinfo="INTEL32::LINUX">
+ <gridftp url="local://localhost" />
+ <execution provider="local" url="none" />
+ <workdirectory>_WORK_</workdirectory>
+ <profile namespace="swift" key="stagingMethod">file</profile>
+ </pool>
+
+ <pool handle="coasterslocal">
+ <filesystem provider="local" />
+ <execution provider="coaster" jobmanager="local:local"/>
+ <profile namespace="globus" key="internalHostname">_HOST_</profile>
+ <profile namespace="karajan" key="jobthrottle">2.55</profile>
+ <profile namespace="karajan" key="initialScore">10000</profile>
+ <profile namespace="globus" key="jobsPerNode">4</profile>
+ <profile namespace="globus" key="slots">8</profile>
+ <profile namespace="globus" key="maxTime">1000</profile>
+ <profile namespace="globus" key="nodeGranularity">1</profile>
+ <profile namespace="globus" key="maxNodes">4</profile>
+ <workdirectory>_WORK_</workdirectory>
+ </pool>
+
+</config>
Added: trunk/tests/providers/local-coasters/tc.template.data
===================================================================
--- trunk/tests/providers/local-coasters/tc.template.data (rev 0)
+++ trunk/tests/providers/local-coasters/tc.template.data 2011-03-22 19:29:59 UTC (rev 4207)
@@ -0,0 +1,19 @@
+#This is the transformation catalog.
+#
+#It comes pre-configured with a number of simple transformations with
+#paths that are likely to work on a linux box. However, on some systems,
+#the paths to these executables will be different (for example, sometimes
+#some of these programs are found in /usr/bin rather than in /bin)
+#
+#NOTE WELL: fields in this file must be separated by tabs, not spaces; and
+#there must be no trailing whitespace at the end of each line.
+#
+# sitename transformation path INSTALLED platform profiles
+localhost echo /bin/echo INSTALLED INTEL32::LINUX null
+localhost cat /bin/cat INSTALLED INTEL32::LINUX null
+localhost ls /bin/ls INSTALLED INTEL32::LINUX null
+localhost grep /bin/grep INSTALLED INTEL32::LINUX null
+localhost sort /bin/sort INSTALLED INTEL32::LINUX null
+localhost paste /bin/paste INSTALLED INTEL32::LINUX null
+
+coasterslocal cp /bin/cp INSTALLED INTEL32::LINUX null
Added: trunk/tests/providers/local-coasters/title.txt
===================================================================
--- trunk/tests/providers/local-coasters/title.txt (rev 0)
+++ trunk/tests/providers/local-coasters/title.txt 2011-03-22 19:29:59 UTC (rev 4207)
@@ -0,0 +1 @@
+Local coasters
More information about the Swift-commit
mailing list