[Swift-commit] r5105 - in branches/release-0.93/tests: groups language-behaviour/datatypes

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Sep 12 19:25:14 CDT 2011


Author: davidk
Date: 2011-09-12 19:25:14 -0500 (Mon, 12 Sep 2011)
New Revision: 5105

Added:
   branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.b.expected
   branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.c.expected
   branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.mapper.sh
   branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.setup.sh
   branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.swift
Modified:
   branches/release-0.93/tests/groups/group-all-local.sh
Log:
Add datatype tests and staging out a struct


Modified: branches/release-0.93/tests/groups/group-all-local.sh
===================================================================
--- branches/release-0.93/tests/groups/group-all-local.sh	2011-09-12 23:11:55 UTC (rev 5104)
+++ branches/release-0.93/tests/groups/group-all-local.sh	2011-09-13 00:25:14 UTC (rev 5105)
@@ -11,6 +11,7 @@
             $TESTDIR/language-behaviour/broken \
 	    $TESTDIR/language-behaviour/compounds \
             $TESTDIR/language-behaviour/control_structures \
+            $TESTDIR/language-behaviour/datatypes \
 	    $TESTDIR/language-behaviour/IO \
 	    $TESTDIR/language-behaviour/logic \
 	    $TESTDIR/language-behaviour/mappers \

Added: branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.b.expected
===================================================================
--- branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.b.expected	                        (rev 0)
+++ branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.b.expected	2011-09-13 00:25:14 UTC (rev 5105)
@@ -0,0 +1 @@
+foo

Added: branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.c.expected
===================================================================
Added: branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.mapper.sh
===================================================================
--- branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.mapper.sh	                        (rev 0)
+++ branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.mapper.sh	2011-09-13 00:25:14 UTC (rev 5105)
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+echo "b 056-struct-stage-out.b"
+echo "c 056-struct-stage-out.c"


Property changes on: branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.mapper.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.setup.sh
===================================================================
--- branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.setup.sh	                        (rev 0)
+++ branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.setup.sh	2011-09-13 00:25:14 UTC (rev 5105)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cp -v $GROUP/056-struct-stage-out.mapper.sh . || exit 1


Property changes on: branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.setup.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.swift
===================================================================
--- branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.swift	                        (rev 0)
+++ branches/release-0.93/tests/language-behaviour/datatypes/056-struct-stage-out.swift	2011-09-13 00:25:14 UTC (rev 5105)
@@ -0,0 +1,14 @@
+type file;
+
+type struct {
+        file b; 
+        file c; 
+}
+
+app (struct of) echo() {
+        echo "foo" stdout=@filename(of.b) stderr=@filename(of.c);
+}
+
+struct s <ext; exec="056-struct-stage-out.mapper.sh">;
+
+s = echo();




More information about the Swift-commit mailing list