[Swift-commit] r3739 - trunk/tests/cdm
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Mon Dec 6 15:25:25 CST 2010
Author: wozniak
Date: 2010-12-06 15:25:25 -0600 (Mon, 06 Dec 2010)
New Revision: 3739
Added:
trunk/tests/cdm/301-bcast.check.sh
trunk/tests/cdm/301-bcast.clean.sh
trunk/tests/cdm/301-bcast.setup.sh
trunk/tests/cdm/301-bcast.swift
Modified:
trunk/tests/cdm/
trunk/tests/cdm/fs.template.data
Log:
New CDM BROADCAST test
Property changes on: trunk/tests/cdm
___________________________________________________________________
Name: svn:ignore
+ fs.data
Added: trunk/tests/cdm/301-bcast.check.sh
===================================================================
--- trunk/tests/cdm/301-bcast.check.sh (rev 0)
+++ trunk/tests/cdm/301-bcast.check.sh 2010-12-06 21:25:25 UTC (rev 3739)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -x
+
+grep $( uname -m ) 301/301-input.txt || exit 1
+grep $( uname -m ) 301-output.txt || exit 1
+
+exit 0
Property changes on: trunk/tests/cdm/301-bcast.check.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/cdm/301-bcast.clean.sh
===================================================================
--- trunk/tests/cdm/301-bcast.clean.sh (rev 0)
+++ trunk/tests/cdm/301-bcast.clean.sh 2010-12-06 21:25:25 UTC (rev 3739)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x
+
+rm -rv 301-output.txt 301
+
+exit 0
Property changes on: trunk/tests/cdm/301-bcast.clean.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/cdm/301-bcast.setup.sh
===================================================================
--- trunk/tests/cdm/301-bcast.setup.sh (rev 0)
+++ trunk/tests/cdm/301-bcast.setup.sh 2010-12-06 21:25:25 UTC (rev 3739)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -x
+
+mkdir -pv 301 || exit 1
+
+{
+ uname -a
+ date
+} > 301-input.txt
+
+exit 0
Property changes on: trunk/tests/cdm/301-bcast.setup.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/cdm/301-bcast.swift
===================================================================
--- trunk/tests/cdm/301-bcast.swift (rev 0)
+++ trunk/tests/cdm/301-bcast.swift 2010-12-06 21:25:25 UTC (rev 3739)
@@ -0,0 +1,14 @@
+
+type file;
+
+app (file o) copy (file i)
+{
+ cp @i @o;
+}
+
+// Will be transformed by CDM to 201/output.txt:
+file f1<"301-input.txt">;
+
+file f2<"301-output.txt">;
+
+f2 = copy(f1);
Modified: trunk/tests/cdm/fs.template.data
===================================================================
--- trunk/tests/cdm/fs.template.data 2010-12-06 21:24:40 UTC (rev 3738)
+++ trunk/tests/cdm/fs.template.data 2010-12-06 21:25:25 UTC (rev 3739)
@@ -1,2 +1,9 @@
+
+property GATHER_LIMIT 50000 # ~50KB
+property GATHER_DIR /tmp/cdm_gather
+property GATHER_TARGET _PWD_/501-output
+
rule .*201-output.txt DIRECT _PWD_/201
rule .*210-input.txt EXTERNAL _PWD_/external.sh
+rule .*301-input.txt BROADCAST _PWD_/301
+rule .*501-output.*.txt GATHER
More information about the Swift-commit
mailing list