[Swift-commit] r4523 - trunk/tests/providers/local-pbs-coasters/crow/big

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Mon May 23 15:43:21 CDT 2011


Author: wozniak
Date: 2011-05-23 15:43:21 -0500 (Mon, 23 May 2011)
New Revision: 4523

Added:
   trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.check.sh
   trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.clean.sh
   trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.setup.sh
   trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.swift
   trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.timeout
   trunk/tests/providers/local-pbs-coasters/crow/big/cps.sh
   trunk/tests/providers/local-pbs-coasters/crow/big/data.txt
   trunk/tests/providers/local-pbs-coasters/crow/big/sites.template.xml
   trunk/tests/providers/local-pbs-coasters/crow/big/title.txt
Log:
Multi-node Crow test that can easily be made bigger


Added: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.check.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.check.sh	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.check.sh	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -x
+
+COUNT=$( ls 201-output* | wc -l )
+
+[[ $COUNT == 40 ]] || exit 1
+
+exit 0


Property changes on: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.check.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.clean.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.clean.sh	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.clean.sh	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x
+
+rm -rv 201-output-[12]-*.txt || exit 1
+
+exit 0


Property changes on: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.clean.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.setup.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.setup.sh	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.setup.sh	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -x
+
+{
+  uname -a
+  date
+} > 201-input-1.txt
+
+cp -v 201-input-1.txt 201-input-2.txt
+
+exit 0


Property changes on: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.swift
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.swift	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.swift	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1,24 @@
+
+type file;
+
+app (file o) cps(file i, int s)
+{
+  cps @o @i s;
+}
+
+file input1<"201-input-1.txt">;
+file input2<"201-input-2.txt">;
+
+foreach i in [1:20]
+{
+  string s = @strcat("201-output-1-", i, ".txt");
+  file output<single_file_mapper;file=s>;
+  output = cps(input1, i);
+}
+
+foreach j in [1:20]
+{
+  string s = @strcat("201-output-2-", j, ".txt");
+  file output<single_file_mapper;file=s>;
+  output = cps(input2, 10+j);
+}


Property changes on: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.swift
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.timeout
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.timeout	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/201-cps.timeout	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1 @@
+1000

Added: trunk/tests/providers/local-pbs-coasters/crow/big/cps.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/cps.sh	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/cps.sh	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+DEST=$1
+SRC=$2
+DURATION=$3
+
+sleep $DURATION
+cp -v $SRC $DEST
+


Property changes on: trunk/tests/providers/local-pbs-coasters/crow/big/cps.sh
___________________________________________________________________
Added: svn:executable
   + *

Copied: trunk/tests/providers/local-pbs-coasters/crow/big/data.txt (from rev 4516, trunk/tests/providers/local-pbs-coasters/crow/data.txt)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/data.txt	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/data.txt	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1 @@
+HELLO

Added: trunk/tests/providers/local-pbs-coasters/crow/big/sites.template.xml
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/sites.template.xml	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/sites.template.xml	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1,29 @@
+<config>
+
+<import file="sys.xml"/>
+<set name="wdir" value="_WORK_"/>
+
+<pool handle="crow">
+  <execution jobmanager="local:pbs" provider="coaster" url="none"/>
+  <filesystem provider="local" url="none" />
+  <profile namespace="globus" key="maxWallTime">1</profile>
+  <profile namespace="globus" key="maxTime">7200</profile>
+
+  <profile namespace="globus" key="providerAttributes">
+    pbs.aprun;pbs.mpp;depth=6
+  </profile>
+  <profile key="jobsPerNode" namespace="globus">6</profile>
+  <profile key="slots" namespace="globus">2</profile>
+  <profile key="nodeGranularity" namespace="globus">4</profile>
+  <profile key="maxNodes" namespace="globus">16</profile>
+  <profile key="workerLoggingLevel" namespace="globus">DEBUG</profile>
+  <profile key="workerLoggingDirectory" namespace="globus">{wdir}</profile>
+  <profile key="jobThrottle" namespace="karajan">5.99</profile>
+  <profile key="initialScore" namespace="karajan">10000</profile>
+  <workdirectory>{wdir}</workdirectory>
+</pool>
+</config>
+
+<!-- RESERVATIONS:
+Add something like this to your providerAttributes:
+pbs.resources=advres=modFTDock.47 -->

Copied: trunk/tests/providers/local-pbs-coasters/crow/big/title.txt (from rev 4518, trunk/tests/providers/local-pbs-coasters/crow/title.txt)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/big/title.txt	                        (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/big/title.txt	2011-05-23 20:43:21 UTC (rev 4523)
@@ -0,0 +1 @@
+Local PBS Coasters: Crow big




More information about the Swift-commit mailing list