[Swift-commit] r3661 - in trunk/tests/cdm: . star

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Thu Oct 7 12:28:57 CDT 2010


Author: wozniak
Date: 2010-10-07 12:28:57 -0500 (Thu, 07 Oct 2010)
New Revision: 3661

Added:
   trunk/tests/cdm/star/
   trunk/tests/cdm/star/202-direct-star.check.sh
   trunk/tests/cdm/star/202-direct-star.clean.sh
   trunk/tests/cdm/star/202-direct-star.setup.sh
   trunk/tests/cdm/star/202-direct-star.swift
   trunk/tests/cdm/star/README.txt
   trunk/tests/cdm/star/fs.template.data
   trunk/tests/cdm/star/title.txt
Log:
Test for CDM with simple .* pattern


Added: trunk/tests/cdm/star/202-direct-star.check.sh
===================================================================
--- trunk/tests/cdm/star/202-direct-star.check.sh	                        (rev 0)
+++ trunk/tests/cdm/star/202-direct-star.check.sh	2010-10-07 17:28:57 UTC (rev 3661)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -x
+
+grep $( uname -m ) 201/201-input.txt  || exit 1
+grep $( uname -m ) 201/201-output.txt || exit 1
+
+exit 0


Property changes on: trunk/tests/cdm/star/202-direct-star.check.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/cdm/star/202-direct-star.clean.sh
===================================================================
--- trunk/tests/cdm/star/202-direct-star.clean.sh	                        (rev 0)
+++ trunk/tests/cdm/star/202-direct-star.clean.sh	2010-10-07 17:28:57 UTC (rev 3661)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x
+
+rm -rv 201 || exit 1
+
+exit 0


Property changes on: trunk/tests/cdm/star/202-direct-star.clean.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/cdm/star/202-direct-star.setup.sh
===================================================================
--- trunk/tests/cdm/star/202-direct-star.setup.sh	                        (rev 0)
+++ trunk/tests/cdm/star/202-direct-star.setup.sh	2010-10-07 17:28:57 UTC (rev 3661)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -x
+
+mkdir 201
+
+{
+  uname -a
+  date
+} > 201/201-input.txt
+
+exit 0


Property changes on: trunk/tests/cdm/star/202-direct-star.setup.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/cdm/star/202-direct-star.swift
===================================================================
--- trunk/tests/cdm/star/202-direct-star.swift	                        (rev 0)
+++ trunk/tests/cdm/star/202-direct-star.swift	2010-10-07 17:28:57 UTC (rev 3661)
@@ -0,0 +1,15 @@
+
+type file;
+
+app (file o) copy (file i)
+{
+  cp @i @o;
+}
+
+// Will be transformed by CDM to 201/201-input.txt:
+file f1<"201-input.txt">;
+
+// Will be transformed by CDM to 201/201-output.txt:
+file f2<"201-output.txt">;
+
+f2 = copy(f1);

Added: trunk/tests/cdm/star/README.txt
===================================================================
--- trunk/tests/cdm/star/README.txt	                        (rev 0)
+++ trunk/tests/cdm/star/README.txt	2010-10-07 17:28:57 UTC (rev 3661)
@@ -0,0 +1 @@
+These tests try to use CDM to match everything (.*)

Added: trunk/tests/cdm/star/fs.template.data
===================================================================
--- trunk/tests/cdm/star/fs.template.data	                        (rev 0)
+++ trunk/tests/cdm/star/fs.template.data	2010-10-07 17:28:57 UTC (rev 3661)
@@ -0,0 +1 @@
+rule .* DIRECT _PWD_/201

Added: trunk/tests/cdm/star/title.txt
===================================================================
--- trunk/tests/cdm/star/title.txt	                        (rev 0)
+++ trunk/tests/cdm/star/title.txt	2010-10-07 17:28:57 UTC (rev 3661)
@@ -0,0 +1 @@
+CDM tests w/ "star"




More information about the Swift-commit mailing list