[Swift-commit] r3642 - trunk/tests/language-behaviour
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Mon Sep 27 09:30:32 CDT 2010
Author: wozniak
Date: 2010-09-27 09:30:31 -0500 (Mon, 27 Sep 2010)
New Revision: 3642
Added:
trunk/tests/language-behaviour/071-singlefilemapper-input.check.sh
trunk/tests/language-behaviour/071-singlefilemapper-input.clean.sh
trunk/tests/language-behaviour/071-singlefilemapper-input.setup.sh
trunk/tests/language-behaviour/07511-fixed-array-mapper-input.check.sh
trunk/tests/language-behaviour/07511-fixed-array-mapper-input.clean.sh
trunk/tests/language-behaviour/07511-fixed-array-mapper-input.setup.sh
Modified:
trunk/tests/language-behaviour/071-singlefilemapper-input.swift
trunk/tests/language-behaviour/07511-fixed-array-mapper-input.swift
Log:
language-behaviour fixes
Added: trunk/tests/language-behaviour/071-singlefilemapper-input.check.sh
===================================================================
--- trunk/tests/language-behaviour/071-singlefilemapper-input.check.sh (rev 0)
+++ trunk/tests/language-behaviour/071-singlefilemapper-input.check.sh 2010-09-27 14:30:31 UTC (rev 3642)
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -x
+
+[ -f 071-singlefilemapper-input.in ] || exit 1
+grep 071-singlefilemapper-input.in 071-singlefilemapper-input.out || exit 1
+
+exit 0
Property changes on: trunk/tests/language-behaviour/071-singlefilemapper-input.check.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/language-behaviour/071-singlefilemapper-input.clean.sh
===================================================================
--- trunk/tests/language-behaviour/071-singlefilemapper-input.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/071-singlefilemapper-input.clean.sh 2010-09-27 14:30:31 UTC (rev 3642)
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -x
+
+rm -v 071-singlefilemapper-input.in \
+ 071-singlefilemapper-input.out || exit 1
+
+exit 0
Property changes on: trunk/tests/language-behaviour/071-singlefilemapper-input.clean.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/language-behaviour/071-singlefilemapper-input.setup.sh
===================================================================
--- trunk/tests/language-behaviour/071-singlefilemapper-input.setup.sh (rev 0)
+++ trunk/tests/language-behaviour/071-singlefilemapper-input.setup.sh 2010-09-27 14:30:31 UTC (rev 3642)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -x
+
+cp -v $GROUP/071-singlefilemapper-input.in . || exit 1
+
+exit 0
Property changes on: trunk/tests/language-behaviour/071-singlefilemapper-input.setup.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/tests/language-behaviour/071-singlefilemapper-input.swift
===================================================================
--- trunk/tests/language-behaviour/071-singlefilemapper-input.swift 2010-09-24 18:44:00 UTC (rev 3641)
+++ trunk/tests/language-behaviour/071-singlefilemapper-input.swift 2010-09-27 14:30:31 UTC (rev 3642)
@@ -1,9 +1,7 @@
type messagefile;
-(messagefile o) write(messagefile i) {
- app {
- echo @filename(i) stdout=@filename(o);
- }
+app (messagefile o) write(messagefile i) {
+ echo @filename(i) stdout=@filename(o);
}
messagefile infile <"071-singlefilemapper-input.in">;
Added: trunk/tests/language-behaviour/07511-fixed-array-mapper-input.check.sh
===================================================================
--- trunk/tests/language-behaviour/07511-fixed-array-mapper-input.check.sh (rev 0)
+++ trunk/tests/language-behaviour/07511-fixed-array-mapper-input.check.sh 2010-09-27 14:30:31 UTC (rev 3642)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -x
+
+cat stdout.txt
+
+X=$( grep -c "file: 07511" stdout.txt )
+[ $? == 0 ] || exit 1
+echo $X
+(( $X == 3 )) || exit 1
+
+exit 0
Property changes on: trunk/tests/language-behaviour/07511-fixed-array-mapper-input.check.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/language-behaviour/07511-fixed-array-mapper-input.clean.sh
===================================================================
--- trunk/tests/language-behaviour/07511-fixed-array-mapper-input.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/07511-fixed-array-mapper-input.clean.sh 2010-09-27 14:30:31 UTC (rev 3642)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -x
+
+rm -v $GROUP/07511-fixed-array-mapper-input.*.in || exit 1
+
+exit 0
Property changes on: trunk/tests/language-behaviour/07511-fixed-array-mapper-input.clean.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/tests/language-behaviour/07511-fixed-array-mapper-input.setup.sh
===================================================================
--- trunk/tests/language-behaviour/07511-fixed-array-mapper-input.setup.sh (rev 0)
+++ trunk/tests/language-behaviour/07511-fixed-array-mapper-input.setup.sh 2010-09-27 14:30:31 UTC (rev 3642)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -x
+
+cp -v $GROUP/07511-fixed-array-mapper-input.*.in . || exit 1
+
+exit 0
Property changes on: trunk/tests/language-behaviour/07511-fixed-array-mapper-input.setup.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/tests/language-behaviour/07511-fixed-array-mapper-input.swift
===================================================================
--- trunk/tests/language-behaviour/07511-fixed-array-mapper-input.swift 2010-09-24 18:44:00 UTC (rev 3641)
+++ trunk/tests/language-behaviour/07511-fixed-array-mapper-input.swift 2010-09-27 14:30:31 UTC (rev 3642)
@@ -1,16 +1,19 @@
type messagefile;
-p(messagefile t) {
- app {
- echo "foo" stdin=@filename(t);
- }
+/*
+app p(messagefile t) {
+ echo "foo" stdin=@filename(t);
}
-
+*/
string fns="07511-fixed-array-mapper-input.first.in 07511-fixed-array-mapper-input.second.in 07511-fixed-array-mapper-input.third.in";
messagefile infile[] <fixed_array_mapper; files=fns>;
+/*
p(infile[0]);
p(infile[1]);
p(infile[2]);
-
+*/
+tracef("file: %s\n", @filename(infile[0]));
+tracef("file: %s\n", @filename(infile[1]));
+tracef("file: %s\n", @filename(infile[2]));
More information about the Swift-commit
mailing list