[Swift-commit] r5788 - in trunk/tests/sites: . uc3

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Thu May 10 23:28:38 CDT 2012


Author: davidk
Date: 2012-05-10 23:28:38 -0500 (Thu, 10 May 2012)
New Revision: 5788

Added:
   trunk/tests/sites/uc3/
   trunk/tests/sites/uc3/001-catsn.check.sh
   trunk/tests/sites/uc3/001-catsn.clean.sh
   trunk/tests/sites/uc3/001-catsn.setup.sh
   trunk/tests/sites/uc3/001-catsn.swift
   trunk/tests/sites/uc3/001-catsn.timeout
   trunk/tests/sites/uc3/catsn.0001.out.expected
   trunk/tests/sites/uc3/catsn.0002.out.expected
   trunk/tests/sites/uc3/catsn.0003.out.expected
   trunk/tests/sites/uc3/catsn.0004.out.expected
   trunk/tests/sites/uc3/catsn.0005.out.expected
   trunk/tests/sites/uc3/catsn.0006.out.expected
   trunk/tests/sites/uc3/catsn.0007.out.expected
   trunk/tests/sites/uc3/catsn.0008.out.expected
   trunk/tests/sites/uc3/catsn.0009.out.expected
   trunk/tests/sites/uc3/catsn.0010.out.expected
   trunk/tests/sites/uc3/coaster-service.conf
   trunk/tests/sites/uc3/data.txt
   trunk/tests/sites/uc3/title.txt
Log:
Site test scripts for uc3


Added: trunk/tests/sites/uc3/001-catsn.check.sh
===================================================================
--- trunk/tests/sites/uc3/001-catsn.check.sh	                        (rev 0)
+++ trunk/tests/sites/uc3/001-catsn.check.sh	2012-05-11 04:28:38 UTC (rev 5788)
@@ -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/sites/uc3/001-catsn.check.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/sites/uc3/001-catsn.clean.sh
===================================================================
--- trunk/tests/sites/uc3/001-catsn.clean.sh	                        (rev 0)
+++ trunk/tests/sites/uc3/001-catsn.clean.sh	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+stop-coaster-service


Property changes on: trunk/tests/sites/uc3/001-catsn.clean.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/sites/uc3/001-catsn.setup.sh
===================================================================
--- trunk/tests/sites/uc3/001-catsn.setup.sh	                        (rev 0)
+++ trunk/tests/sites/uc3/001-catsn.setup.sh	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+mkdir -p ~/work
+cp -v $GROUP/data.txt . || exit 1
+cp -v $GROUP/*expected . || exit 1
+export WORK=$HOME/work
+start-coaster-service || exit 1


Property changes on: trunk/tests/sites/uc3/001-catsn.setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/sites/uc3/001-catsn.swift
===================================================================
--- trunk/tests/sites/uc3/001-catsn.swift	                        (rev 0)
+++ trunk/tests/sites/uc3/001-catsn.swift	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1,12 @@
+type file;
+
+app (file o) cat (file i)
+{
+  cat @i stdout=@o;
+}
+
+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/sites/uc3/001-catsn.timeout
===================================================================
--- trunk/tests/sites/uc3/001-catsn.timeout	                        (rev 0)
+++ trunk/tests/sites/uc3/001-catsn.timeout	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+180

Added: trunk/tests/sites/uc3/catsn.0001.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0001.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0001.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0002.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0002.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0002.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0003.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0003.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0003.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0004.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0004.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0004.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0005.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0005.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0005.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0006.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0006.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0006.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0007.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0007.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0007.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0008.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0008.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0008.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0009.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0009.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0009.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/catsn.0010.out.expected
===================================================================
--- trunk/tests/sites/uc3/catsn.0010.out.expected	                        (rev 0)
+++ trunk/tests/sites/uc3/catsn.0010.out.expected	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/coaster-service.conf
===================================================================
--- trunk/tests/sites/uc3/coaster-service.conf	                        (rev 0)
+++ trunk/tests/sites/uc3/coaster-service.conf	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1,37 @@
+# Location of SWIFT. If empty, PATH is searched
+export SWIFT=
+
+# Where to copy worker.pl on the remote machine for sites.xml
+export WORKER_LOCATION=$HOME/swiftwork
+
+# How to launch workers: local, ssh, cobalt, or futuregrid
+export WORKER_MODE=condor
+export CONDOR_WORKERS="240"
+
+# Do all the worker nodes you're using have a shared filesystem? (yes/no)
+export SHARED_FILESYSTEM=yes
+
+# Enable SSH tunneling? (yes/no)
+export SSH_TUNNELING=no
+
+# Directory to keep log files, relative to working directory when launching start-coaster-service
+export LOG_DIR=logs
+
+# Manually define ports. If not specified, an available port will be used
+export LOCAL_PORT=
+export SERVICE_PORT=
+
+# Swift information for creating sites.xml
+export WORK=$HOME/swiftwork
+
+# Jobs per node is usually equal to the number of CPUs per node
+export JOBS_PER_NODE=1
+
+# To calculate job throttle:
+# jobs per node * nodes - 0.1 / 100
+export JOB_THROTTLE=$( echo "scale=5; ($JOBS_PER_NODE * $CONDOR_WORKERS)/100 - 0.00001"|bc )
+
+# Swift applications
+#app cat=/bin/cat
+#app bash=/bin/bash
+#app echo=/bin/echo

Added: trunk/tests/sites/uc3/data.txt
===================================================================
--- trunk/tests/sites/uc3/data.txt	                        (rev 0)
+++ trunk/tests/sites/uc3/data.txt	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+Hello world

Added: trunk/tests/sites/uc3/title.txt
===================================================================
--- trunk/tests/sites/uc3/title.txt	                        (rev 0)
+++ trunk/tests/sites/uc3/title.txt	2012-05-11 04:28:38 UTC (rev 5788)
@@ -0,0 +1 @@
+UC3 with Persistent Coasters and Condor




More information about the Swift-commit mailing list