[Swift-commit] r3576 - trunk/tests/cdm
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Fri Aug 27 16:44:47 CDT 2010
Author: wozniak
Date: 2010-08-27 16:44:47 -0500 (Fri, 27 Aug 2010)
New Revision: 3576
Added:
trunk/tests/cdm/201-direct-output.check.sh
trunk/tests/cdm/201-direct-output.clean.sh
trunk/tests/cdm/201-direct-output.setup.sh
trunk/tests/cdm/201-direct-output.swift
trunk/tests/cdm/README.txt
trunk/tests/cdm/fs.template.data
trunk/tests/cdm/title.txt
Log:
Add test cdm/201-direct-output
Added: trunk/tests/cdm/201-direct-output.check.sh
===================================================================
--- trunk/tests/cdm/201-direct-output.check.sh (rev 0)
+++ trunk/tests/cdm/201-direct-output.check.sh 2010-08-27 21:44:47 UTC (rev 3576)
@@ -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
Property changes on: trunk/tests/cdm/201-direct-output.check.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/cdm/201-direct-output.clean.sh
===================================================================
--- trunk/tests/cdm/201-direct-output.clean.sh (rev 0)
+++ trunk/tests/cdm/201-direct-output.clean.sh 2010-08-27 21:44:47 UTC (rev 3576)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x
+
+rm -rv 201-input.txt 201
+
+exit 0
Property changes on: trunk/tests/cdm/201-direct-output.clean.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/cdm/201-direct-output.setup.sh
===================================================================
--- trunk/tests/cdm/201-direct-output.setup.sh (rev 0)
+++ trunk/tests/cdm/201-direct-output.setup.sh 2010-08-27 21:44:47 UTC (rev 3576)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -x
+
+{
+ uname -a
+ date
+} > 201-input.txt
+
+exit 0
Property changes on: trunk/tests/cdm/201-direct-output.setup.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/cdm/201-direct-output.swift
===================================================================
--- trunk/tests/cdm/201-direct-output.swift (rev 0)
+++ trunk/tests/cdm/201-direct-output.swift 2010-08-27 21:44:47 UTC (rev 3576)
@@ -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);
Added: trunk/tests/cdm/README.txt
===================================================================
--- trunk/tests/cdm/README.txt (rev 0)
+++ trunk/tests/cdm/README.txt 2010-08-27 21:44:47 UTC (rev 3576)
@@ -0,0 +1,5 @@
+
+000 series : noop tests
+200 series : DIRECT tests
+300 series : BROADCAST test
+
Added: trunk/tests/cdm/fs.template.data
===================================================================
--- trunk/tests/cdm/fs.template.data (rev 0)
+++ trunk/tests/cdm/fs.template.data 2010-08-27 21:44:47 UTC (rev 3576)
@@ -0,0 +1 @@
+rule .*output.txt DIRECT _PWD_/201
Added: trunk/tests/cdm/title.txt
===================================================================
--- trunk/tests/cdm/title.txt (rev 0)
+++ trunk/tests/cdm/title.txt 2010-08-27 21:44:47 UTC (rev 3576)
@@ -0,0 +1 @@
+CDM tests
More information about the Swift-commit
mailing list