[Swift-commit] r3579 - trunk/tests/cdm-ps

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Aug 30 12:16:13 CDT 2010


Author: wozniak
Date: 2010-08-30 12:16:13 -0500 (Mon, 30 Aug 2010)
New Revision: 3579

Added:
   trunk/tests/cdm-ps/201-direct-output.check.sh
   trunk/tests/cdm-ps/201-direct-output.clean.sh
   trunk/tests/cdm-ps/201-direct-output.setup.sh
   trunk/tests/cdm-ps/201-direct-output.swift
   trunk/tests/cdm-ps/README.txt
   trunk/tests/cdm-ps/fs.template.data
   trunk/tests/cdm-ps/title.txt
Log:
Copy of CDM tests for provider staging tests


Copied: trunk/tests/cdm-ps/201-direct-output.check.sh (from rev 3576, trunk/tests/cdm/201-direct-output.check.sh)
===================================================================
--- trunk/tests/cdm-ps/201-direct-output.check.sh	                        (rev 0)
+++ trunk/tests/cdm-ps/201-direct-output.check.sh	2010-08-30 17:16:13 UTC (rev 3579)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -x
+
+grep $( uname -m ) 201-input.txt  || exit 1
+grep $( uname -m ) 201/output.txt || exit 1
+
+exit 0

Copied: trunk/tests/cdm-ps/201-direct-output.clean.sh (from rev 3576, trunk/tests/cdm/201-direct-output.clean.sh)
===================================================================
--- trunk/tests/cdm-ps/201-direct-output.clean.sh	                        (rev 0)
+++ trunk/tests/cdm-ps/201-direct-output.clean.sh	2010-08-30 17:16:13 UTC (rev 3579)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x
+
+rm -rv 201-input.txt 201
+
+exit 0

Copied: trunk/tests/cdm-ps/201-direct-output.setup.sh (from rev 3576, trunk/tests/cdm/201-direct-output.setup.sh)
===================================================================
--- trunk/tests/cdm-ps/201-direct-output.setup.sh	                        (rev 0)
+++ trunk/tests/cdm-ps/201-direct-output.setup.sh	2010-08-30 17:16:13 UTC (rev 3579)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -x
+
+{
+  uname -a
+  date
+} > 201-input.txt
+
+exit 0

Copied: trunk/tests/cdm-ps/201-direct-output.swift (from rev 3576, trunk/tests/cdm/201-direct-output.swift)
===================================================================
--- trunk/tests/cdm-ps/201-direct-output.swift	                        (rev 0)
+++ trunk/tests/cdm-ps/201-direct-output.swift	2010-08-30 17:16:13 UTC (rev 3579)
@@ -0,0 +1,14 @@
+
+type file;
+
+app (file o) copy (file i)
+{
+  cp @i @o;
+}
+
+file f1<"201-input.txt">;
+
+// Will be transformed by CDM to 201/output.txt:
+file f2<"output.txt">;
+
+f2 = copy(f1);

Copied: trunk/tests/cdm-ps/README.txt (from rev 3576, trunk/tests/cdm/README.txt)
===================================================================
--- trunk/tests/cdm-ps/README.txt	                        (rev 0)
+++ trunk/tests/cdm-ps/README.txt	2010-08-30 17:16:13 UTC (rev 3579)
@@ -0,0 +1,5 @@
+
+000 series : noop tests
+200 series : DIRECT tests
+300 series : BROADCAST test
+

Copied: trunk/tests/cdm-ps/fs.template.data (from rev 3576, trunk/tests/cdm/fs.template.data)
===================================================================
--- trunk/tests/cdm-ps/fs.template.data	                        (rev 0)
+++ trunk/tests/cdm-ps/fs.template.data	2010-08-30 17:16:13 UTC (rev 3579)
@@ -0,0 +1 @@
+rule .*output.txt DIRECT _PWD_/201

Copied: trunk/tests/cdm-ps/title.txt (from rev 3576, trunk/tests/cdm/title.txt)
===================================================================
--- trunk/tests/cdm-ps/title.txt	                        (rev 0)
+++ trunk/tests/cdm-ps/title.txt	2010-08-30 17:16:13 UTC (rev 3579)
@@ -0,0 +1 @@
+CDM tests




More information about the Swift-commit mailing list