[Swift-commit] r5296 - trunk/tests/cdm

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Mon Nov 14 17:57:28 CST 2011


Author: wozniak
Date: 2011-11-14 17:57:28 -0600 (Mon, 14 Nov 2011)
New Revision: 5296

Added:
   trunk/tests/cdm/211-direct-output-abs.check.sh
   trunk/tests/cdm/211-direct-output-abs.clean.sh
   trunk/tests/cdm/211-direct-output-abs.setup.sh
   trunk/tests/cdm/211-direct-output-abs.swift
Modified:
   trunk/tests/cdm/fs.template.data
Log:
New, working CDM DIRECT output absolute path test


Added: trunk/tests/cdm/211-direct-output-abs.check.sh
===================================================================
--- trunk/tests/cdm/211-direct-output-abs.check.sh	                        (rev 0)
+++ trunk/tests/cdm/211-direct-output-abs.check.sh	2011-11-14 23:57:28 UTC (rev 5296)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -x
+
+grep $( uname -m ) 211-input.txt  || exit 1
+grep $( uname -m ) /tmp/211-output.txt || exit 1
+
+exit 0


Property changes on: trunk/tests/cdm/211-direct-output-abs.check.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/cdm/211-direct-output-abs.clean.sh
===================================================================
--- trunk/tests/cdm/211-direct-output-abs.clean.sh	                        (rev 0)
+++ trunk/tests/cdm/211-direct-output-abs.clean.sh	2011-11-14 23:57:28 UTC (rev 5296)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x
+
+rm -v /tmp/211-output.txt || exit 1
+
+exit 0


Property changes on: trunk/tests/cdm/211-direct-output-abs.clean.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/cdm/211-direct-output-abs.setup.sh
===================================================================
--- trunk/tests/cdm/211-direct-output-abs.setup.sh	                        (rev 0)
+++ trunk/tests/cdm/211-direct-output-abs.setup.sh	2011-11-14 23:57:28 UTC (rev 5296)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -x
+
+{
+  uname -a
+  date
+} > 211-input.txt
+
+exit 0


Property changes on: trunk/tests/cdm/211-direct-output-abs.setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/cdm/211-direct-output-abs.swift
===================================================================
--- trunk/tests/cdm/211-direct-output-abs.swift	                        (rev 0)
+++ trunk/tests/cdm/211-direct-output-abs.swift	2011-11-14 23:57:28 UTC (rev 5296)
@@ -0,0 +1,14 @@
+
+type file;
+
+app (file o) copy (file i)
+{
+  cp @i @o;
+}
+
+file f1<"211-input.txt">;
+
+// Will be transformed by CDM to /tmp/211-output.txt:
+file f2<"211-output.txt">;
+
+f2 = copy(f1);

Modified: trunk/tests/cdm/fs.template.data
===================================================================
--- trunk/tests/cdm/fs.template.data	2011-11-14 22:20:55 UTC (rev 5295)
+++ trunk/tests/cdm/fs.template.data	2011-11-14 23:57:28 UTC (rev 5296)
@@ -5,6 +5,7 @@
 
 rule .*201-output.txt DIRECT _PWD_/201
 rule .*210-input.txt EXTERNAL _PWD_/external.sh
+rule .*211-output.txt DIRECT /tmp
 rule .*301-input.txt BROADCAST _PWD_/301
 rule .*501-output.*.txt GATHER
 rule .*601-input.*.txt LOCAL cp _PWD_/601




More information about the Swift-commit mailing list