[Swift-commit] r5307 - branches/release-0.93/tests/cdm/absolute

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Thu Nov 17 12:45:56 CST 2011


Author: ketan
Date: 2011-11-17 12:45:56 -0600 (Thu, 17 Nov 2011)
New Revision: 5307

Added:
   branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.check.sh
   branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.clean.sh
   branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.swift
   branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.check.sh
   branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.clean.sh
   branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.setup.sh
   branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.swift
   branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.check.sh
   branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.clean.sh
   branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.setup.sh
   branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.swift
   branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.check.sh
   branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.clean.sh
   branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.setup.sh
   branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.swift
   branches/release-0.93/tests/cdm/absolute/setup.sh
Modified:
   branches/release-0.93/tests/cdm/absolute/tc
Log:
improving cdm test

Added: branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.check.sh
===================================================================
--- branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.check.sh	                        (rev 0)
+++ branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.check.sh	2011-11-17 18:45:56 UTC (rev 5307)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+for aline in `ls -1 /tmp/outdir`
+do
+theline= echo $aline | cut -c 1-3
+if [ $theline == "out" ]
+then
+ ; #pass
+else
+ exit 1 #fail
+fi
+


Property changes on: branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.check.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.clean.sh
===================================================================
--- branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.clean.sh	                        (rev 0)
+++ branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.clean.sh	2011-11-17 18:45:56 UTC (rev 5307)
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+rm -v outdir/* || exit 1
+
+exit 0
+


Property changes on: branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.clean.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.swift
===================================================================
--- branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.swift	                        (rev 0)
+++ branches/release-0.93/tests/cdm/absolute/100-infullpath-outfullpath.swift	2011-11-17 18:45:56 UTC (rev 5307)
@@ -0,0 +1,19 @@
+
+type file;
+
+app (file o) catnap (string _delay, file i)
+{
+ catnap _delay @i stdout=@o;
+}
+
+string delay=@arg("s","1");
+
+file data[]<array_mapper; files=["/tmp/indir/data1.txt","/tmp/indir/data2.txt","/tmp/indir/data4.txt","/tmp/indir/data4.txt"]>;
+
+file out[]<array_mapper; files=["/tmp/outdir/out1.data","/tmp/outdir/out2.data","/tmp/outdir/out3.data","/tmp/outdir/out4.data"]>;
+
+
+foreach o, j in out {
+ out[j] = catnap(delay,data[j]);
+}
+


Property changes on: branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.check.sh
___________________________________________________________________
Added: svn:executable
   + *


Property changes on: branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.clean.sh
___________________________________________________________________
Added: svn:executable
   + *


Property changes on: branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.swift
===================================================================
--- branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.swift	                        (rev 0)
+++ branches/release-0.93/tests/cdm/absolute/200-infullpath-outrelpath.swift	2011-11-17 18:45:56 UTC (rev 5307)
@@ -0,0 +1,18 @@
+
+type file;
+
+app (file o) catnap (string _delay, file i)
+{
+ catnap _delay @i stdout=@o;
+}
+
+string delay=@arg("s","1");
+
+file data[]<array_mapper; files=["/tmp/indir/data1.txt","/tmp/indir/data2.txt","/tmp/indir/data4.txt","/tmp/indir/data4.txt"]>;
+
+file out[]<array_mapper; files=["outdir/out1.data","outdir/out2.data","outdir/out3.data","outdir/out4.data"]>;
+
+foreach o, j in out {
+ out[j] = catnap(delay,data[j]);
+}
+


Property changes on: branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.check.sh
___________________________________________________________________
Added: svn:executable
   + *


Property changes on: branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.clean.sh
___________________________________________________________________
Added: svn:executable
   + *


Property changes on: branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.swift
===================================================================
--- branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.swift	                        (rev 0)
+++ branches/release-0.93/tests/cdm/absolute/300-inrelpath-outfullpath.swift	2011-11-17 18:45:56 UTC (rev 5307)
@@ -0,0 +1,17 @@
+
+type file;
+
+app (file o) catnap (string _delay, file i)
+{
+ catnap _delay @i stdout=@o;
+}
+
+string delay=@arg("s","1");
+file data[]<array_mapper; files=["indir/data1.txt","indir/data2.txt","indir/data4.txt","indir/data4.txt"]>;
+
+file out[]<array_mapper; files=["/tmp/outdir/out1.data","/tmp/outdir/out2.data","/tmp/outdir/out3.data","/tmp/outdir/out4.data"]>;
+
+foreach o, j in out {
+ out[j] = catnap(delay,data[j]);
+}
+


Property changes on: branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.check.sh
___________________________________________________________________
Added: svn:executable
   + *


Property changes on: branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.clean.sh
___________________________________________________________________
Added: svn:executable
   + *


Property changes on: branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.swift
===================================================================
--- branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.swift	                        (rev 0)
+++ branches/release-0.93/tests/cdm/absolute/400-inrelpath-outrelpath.swift	2011-11-17 18:45:56 UTC (rev 5307)
@@ -0,0 +1,18 @@
+
+type file;
+
+app (file o) catnap (string _delay, file i)
+{
+ catnap _delay @i stdout=@o;
+}
+
+string delay=@arg("s","1");
+
+file out[]<array_mapper; files=["outdir/out1.data","outdir/out2.data","outdir/out3.data","outdir/out4.data"]>;
+
+file data[]<array_mapper; files=["indir/data1.txt","indir/data2.txt","indir/data4.txt","indir/data4.txt"]>;
+
+foreach o, j in out {
+ out[j] = catnap(delay,data[j]);
+}
+

Added: branches/release-0.93/tests/cdm/absolute/setup.sh
===================================================================
--- branches/release-0.93/tests/cdm/absolute/setup.sh	                        (rev 0)
+++ branches/release-0.93/tests/cdm/absolute/setup.sh	2011-11-17 18:45:56 UTC (rev 5307)
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+rm -rfv /tmp/outdir
+cp -r -v indir/ /tmp/
+
+exit 0


Property changes on: branches/release-0.93/tests/cdm/absolute/setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: branches/release-0.93/tests/cdm/absolute/tc
===================================================================
--- branches/release-0.93/tests/cdm/absolute/tc	2011-11-17 16:27:55 UTC (rev 5306)
+++ branches/release-0.93/tests/cdm/absolute/tc	2011-11-17 18:45:56 UTC (rev 5307)
@@ -1,6 +1,3 @@
 localhost sh /bin/sh null null null
-localhost cat /bin/cat null null null
-pbs cat /bin/cat null null null
-mcs cat /bin/cat null null null
 localhost catnap /home/ketan/cdm_tests/catnap.sh null null GLOBUS::maxwalltime="00:01:00"
 




More information about the Swift-commit mailing list