[Swift-commit] r4613 - in trunk/tests/language-behaviour: . IO arithmetic arrays foreach mappers
achavez at ci.uchicago.edu
achavez at ci.uchicago.edu
Tue Jun 14 09:02:16 CDT 2011
Author: achavez
Date: 2011-06-14 09:02:14 -0500 (Tue, 14 Jun 2011)
New Revision: 4613
Added:
trunk/tests/language-behaviour/IO/
trunk/tests/language-behaviour/IO/001-echo.out.expected
trunk/tests/language-behaviour/IO/001-echo.swift
trunk/tests/language-behaviour/IO/0011-echo-20110603-1140-rr21aum3.log
trunk/tests/language-behaviour/IO/0011-echo.kml
trunk/tests/language-behaviour/IO/0011-echo.out
trunk/tests/language-behaviour/IO/0011-echo.out.expected
trunk/tests/language-behaviour/IO/0011-echo.swift
trunk/tests/language-behaviour/IO/0011-echo.xml
trunk/tests/language-behaviour/IO/0012-echo-map-20110603-1140-n9omdlcb.log
trunk/tests/language-behaviour/IO/0012-echo-map.kml
trunk/tests/language-behaviour/IO/0012-echo-map.out.expected
trunk/tests/language-behaviour/IO/0012-echo-map.swift
trunk/tests/language-behaviour/IO/0012-echo-map.xml
trunk/tests/language-behaviour/IO/readData.circle.in
trunk/tests/language-behaviour/IO/readData.circle.out.expected
trunk/tests/language-behaviour/IO/readData.circleArray.in
trunk/tests/language-behaviour/IO/readData.circleArray.out.expected
trunk/tests/language-behaviour/IO/readData.float.out.expected
trunk/tests/language-behaviour/IO/readData.int.in
trunk/tests/language-behaviour/IO/readData.int.out.expected
trunk/tests/language-behaviour/IO/readData.intArray.in
trunk/tests/language-behaviour/IO/readData.intArray.out.expected
trunk/tests/language-behaviour/IO/readData.stringArray.in
trunk/tests/language-behaviour/IO/readData.stringArray.out.expected
trunk/tests/language-behaviour/IO/readData.swift
trunk/tests/language-behaviour/IO/readData2.in
trunk/tests/language-behaviour/IO/readData2.out.expected
trunk/tests/language-behaviour/IO/readData2.swift
trunk/tests/language-behaviour/IO/writeDataPrimitive.out.expected
trunk/tests/language-behaviour/IO/writeDataPrimitive.swift
trunk/tests/language-behaviour/IO/writeDataStringArray.swift
trunk/tests/language-behaviour/IO/writeDataStringArray2.out.expected
trunk/tests/language-behaviour/IO/writeDataStringArray2.swift
trunk/tests/language-behaviour/IO/writeDataStruct.out.expected
trunk/tests/language-behaviour/IO/writeDataStruct.swift
trunk/tests/language-behaviour/IO/writeDataStructArray2.out.expected
trunk/tests/language-behaviour/IO/writeDataStructArray2.swift
trunk/tests/language-behaviour/arithmetic/
trunk/tests/language-behaviour/arithmetic/006-add.out.expected
trunk/tests/language-behaviour/arithmetic/006-add.swift
trunk/tests/language-behaviour/arithmetic/007-add-in-proc-add.out.expected
trunk/tests/language-behaviour/arithmetic/007-add-in-proc-add.swift
trunk/tests/language-behaviour/arithmetic/008-add-multiply.out.expected
trunk/tests/language-behaviour/arithmetic/008-add-multiply.swift
trunk/tests/language-behaviour/arithmetic/009-multiply.out.expected
trunk/tests/language-behaviour/arithmetic/009-multiply.swift
trunk/tests/language-behaviour/arithmetic/010-divide.out.expected
trunk/tests/language-behaviour/arithmetic/010-divide.swift
trunk/tests/language-behaviour/arithmetic/011-divide-float.out.expected
trunk/tests/language-behaviour/arithmetic/011-divide-float.swift
trunk/tests/language-behaviour/arithmetic/013-mod.out.expected
trunk/tests/language-behaviour/arithmetic/013-mod.swift
trunk/tests/language-behaviour/arithmetic/014-subtract.out.expected
trunk/tests/language-behaviour/arithmetic/014-subtract.swift
trunk/tests/language-behaviour/arithmetic/0145-unary-subtact.out.expected
trunk/tests/language-behaviour/arithmetic/0145-unary-subtact.swift
trunk/tests/language-behaviour/arithmetic/015-lesseq.out.expected
trunk/tests/language-behaviour/arithmetic/015-lesseq.swift
trunk/tests/language-behaviour/arithmetic/016-greatereq.out.expected
trunk/tests/language-behaviour/arithmetic/016-greatereq.swift
trunk/tests/language-behaviour/arithmetic/017-greater.out.expected
trunk/tests/language-behaviour/arithmetic/017-greater.swift
trunk/tests/language-behaviour/arithmetic/018-less.out.expected
trunk/tests/language-behaviour/arithmetic/018-less.swift
trunk/tests/language-behaviour/arithmetic/019-equals.out.expected
trunk/tests/language-behaviour/arithmetic/019-equals.swift
trunk/tests/language-behaviour/arithmetic/0191-not-equals.out.expected
trunk/tests/language-behaviour/arithmetic/0191-not-equals.swift
trunk/tests/language-behaviour/arrays/
trunk/tests/language-behaviour/arrays/020-array.out.expected
trunk/tests/language-behaviour/arrays/020-array.swift
trunk/tests/language-behaviour/arrays/021-array-in-proc-param.out.expected
trunk/tests/language-behaviour/arrays/021-array-in-proc-param.swift
trunk/tests/language-behaviour/arrays/022-array-with-exprs.out.expected
trunk/tests/language-behaviour/arrays/022-array-with-exprs.swift
trunk/tests/language-behaviour/arrays/025-array-passing.out.expected
trunk/tests/language-behaviour/arrays/025-array-passing.swift
trunk/tests/language-behaviour/arrays/027-array-assignment.out.expected
trunk/tests/language-behaviour/arrays/027-array-assignment.swift
trunk/tests/language-behaviour/arrays/028-array-assignment.swift
trunk/tests/language-behaviour/arrays/029-array-assignment-sequence.swift
trunk/tests/language-behaviour/arrays/083-array-assign.swift
trunk/tests/language-behaviour/arrays/110-array-range-exprs.swift
trunk/tests/language-behaviour/arrays/1101-array-range.swift
trunk/tests/language-behaviour/arrays/1102-array-range-step.swift
trunk/tests/language-behaviour/arrays/111-array-individual-assigns.out.expected
trunk/tests/language-behaviour/arrays/111-array-individual-assigns.swift
trunk/tests/language-behaviour/arrays/162-dot-on-array.out.expected
trunk/tests/language-behaviour/arrays/162-dot-on-array.swift
trunk/tests/language-behaviour/arrays/array_multidimensional-2.swift
trunk/tests/language-behaviour/arrays/array_multidimensional_assign.swift
trunk/tests/language-behaviour/arrays/array_multidimensional_index.out.expected
trunk/tests/language-behaviour/arrays/array_multidimensional_index.swift
trunk/tests/language-behaviour/foreach/
trunk/tests/language-behaviour/foreach/0083-for.one.in
trunk/tests/language-behaviour/foreach/0083-for.one.in.out.expected
trunk/tests/language-behaviour/foreach/0083-for.swift
trunk/tests/language-behaviour/foreach/0083-for.two.in
trunk/tests/language-behaviour/foreach/0083-for.two.in.out.expected
trunk/tests/language-behaviour/foreach/0084-for.swift
trunk/tests/language-behaviour/foreach/050-foreach.blue.out.expected
trunk/tests/language-behaviour/foreach/050-foreach.green.out.expected
trunk/tests/language-behaviour/foreach/050-foreach.red.out.expected
trunk/tests/language-behaviour/foreach/050-foreach.swift
trunk/tests/language-behaviour/foreach/051-foreach.blue.out.expected
trunk/tests/language-behaviour/foreach/051-foreach.green.out.expected
trunk/tests/language-behaviour/foreach/051-foreach.red.out.expected
trunk/tests/language-behaviour/foreach/051-foreach.swift
trunk/tests/language-behaviour/foreach/052-foreach-index.blue.out.expected
trunk/tests/language-behaviour/foreach/052-foreach-index.green.out.expected
trunk/tests/language-behaviour/foreach/052-foreach-index.red.out.expected
trunk/tests/language-behaviour/foreach/052-foreach-index.swift
trunk/tests/language-behaviour/foreach/056-foreach-if.swift
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.check.sh
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.clean.sh
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0000.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0001.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0002.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0003.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0004.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0005.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0006.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0007.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0008.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0009.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0000.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0001.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0002.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0003.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0004.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0005.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0006.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0007.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0008.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0009.out.expected
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.setup.sh
trunk/tests/language-behaviour/foreach/057-foreach-twice-range.swift
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.check.sh
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.clean.sh
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0000.out.expected
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0001.out.expected
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0002.out.expected
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0000.out.expected
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0001.out.expected
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0002.out.expected
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.setup.sh
trunk/tests/language-behaviour/foreach/058-foreach-twice-string.swift
trunk/tests/language-behaviour/mappers/
trunk/tests/language-behaviour/mappers/0032-strcat-mapper-param.1.out.expected
trunk/tests/language-behaviour/mappers/0032-strcat-mapper-param.swift
trunk/tests/language-behaviour/mappers/070-singlefilemapper.out.expected
trunk/tests/language-behaviour/mappers/070-singlefilemapper.swift
trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.check.sh
trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.clean.sh
trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.in
trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.out.expected
trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.setup.sh
trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.swift
trunk/tests/language-behaviour/mappers/072-simplemapper.out.expected
trunk/tests/language-behaviour/mappers/072-simplemapper.swift
trunk/tests/language-behaviour/mappers/0721-simplemapper-array.0000.out.expected
trunk/tests/language-behaviour/mappers/0721-simplemapper-array.0005.out.expected
trunk/tests/language-behaviour/mappers/0721-simplemapper-array.swift
trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000000000.out.expected
trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000000005.out.expected
trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000075943.out.expected
trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.swift
trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.0.out.expected
trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.5.out.expected
trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.75943.out.expected
trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.swift
trunk/tests/language-behaviour/mappers/073-simplemapper.out.expected
trunk/tests/language-behaviour/mappers/073-simplemapper.swift
trunk/tests/language-behaviour/mappers/075-array-mapper.first.out.expected
trunk/tests/language-behaviour/mappers/075-array-mapper.second.out.expected
trunk/tests/language-behaviour/mappers/075-array-mapper.swift
trunk/tests/language-behaviour/mappers/075-array-mapper.third.out.expected
trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.first.out.expected
trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.second.out.expected
trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.swift
trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.third.out.expected
trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.check.sh
trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.clean.sh
trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.setup.sh
trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.swift
trunk/tests/language-behaviour/mappers/07513-fixed-array-mapper-filename.real.out.expected
trunk/tests/language-behaviour/mappers/07513-fixed-array-mapper-filename.swift
trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.a.in
trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.b.in
trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.real.out.expected
trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.swift
trunk/tests/language-behaviour/mappers/0752-csv-mapper.csv
trunk/tests/language-behaviour/mappers/0752-csv-mapper.left-two.out.expected
trunk/tests/language-behaviour/mappers/0752-csv-mapper.left-zero.out.expected
trunk/tests/language-behaviour/mappers/0752-csv-mapper.right-one.out.expected
trunk/tests/language-behaviour/mappers/0752-csv-mapper.swift
trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.a.out.expected
trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.b.out.expected
trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.blue.in
trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.c.out.expected
trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.green.in
trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.red.in
trunk/tests/language-behaviour/mappers/0754-csv-mapper-input.out.expected
trunk/tests/language-behaviour/mappers/0754-csv-mapper-input.swift
trunk/tests/language-behaviour/mappers/0754-csv-mapper.csv
trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-one.in
trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-two.in
trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-zero.in
trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-one.in
trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-two.in
trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-zero.in
trunk/tests/language-behaviour/mappers/0755-ext-mapper.0.3.2.1.out.expected
trunk/tests/language-behaviour/mappers/0755-ext-mapper.AAA.out.expected
trunk/tests/language-behaviour/mappers/0755-ext-mapper.____.out.expected
trunk/tests/language-behaviour/mappers/0755-ext-mapper.sh
trunk/tests/language-behaviour/mappers/0755-ext-mapper.swift
trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.out.expected
trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.sh
trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.swift
trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.inside.out.expected
trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.mapper.out.expected
trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.sh
trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.swift
trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.sh
trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.swift
trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.sh
trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.swift
trunk/tests/language-behaviour/mappers/075551-ext-mapper-twostruct-singleproducer.swift
trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.sh
trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.swift
trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.sh
trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.swift
trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.sh
trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.swift
trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.sh
trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.swift
trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.sh
trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.swift
trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.sh
trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.swift
trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b.out.expected
trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.swift
trunk/tests/language-behaviour/mappers/077-regexp-mapper.foo.out.expected
trunk/tests/language-behaviour/mappers/077-regexp-mapper.swift
trunk/tests/language-behaviour/mappers/078-singlefilemapper-name-expression.out.expected
trunk/tests/language-behaviour/mappers/078-singlefilemapper-name-expression.swift
trunk/tests/language-behaviour/mappers/0781-singlefilemapper-name-expression.out.expected
trunk/tests/language-behaviour/mappers/0781-singlefilemapper-name-expression.swift
trunk/tests/language-behaviour/mappers/079-regression-r970-simple-mapper-expr-prefix.out.expected
trunk/tests/language-behaviour/mappers/079-regression-r970-simple-mapper-expr-prefix.swift
trunk/tests/language-behaviour/mappers/0791-regression-r970-simple-mapper-expr-prefix.out.expected
trunk/tests/language-behaviour/mappers/0791-regression-r970-simple-mapper-expr-prefix.swift
trunk/tests/language-behaviour/mappers/150-filesys_mapper.swift
trunk/tests/language-behaviour/mappers/760-csv-mapper.sh
trunk/tests/language-behaviour/mappers/760-csv-mapper.swift
trunk/tests/language-behaviour/mappers/T074-simplemapper.aleph.out.expected
trunk/tests/language-behaviour/mappers/T074-simplemapper.beth.out.expected
trunk/tests/language-behaviour/mappers/T074-simplemapper.gimel.out.expected
trunk/tests/language-behaviour/mappers/T074-simplemapper.swift
trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.aleph.out.expected
trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.beth.out.expected
trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.swift
trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.aleph.out.expected
trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.beth.out.expected
trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.swift
trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate.epsilon.out.expected
trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate.sigma.out.expected
trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate_moresubordinate.hamza.out.expected
trunk/tests/language-behaviour/mappers/T078-simplemapper-nosuffix.swift
trunk/tests/language-behaviour/mappers/T078-simplemapper-nosuffix_nodot.out.expected
trunk/tests/language-behaviour/mappers/T079-simplemapper-nosuffix_exception.swift
Removed:
trunk/tests/language-behaviour/006-add.out.expected
trunk/tests/language-behaviour/006-add.swift
trunk/tests/language-behaviour/007-add-in-proc-add.out.expected
trunk/tests/language-behaviour/007-add-in-proc-add.swift
trunk/tests/language-behaviour/008-add-multiply.out.expected
trunk/tests/language-behaviour/008-add-multiply.swift
trunk/tests/language-behaviour/009-multiply.out.expected
trunk/tests/language-behaviour/009-multiply.swift
trunk/tests/language-behaviour/010-divide.out.expected
trunk/tests/language-behaviour/010-divide.swift
trunk/tests/language-behaviour/011-divide-float.out.expected
trunk/tests/language-behaviour/011-divide-float.swift
trunk/tests/language-behaviour/013-mod.out.expected
trunk/tests/language-behaviour/013-mod.swift
trunk/tests/language-behaviour/014-subtract.out.expected
trunk/tests/language-behaviour/014-subtract.swift
trunk/tests/language-behaviour/0145-unary-subtact.out.expected
trunk/tests/language-behaviour/0145-unary-subtact.swift
trunk/tests/language-behaviour/015-lesseq.out.expected
trunk/tests/language-behaviour/015-lesseq.swift
trunk/tests/language-behaviour/016-greatereq.out.expected
trunk/tests/language-behaviour/016-greatereq.swift
trunk/tests/language-behaviour/017-greater.out.expected
trunk/tests/language-behaviour/017-greater.swift
trunk/tests/language-behaviour/018-less.out.expected
trunk/tests/language-behaviour/018-less.swift
trunk/tests/language-behaviour/019-equals.out.expected
trunk/tests/language-behaviour/019-equals.swift
trunk/tests/language-behaviour/0191-not-equals.out.expected
trunk/tests/language-behaviour/0191-not-equals.swift
Log:
Use txt extension- will be an asciidoc file
Deleted: trunk/tests/language-behaviour/006-add.out.expected
===================================================================
--- trunk/tests/language-behaviour/006-add.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/006-add.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-135
Deleted: trunk/tests/language-behaviour/006-add.swift
===================================================================
--- trunk/tests/language-behaviour/006-add.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/006-add.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(int m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"006-add.out">;
-
-int i = 42+93;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/007-add-in-proc-add.out.expected
===================================================================
--- trunk/tests/language-behaviour/007-add-in-proc-add.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/007-add-in-proc-add.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-189
Deleted: trunk/tests/language-behaviour/007-add-in-proc-add.swift
===================================================================
--- trunk/tests/language-behaviour/007-add-in-proc-add.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/007-add-in-proc-add.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,12 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(int m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"007-add-in-proc-add.out">;
-
-outfile = greeting(88+101);
-
Deleted: trunk/tests/language-behaviour/008-add-multiply.out.expected
===================================================================
--- trunk/tests/language-behaviour/008-add-multiply.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/008-add-multiply.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-8
Deleted: trunk/tests/language-behaviour/008-add-multiply.swift
===================================================================
--- trunk/tests/language-behaviour/008-add-multiply.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/008-add-multiply.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(int m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"008-add-multiply.out">;
-
-int i = 2+2*3;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/009-multiply.out.expected
===================================================================
--- trunk/tests/language-behaviour/009-multiply.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/009-multiply.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-42
Deleted: trunk/tests/language-behaviour/009-multiply.swift
===================================================================
--- trunk/tests/language-behaviour/009-multiply.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/009-multiply.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(int m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"009-multiply.out">;
-
-int i = 6*7;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/010-divide.out.expected
===================================================================
--- trunk/tests/language-behaviour/010-divide.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/010-divide.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-33
Deleted: trunk/tests/language-behaviour/010-divide.swift
===================================================================
--- trunk/tests/language-behaviour/010-divide.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/010-divide.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(int m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"010-divide.out">;
-
-int i = 99%/3;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/011-divide-float.out.expected
===================================================================
--- trunk/tests/language-behaviour/011-divide-float.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/011-divide-float.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-0.3333333333333333
Deleted: trunk/tests/language-behaviour/011-divide-float.swift
===================================================================
--- trunk/tests/language-behaviour/011-divide-float.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/011-divide-float.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(float m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"011-divide-float.out">;
-
-float i = 1.0/3.0;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/013-mod.out.expected
===================================================================
--- trunk/tests/language-behaviour/013-mod.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/013-mod.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-19
Deleted: trunk/tests/language-behaviour/013-mod.swift
===================================================================
--- trunk/tests/language-behaviour/013-mod.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/013-mod.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(int m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"013-mod.out">;
-
-int i = 99 %% 20;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/014-subtract.out.expected
===================================================================
--- trunk/tests/language-behaviour/014-subtract.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/014-subtract.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
--37
Deleted: trunk/tests/language-behaviour/014-subtract.swift
===================================================================
--- trunk/tests/language-behaviour/014-subtract.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/014-subtract.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(int m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"014-subtract.out">;
-
-int i = 44-81;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/0145-unary-subtact.out.expected
===================================================================
--- trunk/tests/language-behaviour/0145-unary-subtact.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/0145-unary-subtact.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
--989929
Deleted: trunk/tests/language-behaviour/0145-unary-subtact.swift
===================================================================
--- trunk/tests/language-behaviour/0145-unary-subtact.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/0145-unary-subtact.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,15 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(int m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"0145-unary-subtact.out">;
-
-int j = 989929;
-int i = -j;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/015-lesseq.out.expected
===================================================================
--- trunk/tests/language-behaviour/015-lesseq.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/015-lesseq.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-true
Deleted: trunk/tests/language-behaviour/015-lesseq.swift
===================================================================
--- trunk/tests/language-behaviour/015-lesseq.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/015-lesseq.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(boolean m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"015-lesseq.out">;
-
-boolean i = 7<=9;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/016-greatereq.out.expected
===================================================================
--- trunk/tests/language-behaviour/016-greatereq.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/016-greatereq.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-false
Deleted: trunk/tests/language-behaviour/016-greatereq.swift
===================================================================
--- trunk/tests/language-behaviour/016-greatereq.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/016-greatereq.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(boolean m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"016-greatereq.out">;
-
-boolean i = 7>=9;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/017-greater.out.expected
===================================================================
--- trunk/tests/language-behaviour/017-greater.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/017-greater.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-false
Deleted: trunk/tests/language-behaviour/017-greater.swift
===================================================================
--- trunk/tests/language-behaviour/017-greater.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/017-greater.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(boolean m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"017-greater.out">;
-
-boolean i = 7>9;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/018-less.out.expected
===================================================================
--- trunk/tests/language-behaviour/018-less.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/018-less.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-true
Deleted: trunk/tests/language-behaviour/018-less.swift
===================================================================
--- trunk/tests/language-behaviour/018-less.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/018-less.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(boolean m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"018-less.out">;
-
-boolean i = 7<9;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/019-equals.out.expected
===================================================================
--- trunk/tests/language-behaviour/019-equals.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/019-equals.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-false
Deleted: trunk/tests/language-behaviour/019-equals.swift
===================================================================
--- trunk/tests/language-behaviour/019-equals.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/019-equals.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(boolean m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"019-equals.out">;
-
-boolean i = 7==9;
-
-outfile = greeting(i);
-
Deleted: trunk/tests/language-behaviour/0191-not-equals.out.expected
===================================================================
--- trunk/tests/language-behaviour/0191-not-equals.out.expected 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/0191-not-equals.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1 +0,0 @@
-true
Deleted: trunk/tests/language-behaviour/0191-not-equals.swift
===================================================================
--- trunk/tests/language-behaviour/0191-not-equals.swift 2011-06-14 02:17:30 UTC (rev 4612)
+++ trunk/tests/language-behaviour/0191-not-equals.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -1,14 +0,0 @@
-type messagefile {}
-
-(messagefile t) greeting(boolean m) {
- app {
- echo m stdout=@filename(t);
- }
-}
-
-messagefile outfile <"0191-not-equals.out">;
-
-boolean i = 7!=9;
-
-outfile = greeting(i);
-
Added: trunk/tests/language-behaviour/IO/001-echo.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/001-echo.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/001-echo.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+hello
Added: trunk/tests/language-behaviour/IO/001-echo.swift
===================================================================
--- trunk/tests/language-behaviour/IO/001-echo.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/001-echo.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,12 @@
+type messagefile;
+
+(messagefile t) greeting() {
+ app {
+ echo "hello" stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"001-echo.out">;
+
+outfile = greeting();
+
Added: trunk/tests/language-behaviour/IO/0011-echo-20110603-1140-rr21aum3.log
===================================================================
--- trunk/tests/language-behaviour/IO/0011-echo-20110603-1140-rr21aum3.log (rev 0)
+++ trunk/tests/language-behaviour/IO/0011-echo-20110603-1140-rr21aum3.log 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,111 @@
+2011-06-03 11:40:08,649-0500 DEBUG Loader Max heap: 238616576
+2011-06-03 11:40:08,650-0500 DEBUG textfiles BEGIN SWIFTSCRIPT:
+type messagefile;
+
+app (messagefile t) greeting() {
+ echo "hello" stdout=@filename(t);
+}
+
+messagefile outfile <"0011-echo.out">;
+
+outfile = greeting();
+
+
+
+2011-06-03 11:40:08,650-0500 DEBUG textfiles END SWIFTSCRIPT:
+2011-06-03 11:40:08,650-0500 INFO Loader 0011-echo.swift: source file is new. Recompiling.
+2011-06-03 11:40:09,279-0500 INFO Karajan Validation of XML intermediate file was successful
+2011-06-03 11:40:09,475-0500 DEBUG Loader setting: tc.file to: ./tc.data
+2011-06-03 11:40:09,475-0500 DEBUG textfiles using default sites file
+2011-06-03 11:40:09,493-0500 INFO VDL2ExecutionContext Stack dump:
+Level 1
+[iA = 0, iB = 0, bA = false, bB = false]
+ vdl:instanceconfig = Swift configuration []
+ vdl:operation = run
+ PATH_SEPARATOR = /
+ swift.home = /home/Alberto/Swift/cog/modules/swift/dist/swift-svn/bin/..
+ #vdl:futureWrapperMap = org.griphyn.vdl.karajan.WrapperMap at 171f189
+
+
+2011-06-03 11:40:10,075-0500 INFO unknown Using sites file: /home/Alberto/Swift/cog/modules/swift/dist/swift-svn/bin/../etc/sites.xml
+2011-06-03 11:40:10,112-0500 INFO unknown Using tc.data: ./tc.data
+2011-06-03 11:40:10,212-0500 INFO AbstractScheduler Setting resources to: {localhost=localhost}
+2011-06-03 11:40:10,702-0500 INFO unknown Swift svn swift-r4543 cog-r3143
+
+2011-06-03 11:40:10,703-0500 INFO unknown RUNID id=run:20110603-1140-rr21aum3
+2011-06-03 11:40:10,767-0500 DEBUG greeting PROCEDURE line=3 thread=0-1 name=greeting
+2011-06-03 11:40:10,774-0500 INFO vdl:execute START thread=0-1 tr=echo
+2011-06-03 11:40:10,798-0500 INFO WeightedHostScoreScheduler CONTACT_SELECTED host=localhost, score=1.000
+2011-06-03 11:40:10,802-0500 INFO GlobalSubmitQueue No global submit throttle set. Using default (1024)
+2011-06-03 11:40:10,805-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:10,873-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:10,876-0500 INFO vdl:initshareddir START host=localhost - Initializing shared directory
+2011-06-03 11:40:10,880-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:10,899-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:10,902-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:10,904-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:10,908-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:10,912-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:10,914-0500 INFO vdl:initshareddir END host=localhost - Done initializing shared directory
+2011-06-03 11:40:10,917-0500 DEBUG vdl:execute2 THREAD_ASSOCIATION jobid=echo-1geu42bk thread=0-1-1 host=localhost replicationGroup=0geu42bk
+2011-06-03 11:40:10,925-0500 INFO vdl:createdirset START jobid=echo-1geu42bk host=localhost - Initializing directory structure
+2011-06-03 11:40:10,926-0500 INFO vdl:createdirset END jobid=echo-1geu42bk - Done initializing directory structure
+2011-06-03 11:40:10,926-0500 INFO vdl:dostagein START jobid=echo-1geu42bk - Staging in files
+2011-06-03 11:40:10,932-0500 INFO vdl:dostagein END jobid=echo-1geu42bk - Staging in finished
+2011-06-03 11:40:10,934-0500 DEBUG vdl:execute2 JOB_START jobid=echo-1geu42bk tr=echo arguments=[?:string = hello - Closed] tmpdir=0011-echo-20110603-1140-rr21aum3/jobs/1/echo-1geu42bk host=localhost
+2011-06-03 11:40:10,937-0500 DEBUG textfiles BEGIN TC:
+#This is the transformation catalog.
+#
+#It comes pre-configured with a number of simple transformations with
+#paths that are likely to work on a linux box. However, on some systems,
+#the paths to these executables will be different (for example, sometimes
+#some of these programs are found in /usr/bin rather than in /bin)
+#
+#NOTE WELL: fields in this file must be separated by tabs, not spaces; and
+#there must be no trailing whitespace at the end of each line.
+#
+# sitename transformation path INSTALLED platform profiles
+localhost echo /bin/echo INSTALLED INTEL32::LINUX null
+localhost cat /bin/cat INSTALLED INTEL32::LINUX null
+localhost ls /bin/ls INSTALLED INTEL32::LINUX null
+localhost grep /bin/grep INSTALLED INTEL32::LINUX null
+localhost sort /bin/sort INSTALLED INTEL32::LINUX null
+localhost paste /bin/paste INSTALLED INTEL32::LINUX null
+localhost cp /bin/cp INSTALLED INTEL32::LINUX null
+localhost wc /usr/bin/wc INSTALLED INTEL32::LINUX null
+localhost wc /usr/bin/wc INSTALLED INTEL32::LINUX null
+localhost touch /bin/touch INSTALLED INTEL32::LINUX null
+localhost sleep /bin/sleep INSTALLED INTEL32::LINUX null
+localhost delayedcat /home/Alberto/Swift/cog/modules/swift/tests/language-behaviour/delayedcat.sh INSTALLED INTEL32::LINUX null
+
+
+2011-06-03 11:40:10,937-0500 DEBUG textfiles END TC:
+2011-06-03 11:40:10,946-0500 INFO GridExec TASK_DEFINITION: Task(type=JOB_SUBMISSION, identity=urn:0-1-1-1307119210103) is /bin/bash shared/_swiftwrap echo-1geu42bk -jobdir 1 -scratch -e /bin/echo -out 0011-echo.out -err stderr.txt -i -d -if -of 0011-echo.out -k -cdmfile -status files -a hello
+2011-06-03 11:40:10,952-0500 INFO JobSubmissionTaskHandler Submit: in: /var/tmp/0011-echo-20110603-1140-rr21aum3 command: /bin/bash /var/tmp/0011-echo-20110603-1140-rr21aum3/shared/_swiftwrap echo-1geu42bk -jobdir 1 -scratch -e /bin/echo -out 0011-echo.out -err stderr.txt -i -d -if -of 0011-echo.out -k -cdmfile -status files -a hello
+2011-06-03 11:40:11,045-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:11,048-0500 DEBUG vdl:checkjobstatus START jobid=echo-1geu42bk
+2011-06-03 11:40:11,051-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:11,052-0500 INFO vdl:checkjobstatus SUCCESS jobid=echo-1geu42bk - Success file found
+2011-06-03 11:40:11,053-0500 DEBUG vdl:execute2 STAGING_OUT jobid=echo-1geu42bk
+2011-06-03 11:40:11,055-0500 INFO vdl:dostageout START jobid=echo-1geu42bk - Staging out files
+2011-06-03 11:40:11,056-0500 DEBUG vdl:dostageout stageouts: [[$, outfile:messagefile = ? - Open]]
+2011-06-03 11:40:11,064-0500 DEBUG vdl:dostageout FILE_STAGE_OUT_START srcname=0011-echo.out srcdir=0011-echo-20110603-1140-rr21aum3/shared/ srchost=localhost destdir= desthost=localhost provider=file
+2011-06-03 11:40:11,065-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:11,077-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:11,078-0500 DEBUG vdl:dostageout FILE_STAGE_OUT_END srcname=0011-echo.out srcdir=0011-echo-20110603-1140-rr21aum3/shared/ srchost=localhost destdir= desthost=localhost provider=file
+2011-06-03 11:40:11,083-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:11,092-0500 INFO vdl:dostageout END jobid=echo-1geu42bk - Staging out finished
+2011-06-03 11:40:11,097-0500 DEBUG vdl:execute2 JOB_END jobid=echo-1geu42bk
+2011-06-03 11:40:11,098-0500 INFO vdl:execute END_SUCCESS thread=0-1 tr=echo
+2011-06-03 11:40:11,100-0500 DEBUG greeting PROCEDURE_END line=3
+2011-06-03 11:40:11,113-0500 DEBUG vdl:mains Starting cleanups
+2011-06-03 11:40:11,116-0500 INFO vdl:cleanups START cleanups=[[0011-echo-20110603-1140-rr21aum3, localhost]]
+2011-06-03 11:40:11,118-0500 INFO vdl:cleanup START dir=0011-echo-20110603-1140-rr21aum3 host=localhost
+2011-06-03 11:40:11,119-0500 DEBUG vdl:cleanup cdmfile
+2011-06-03 11:40:11,123-0500 INFO GridExec TASK_DEFINITION: Task(type=JOB_SUBMISSION, identity=urn:0-1-1307119210114) is /bin/rm -rf 0011-echo-20110603-1140-rr21aum3
+2011-06-03 11:40:11,123-0500 INFO JobSubmissionTaskHandler Submit: in: /var/tmp command: /bin/rm -rf 0011-echo-20110603-1140-rr21aum3
+2011-06-03 11:40:11,123-0500 INFO LateBindingScheduler JobQueue: 0
+2011-06-03 11:40:11,130-0500 INFO vdl:cleanup END dir=0011-echo-20110603-1140-rr21aum3 host=localhost
+2011-06-03 11:40:11,131-0500 INFO vdl:cleanups END cleanups=[[0011-echo-20110603-1140-rr21aum3, localhost]]
+2011-06-03 11:40:11,132-0500 DEBUG vdl:mains Ending cleanups
+2011-06-03 11:40:11,158-0500 INFO Loader Swift finished with no errors
Added: trunk/tests/language-behaviour/IO/0011-echo.kml
===================================================================
--- trunk/tests/language-behaviour/IO/0011-echo.kml (rev 0)
+++ trunk/tests/language-behaviour/IO/0011-echo.kml 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,70 @@
+<project><!-- CACHE ID ee300c16-1a12-4e15-bc05-578b8e792831 -->
+ <import file="sys.xml"/>
+ <import file="scheduler.xml"/>
+ <import file="rlog.xml"/>
+ <import file="vdl.k"/>
+ <types>
+ <xs:schema targetNamespace="http://ci.uchicago.edu/swift/2009/02/swiftscript" xmlns="http://ci.uchicago.edu/swift/2009/02/swiftscript" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:simpleType name="messagefile">
+ <xs:restriction base="string"/>
+ </xs:simpleType>
+ </xs:schema>
+ </types>
+ <global name="swift#string#17000">
+ <vdl:new type="string" value="hello" />
+ </global>
+ <element name="greeting" arguments="t">
+ <parameterlog>
+ <string>output</string>
+ <string>t</string>
+ <vdl:getdatasetprovenanceid var="{t}" />
+ <string>{#thread}</string>
+ </parameterlog>
+ <log level="debug" message="PROCEDURE line=3 thread={#thread} name=greeting"/>
+ <vdl:execute>
+ <vdl:tr>echo</vdl:tr>
+ <vdl:stageout var="{t}"/>
+ <vdl:arguments>
+ <variable>swift#string#17000</variable>
+ </vdl:arguments>
+ <vdl:stdout>
+ <swiftscript:filename>
+ <variable>t</variable>
+ </swiftscript:filename>
+ </vdl:stdout>
+ </vdl:execute>
+ <vdl:closedataset var="{t}"/>
+ <log level="debug" message="PROCEDURE_END line=3"/></element>
+
+ <set name="outfile">
+ <vdl:new type="messagefile" dbgname="outfile" waitfor="88000">
+ <vdl:mapping descriptor="single_file_mapper">
+ <vdl:parameter name="file" value="0011-echo.out"/>
+ </vdl:mapping>
+ </vdl:new>
+ </set>
+ <parameterlog>
+ <string>intermediate</string>
+ <string>outfile</string>
+ <vdl:getdatasetprovenanceid var="{outfile}" />
+ <string>{#thread}</string>
+ </parameterlog>
+ <restartLog>
+ <vdl:mains>
+ <vdl:startprogressticker />
+ <vdl:mainp>
+ <sequentialWithID>
+ <sequential>
+ <greeting>
+ <parallel>
+ <variable>outfile</variable>
+ </parallel>
+ </greeting>
+ <partialCloseDataset var="{outfile}" closeID="88000" />
+ </sequential>
+ </sequentialWithID>
+ </vdl:mainp>
+ <vdl:stopprogressticker />
+ </vdl:mains>
+ </restartLog>
+</project>
Added: trunk/tests/language-behaviour/IO/0011-echo.out
===================================================================
--- trunk/tests/language-behaviour/IO/0011-echo.out (rev 0)
+++ trunk/tests/language-behaviour/IO/0011-echo.out 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+hello
Added: trunk/tests/language-behaviour/IO/0011-echo.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/0011-echo.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/0011-echo.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+hello
Added: trunk/tests/language-behaviour/IO/0011-echo.swift
===================================================================
--- trunk/tests/language-behaviour/IO/0011-echo.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/0011-echo.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,10 @@
+type messagefile;
+
+app (messagefile t) greeting() {
+ echo "hello" stdout=@filename(t);
+}
+
+messagefile outfile <"0011-echo.out">;
+
+outfile = greeting();
+
Added: trunk/tests/language-behaviour/IO/0011-echo.xml
===================================================================
--- trunk/tests/language-behaviour/IO/0011-echo.xml (rev 0)
+++ trunk/tests/language-behaviour/IO/0011-echo.xml 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,29 @@
+<program xmlns="http://ci.uchicago.edu/swift/2009/02/swiftscript"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <types>
+ <type>
+ <typename>messagefile</typename>
+ <typealias>string</typealias>
+ <typestructure></typestructure>
+ </type>
+ </types>
+ <procedure name="greeting" src="line 3">
+
+ <output
+ name="t" type="messagefile"
+
+ xsi:nil="true" />
+ <binding>
+ <application src="line 3">
+ <executable>echo</executable>
+ <stdout><function name="filename">
+ <variableReference>t</variableReference></function></stdout><stringConstant>hello</stringConstant> </application>
+ </binding>
+ </procedure>
+ <variable name="outfile" type="messagefile" isGlobal="false"><file name="0011-echo.out"/></variable>
+ <call proc="greeting" src="line 9">
+ <output><variableReference>outfile</variableReference></output>
+ </call>
+</program>
Added: trunk/tests/language-behaviour/IO/0012-echo-map-20110603-1140-n9omdlcb.log
===================================================================
--- trunk/tests/language-behaviour/IO/0012-echo-map-20110603-1140-n9omdlcb.log (rev 0)
+++ trunk/tests/language-behaviour/IO/0012-echo-map-20110603-1140-n9omdlcb.log 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,33 @@
+2011-06-03 11:40:12,099-0500 DEBUG Loader Max heap: 238616576
+2011-06-03 11:40:12,100-0500 DEBUG textfiles BEGIN SWIFTSCRIPT:
+type messagefile;
+
+(messagefile t) greeting() {
+ app {
+ echo "hello" stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"0012-echo-map.out"> = greeting();
+
+
+
+
+2011-06-03 11:40:12,100-0500 DEBUG textfiles END SWIFTSCRIPT:
+2011-06-03 11:40:12,101-0500 INFO Loader 0012-echo-map.swift: source file is new. Recompiling.
+2011-06-03 11:40:12,683-0500 INFO Karajan Validation of XML intermediate file was successful
+2011-06-03 11:40:12,882-0500 DEBUG Loader setting: tc.file to: ./tc.data
+2011-06-03 11:40:12,882-0500 DEBUG textfiles using default sites file
+2011-06-03 11:40:12,900-0500 INFO VDL2ExecutionContext Stack dump:
+Level 1
+[iA = 0, iB = 0, bA = false, bB = false]
+ vdl:instanceconfig = Swift configuration []
+ vdl:operation = run
+ PATH_SEPARATOR = /
+ swift.home = /home/Alberto/Swift/cog/modules/swift/dist/swift-svn/bin/..
+ #vdl:futureWrapperMap = org.griphyn.vdl.karajan.WrapperMap at d56b37
+
+
+2011-06-03 11:40:13,570-0500 INFO unknown Using sites file: /home/Alberto/Swift/cog/modules/swift/dist/swift-svn/bin/../etc/sites.xml
+2011-06-03 11:40:13,609-0500 INFO unknown Using tc.data: ./tc.data
+2011-06-03 11:40:13,715-0500 INFO AbstractScheduler Setting resources to: {localhost=localhost}
Added: trunk/tests/language-behaviour/IO/0012-echo-map.kml
===================================================================
--- trunk/tests/language-behaviour/IO/0012-echo-map.kml (rev 0)
+++ trunk/tests/language-behaviour/IO/0012-echo-map.kml 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,70 @@
+<project><!-- CACHE ID ee300c16-1a12-4e15-bc05-578b8e792831 -->
+ <import file="sys.xml"/>
+ <import file="scheduler.xml"/>
+ <import file="rlog.xml"/>
+ <import file="vdl.k"/>
+ <types>
+ <xs:schema targetNamespace="http://ci.uchicago.edu/swift/2009/02/swiftscript" xmlns="http://ci.uchicago.edu/swift/2009/02/swiftscript" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:simpleType name="messagefile">
+ <xs:restriction base="string"/>
+ </xs:simpleType>
+ </xs:schema>
+ </types>
+ <global name="swift#string#17000">
+ <vdl:new type="string" value="hello" />
+ </global>
+ <element name="greeting" arguments="t">
+ <parameterlog>
+ <string>output</string>
+ <string>t</string>
+ <vdl:getdatasetprovenanceid var="{t}" />
+ <string>{#thread}</string>
+ </parameterlog>
+ <log level="debug" message="PROCEDURE line=3 thread={#thread} name=greeting"/>
+ <vdl:execute>
+ <vdl:tr>echo</vdl:tr>
+ <vdl:stageout var="{t}"/>
+ <vdl:arguments>
+ <variable>swift#string#17000</variable>
+ </vdl:arguments>
+ <vdl:stdout>
+ <swiftscript:filename>
+ <variable>t</variable>
+ </swiftscript:filename>
+ </vdl:stdout>
+ </vdl:execute>
+ <vdl:closedataset var="{t}"/>
+ <log level="debug" message="PROCEDURE_END line=3"/></element>
+
+ <set name="outfile">
+ <vdl:new type="messagefile" dbgname="outfile" waitfor="88000">
+ <vdl:mapping descriptor="single_file_mapper">
+ <vdl:parameter name="file" value="0012-echo-map.out"/>
+ </vdl:mapping>
+ </vdl:new>
+ </set>
+ <parameterlog>
+ <string>intermediate</string>
+ <string>outfile</string>
+ <vdl:getdatasetprovenanceid var="{outfile}" />
+ <string>{#thread}</string>
+ </parameterlog>
+ <restartLog>
+ <vdl:mains>
+ <vdl:startprogressticker />
+ <vdl:mainp>
+ <sequentialWithID>
+ <sequential>
+ <greeting>
+ <parallel>
+ <variable>outfile</variable>
+ </parallel>
+ </greeting>
+ <partialCloseDataset var="{outfile}" closeID="88000" />
+ </sequential>
+ </sequentialWithID>
+ </vdl:mainp>
+ <vdl:stopprogressticker />
+ </vdl:mains>
+ </restartLog>
+</project>
Added: trunk/tests/language-behaviour/IO/0012-echo-map.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/0012-echo-map.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/0012-echo-map.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+hello
Added: trunk/tests/language-behaviour/IO/0012-echo-map.swift
===================================================================
--- trunk/tests/language-behaviour/IO/0012-echo-map.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/0012-echo-map.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,11 @@
+type messagefile;
+
+(messagefile t) greeting() {
+ app {
+ echo "hello" stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"0012-echo-map.out"> = greeting();
+
+
Added: trunk/tests/language-behaviour/IO/0012-echo-map.xml
===================================================================
--- trunk/tests/language-behaviour/IO/0012-echo-map.xml (rev 0)
+++ trunk/tests/language-behaviour/IO/0012-echo-map.xml 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,29 @@
+<program xmlns="http://ci.uchicago.edu/swift/2009/02/swiftscript"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <types>
+ <type>
+ <typename>messagefile</typename>
+ <typealias>string</typealias>
+ <typestructure></typestructure>
+ </type>
+ </types>
+ <procedure name="greeting" src="line 3">
+
+ <output
+ name="t" type="messagefile"
+
+ xsi:nil="true" />
+ <binding>
+ <application src="line 4">
+ <executable>echo</executable>
+ <stdout><function name="filename">
+ <variableReference>t</variableReference></function></stdout><stringConstant>hello</stringConstant> </application>
+ </binding>
+ </procedure>
+ <variable name="outfile" type="messagefile" isGlobal="false"><file name="0012-echo-map.out"/></variable>
+ <call proc="greeting" src="line 9">
+ <output><variableReference>outfile</variableReference></output>
+ </call>
+</program>
Added: trunk/tests/language-behaviour/IO/readData.circle.in
===================================================================
--- trunk/tests/language-behaviour/IO/readData.circle.in (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.circle.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,2 @@
+x y r name
+10 10 20.0 TheInnerCircle
\ No newline at end of file
Added: trunk/tests/language-behaviour/IO/readData.circle.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/readData.circle.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.circle.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+10 10 20 TheInnerCircle
Added: trunk/tests/language-behaviour/IO/readData.circleArray.in
===================================================================
--- trunk/tests/language-behaviour/IO/readData.circleArray.in (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.circleArray.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+x y r name
+1 1 5 CircleOne
+2 2 7 CircleTwo
+
Added: trunk/tests/language-behaviour/IO/readData.circleArray.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/readData.circleArray.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.circleArray.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+1 2 5 CircleTwo
Added: trunk/tests/language-behaviour/IO/readData.float.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/readData.float.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.float.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+3.1400001
Added: trunk/tests/language-behaviour/IO/readData.int.in
===================================================================
--- trunk/tests/language-behaviour/IO/readData.int.in (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.int.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+77777
Added: trunk/tests/language-behaviour/IO/readData.int.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/readData.int.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.int.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+77777
Added: trunk/tests/language-behaviour/IO/readData.intArray.in
===================================================================
--- trunk/tests/language-behaviour/IO/readData.intArray.in (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.intArray.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+1
+5
+9
+0
\ No newline at end of file
Added: trunk/tests/language-behaviour/IO/readData.intArray.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/readData.intArray.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.intArray.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+1 5 9 0
Added: trunk/tests/language-behaviour/IO/readData.stringArray.in
===================================================================
--- trunk/tests/language-behaviour/IO/readData.stringArray.in (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.stringArray.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+red
+green
+blue
+thermometer
\ No newline at end of file
Added: trunk/tests/language-behaviour/IO/readData.stringArray.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/readData.stringArray.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.stringArray.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+red green blue thermometer
Added: trunk/tests/language-behaviour/IO/readData.swift
===================================================================
--- trunk/tests/language-behaviour/IO/readData.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/readData.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,80 @@
+type file;
+
+type circle {
+ int x;
+ int y;
+ float r;
+ string name;
+}
+
+(file f) createInt() {
+ app{
+ echo "77777" stdout=@filename(f);
+ }
+}
+
+(file f) createFloat() {
+ app{
+ echo "3.1400001" stdout=@filename(f);
+ }
+}
+
+
+(file f) write(string data) {
+ app{
+ echo data stdout=@filename(f);
+ }
+}
+
+int i;
+float fl;
+
+int ia[];
+
+string sa[];
+
+circle ca[];
+
+circle c;
+
+//will be generated
+file f <"readData.int.in">;
+
+//input file. assumed on disk
+file g <"readData.intArray.in">;
+
+// will be generated
+file h <"readData.float.in">;
+
+f = createInt();
+h = createFloat();
+
+i = readData(f);
+fl = readData(h);
+
+file o1 <"readData.int.out">;
+o1 = write(@strcat(i));
+
+ia = readData(g);
+
+file o2 <"readData.intArray.out">;
+o2 = write(@strcat(ia[0], " ", ia[1], " ", ia[2], " ", ia[3]));
+
+sa = readData("readData.stringArray.in");
+
+file o3 <"readData.stringArray.out">;
+o3 = write(@strcat(sa[0], " ", sa[1], " ", sa[2], " ", sa[3]));
+
+c = readData("readData.circle.in");
+
+file o4 <"readData.circle.out">;
+o4 = write(@strcat(c.x, " ", c.y, " ", c.r, " ", c.name));
+
+ca = readData("readData.circleArray.in");
+
+file o5 <"readData.circleArray.out">;
+o5 = write(@strcat(ca[0].x, " ", ca[1].y, " ", ca[0].r, " ", ca[1].name));
+
+file o6 <"readData.float.out">;
+o6 = write(@strcat(fl));
+
Added: trunk/tests/language-behaviour/IO/readData2.in
===================================================================
--- trunk/tests/language-behaviour/IO/readData2.in (rev 0)
+++ trunk/tests/language-behaviour/IO/readData2.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,6 @@
+rows[0].columns[0] = 0
+rows[0].columns[1] = 2
+rows[0].columns[2] = 4
+rows[1].columns[0] = 1
+rows[1].columns[1] = 3
+rows[1].columns[2] = 5
Added: trunk/tests/language-behaviour/IO/readData2.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/readData2.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/readData2.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+15
Added: trunk/tests/language-behaviour/IO/readData2.swift
===================================================================
--- trunk/tests/language-behaviour/IO/readData2.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/readData2.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,33 @@
+type vector {
+ int columns[];
+}
+
+type matrix {
+ vector rows[];
+}
+
+type file;
+
+(file o) echo(int s) {
+ app {
+ echo s stdout=@o;
+ }
+}
+
+
+matrix m;
+
+m = readData2("readData2.in");
+
+int s;
+
+s = m.rows[0].columns[0] +
+ m.rows[0].columns[1] +
+ m.rows[0].columns[2] +
+ m.rows[1].columns[0] +
+ m.rows[1].columns[1] +
+ m.rows[1].columns[2] ;
+
+file out <"readData2.out">;
+out = echo(s);
+
Added: trunk/tests/language-behaviour/IO/writeDataPrimitive.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataPrimitive.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataPrimitive.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+foo
\ No newline at end of file
Added: trunk/tests/language-behaviour/IO/writeDataPrimitive.swift
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataPrimitive.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataPrimitive.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,8 @@
+type file;
+
+string s = "foo";
+
+file f <"writeDataPrimitive.out">;
+
+f=writeData(s);
+
Added: trunk/tests/language-behaviour/IO/writeDataStringArray.swift
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataStringArray.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataStringArray.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,8 @@
+type file;
+
+string s[] = ["foo", "bar"];
+
+file f <"writeDataStringArray.out">;
+
+f=writeData(s);
+
Added: trunk/tests/language-behaviour/IO/writeDataStringArray2.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataStringArray2.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataStringArray2.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,5 @@
+foo
+bar
+baz
+qux
+frrrr
Added: trunk/tests/language-behaviour/IO/writeDataStringArray2.swift
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataStringArray2.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataStringArray2.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type file;
+
+string s[];
+
+file f <"writeDataStringArray2.out">;
+
+f=writeData(s);
+
+s[2] = "baz";
+s[3] = "qux";
+s[0] = "foo";
+s[1] = "bar";
+s[4] = "frrrr";
+
Added: trunk/tests/language-behaviour/IO/writeDataStruct.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataStruct.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataStruct.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,2 @@
+r c l
+Baz BAZ baz
Added: trunk/tests/language-behaviour/IO/writeDataStruct.swift
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataStruct.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataStruct.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type file;
+
+type S { string l; string c; string r; }
+
+S s;
+
+file f <"writeDataStruct.out">;
+
+f=writeData(s);
+
+s.l = "baz";
+s.c = "BAZ";
+s.r = "Baz";
+
Added: trunk/tests/language-behaviour/IO/writeDataStructArray2.out.expected
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataStructArray2.out.expected (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataStructArray2.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,6 @@
+r c l
+Foo FOO foo
+Bar BAR bar
+Baz BAZ baz
+Qux QUX qux
+Frrrr FRRRR frrrr
Added: trunk/tests/language-behaviour/IO/writeDataStructArray2.swift
===================================================================
--- trunk/tests/language-behaviour/IO/writeDataStructArray2.swift (rev 0)
+++ trunk/tests/language-behaviour/IO/writeDataStructArray2.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,26 @@
+type file;
+
+type S { string l; string c; string r; }
+
+S s[];
+
+file f <"writeDataStructArray2.out">;
+
+f=writeData(s);
+
+s[2].l = "baz";
+s[2].c = "BAZ";
+s[2].r = "Baz";
+s[3].l = "qux";
+s[3].c = "QUX";
+s[3].r = "Qux";
+s[0].l = "foo";
+s[0].c = "FOO";
+s[0].r = "Foo";
+s[1].l = "bar";
+s[1].c = "BAR";
+s[1].r = "Bar";
+s[4].l = "frrrr";
+s[4].c = "FRRRR";
+s[4].r = "Frrrr";
+
Copied: trunk/tests/language-behaviour/arithmetic/006-add.out.expected (from rev 4602, trunk/tests/language-behaviour/006-add.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/006-add.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/006-add.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+135
Copied: trunk/tests/language-behaviour/arithmetic/006-add.swift (from rev 4602, trunk/tests/language-behaviour/006-add.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/006-add.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/006-add.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"006-add.out">;
+
+int i = 42+93;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/007-add-in-proc-add.out.expected (from rev 4602, trunk/tests/language-behaviour/007-add-in-proc-add.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/007-add-in-proc-add.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/007-add-in-proc-add.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+189
Copied: trunk/tests/language-behaviour/arithmetic/007-add-in-proc-add.swift (from rev 4602, trunk/tests/language-behaviour/007-add-in-proc-add.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/007-add-in-proc-add.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/007-add-in-proc-add.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,12 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"007-add-in-proc-add.out">;
+
+outfile = greeting(88+101);
+
Copied: trunk/tests/language-behaviour/arithmetic/008-add-multiply.out.expected (from rev 4602, trunk/tests/language-behaviour/008-add-multiply.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/008-add-multiply.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/008-add-multiply.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+8
Copied: trunk/tests/language-behaviour/arithmetic/008-add-multiply.swift (from rev 4602, trunk/tests/language-behaviour/008-add-multiply.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/008-add-multiply.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/008-add-multiply.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"008-add-multiply.out">;
+
+int i = 2+2*3;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/009-multiply.out.expected (from rev 4602, trunk/tests/language-behaviour/009-multiply.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/009-multiply.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/009-multiply.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+42
Copied: trunk/tests/language-behaviour/arithmetic/009-multiply.swift (from rev 4602, trunk/tests/language-behaviour/009-multiply.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/009-multiply.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/009-multiply.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"009-multiply.out">;
+
+int i = 6*7;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/010-divide.out.expected (from rev 4602, trunk/tests/language-behaviour/010-divide.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/010-divide.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/010-divide.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+33
Copied: trunk/tests/language-behaviour/arithmetic/010-divide.swift (from rev 4602, trunk/tests/language-behaviour/010-divide.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/010-divide.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/010-divide.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"010-divide.out">;
+
+int i = 99%/3;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/011-divide-float.out.expected (from rev 4602, trunk/tests/language-behaviour/011-divide-float.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/011-divide-float.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/011-divide-float.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0.3333333333333333
Copied: trunk/tests/language-behaviour/arithmetic/011-divide-float.swift (from rev 4602, trunk/tests/language-behaviour/011-divide-float.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/011-divide-float.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/011-divide-float.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(float m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"011-divide-float.out">;
+
+float i = 1.0/3.0;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/013-mod.out.expected (from rev 4602, trunk/tests/language-behaviour/013-mod.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/013-mod.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/013-mod.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+19
Copied: trunk/tests/language-behaviour/arithmetic/013-mod.swift (from rev 4602, trunk/tests/language-behaviour/013-mod.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/013-mod.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/013-mod.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"013-mod.out">;
+
+int i = 99 %% 20;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/014-subtract.out.expected (from rev 4602, trunk/tests/language-behaviour/014-subtract.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/014-subtract.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/014-subtract.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+-37
Copied: trunk/tests/language-behaviour/arithmetic/014-subtract.swift (from rev 4602, trunk/tests/language-behaviour/014-subtract.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/014-subtract.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/014-subtract.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"014-subtract.out">;
+
+int i = 44-81;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/0145-unary-subtact.out.expected (from rev 4602, trunk/tests/language-behaviour/0145-unary-subtact.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/0145-unary-subtact.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/0145-unary-subtact.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+-989929
Copied: trunk/tests/language-behaviour/arithmetic/0145-unary-subtact.swift (from rev 4602, trunk/tests/language-behaviour/0145-unary-subtact.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/0145-unary-subtact.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/0145-unary-subtact.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,15 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"0145-unary-subtact.out">;
+
+int j = 989929;
+int i = -j;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/015-lesseq.out.expected (from rev 4602, trunk/tests/language-behaviour/015-lesseq.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/015-lesseq.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/015-lesseq.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+true
Copied: trunk/tests/language-behaviour/arithmetic/015-lesseq.swift (from rev 4602, trunk/tests/language-behaviour/015-lesseq.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/015-lesseq.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/015-lesseq.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(boolean m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"015-lesseq.out">;
+
+boolean i = 7<=9;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/016-greatereq.out.expected (from rev 4602, trunk/tests/language-behaviour/016-greatereq.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/016-greatereq.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/016-greatereq.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+false
Copied: trunk/tests/language-behaviour/arithmetic/016-greatereq.swift (from rev 4602, trunk/tests/language-behaviour/016-greatereq.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/016-greatereq.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/016-greatereq.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(boolean m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"016-greatereq.out">;
+
+boolean i = 7>=9;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/017-greater.out.expected (from rev 4602, trunk/tests/language-behaviour/017-greater.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/017-greater.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/017-greater.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+false
Copied: trunk/tests/language-behaviour/arithmetic/017-greater.swift (from rev 4602, trunk/tests/language-behaviour/017-greater.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/017-greater.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/017-greater.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(boolean m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"017-greater.out">;
+
+boolean i = 7>9;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/018-less.out.expected (from rev 4602, trunk/tests/language-behaviour/018-less.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/018-less.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/018-less.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+true
Copied: trunk/tests/language-behaviour/arithmetic/018-less.swift (from rev 4602, trunk/tests/language-behaviour/018-less.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/018-less.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/018-less.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(boolean m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"018-less.out">;
+
+boolean i = 7<9;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/019-equals.out.expected (from rev 4602, trunk/tests/language-behaviour/019-equals.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/019-equals.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/019-equals.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+false
Copied: trunk/tests/language-behaviour/arithmetic/019-equals.swift (from rev 4602, trunk/tests/language-behaviour/019-equals.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/019-equals.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/019-equals.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(boolean m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"019-equals.out">;
+
+boolean i = 7==9;
+
+outfile = greeting(i);
+
Copied: trunk/tests/language-behaviour/arithmetic/0191-not-equals.out.expected (from rev 4602, trunk/tests/language-behaviour/0191-not-equals.out.expected)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/0191-not-equals.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/0191-not-equals.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+true
Copied: trunk/tests/language-behaviour/arithmetic/0191-not-equals.swift (from rev 4602, trunk/tests/language-behaviour/0191-not-equals.swift)
===================================================================
--- trunk/tests/language-behaviour/arithmetic/0191-not-equals.swift (rev 0)
+++ trunk/tests/language-behaviour/arithmetic/0191-not-equals.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(boolean m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"0191-not-equals.out">;
+
+boolean i = 7!=9;
+
+outfile = greeting(i);
+
Added: trunk/tests/language-behaviour/arrays/020-array.out.expected
===================================================================
--- trunk/tests/language-behaviour/arrays/020-array.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arrays/020-array.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+4
Added: trunk/tests/language-behaviour/arrays/020-array.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/020-array.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/020-array.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,16 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"020-array.out">;
+
+int i[] = [ 3, 1, 4, 1, 5];
+
+int j = i[2];
+
+outfile = greeting(j);
+
Added: trunk/tests/language-behaviour/arrays/021-array-in-proc-param.out.expected
===================================================================
--- trunk/tests/language-behaviour/arrays/021-array-in-proc-param.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arrays/021-array-in-proc-param.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+1
Added: trunk/tests/language-behaviour/arrays/021-array-in-proc-param.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/021-array-in-proc-param.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/021-array-in-proc-param.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"021-array-in-proc-param.out">;
+
+int i[] = [ 3, 1, 4, 1, 5];
+
+outfile = greeting(i[3]);
+
Added: trunk/tests/language-behaviour/arrays/022-array-with-exprs.out.expected
===================================================================
--- trunk/tests/language-behaviour/arrays/022-array-with-exprs.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arrays/022-array-with-exprs.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+22
Added: trunk/tests/language-behaviour/arrays/022-array-with-exprs.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/022-array-with-exprs.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/022-array-with-exprs.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,16 @@
+type messagefile {}
+
+(messagefile t) greeting(int m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"022-array-with-exprs.out">;
+
+int i[] = [ 1+91, 3+3, 16+3*2 , 1, 5];
+
+int j = i[2];
+
+outfile = greeting(j);
+
Added: trunk/tests/language-behaviour/arrays/025-array-passing.out.expected
===================================================================
--- trunk/tests/language-behaviour/arrays/025-array-passing.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arrays/025-array-passing.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+two
Added: trunk/tests/language-behaviour/arrays/025-array-passing.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/025-array-passing.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/025-array-passing.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile {}
+
+(messagefile t) greeting(string m[]) {
+ app {
+ echo m[1] stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"025-array-passing.out">;
+
+string msg[] = [ "one", "two" ];
+
+outfile = greeting(msg);
+
Added: trunk/tests/language-behaviour/arrays/027-array-assignment.out.expected
===================================================================
--- trunk/tests/language-behaviour/arrays/027-array-assignment.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arrays/027-array-assignment.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+two
Added: trunk/tests/language-behaviour/arrays/027-array-assignment.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/027-array-assignment.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/027-array-assignment.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,15 @@
+type messagefile {}
+
+(messagefile t) greeting(string m[]) {
+ app {
+ echo m[1] stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"027-array-assignment.out">;
+
+string msg[];
+msg = [ "one", "two" ];
+
+outfile = greeting(msg);
+
Added: trunk/tests/language-behaviour/arrays/028-array-assignment.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/028-array-assignment.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/028-array-assignment.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,18 @@
+type messagefile {}
+
+(messagefile t) greeting(string m[]) {
+ app {
+ echo m[1] stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"027-array-assignment.out">;
+
+string msg[];
+string baz[];
+
+baz = msg;
+msg = [ "one", "two" ];
+
+outfile = greeting(baz);
+
Added: trunk/tests/language-behaviour/arrays/029-array-assignment-sequence.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/029-array-assignment-sequence.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/029-array-assignment-sequence.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,10 @@
+int a,b,c,d,e,f,g;
+trace(g);
+a=8645;
+b=a;
+c=b;
+d=c;
+e=d;
+f=e;
+g=f;
+
Added: trunk/tests/language-behaviour/arrays/083-array-assign.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/083-array-assign.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/083-array-assign.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,13 @@
+type messagefile;
+
+(messagefile t) greeting(string m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagefile outfile[];
+
+outfile[0] = greeting("hi");
+outfile[1] = greeting("bye");
+
Added: trunk/tests/language-behaviour/arrays/110-array-range-exprs.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/110-array-range-exprs.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/110-array-range-exprs.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,2 @@
+
+int i[] = [ 1+1 : 5+5 : 1*3 ];
Added: trunk/tests/language-behaviour/arrays/1101-array-range.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/1101-array-range.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/1101-array-range.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,8 @@
+
+int i[] = [0:9];
+
+int j[] = [0:9];
+
+foreach ix in i {
+ trace(j[ix]);
+}
Added: trunk/tests/language-behaviour/arrays/1102-array-range-step.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/1102-array-range-step.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/1102-array-range-step.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,8 @@
+
+int i[] = [0:9];
+
+int j[] = [0:19:2];
+
+foreach ix in i {
+ trace(j[ix]);
+}
Added: trunk/tests/language-behaviour/arrays/111-array-individual-assigns.out.expected
===================================================================
--- trunk/tests/language-behaviour/arrays/111-array-individual-assigns.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arrays/111-array-individual-assigns.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+100
Added: trunk/tests/language-behaviour/arrays/111-array-individual-assigns.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/111-array-individual-assigns.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/111-array-individual-assigns.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,18 @@
+
+int i[];
+
+i[0]=1;
+i[1]=100;
+i[2]=10000;
+
+type messagefile;
+
+(messagefile t) p(int inp[]) {
+ app {
+ echo inp[1] stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"111-array-individual-assigns.out">;
+
+outfile = p(i);
Added: trunk/tests/language-behaviour/arrays/162-dot-on-array.out.expected
===================================================================
--- trunk/tests/language-behaviour/arrays/162-dot-on-array.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arrays/162-dot-on-array.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+two-C
Added: trunk/tests/language-behaviour/arrays/162-dot-on-array.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/162-dot-on-array.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/162-dot-on-array.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,36 @@
+type messagefile;
+
+(messagefile t) greeting(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"162-dot-on-array.out">;
+
+type astruct {
+ string a;
+ string b;
+ string c;
+};
+
+astruct foo[];
+
+foo[0].a = "zero-A";
+foo[0].b = "zero-B";
+foo[0].c = "zero-C";
+
+foo[1].a = "one-A";
+foo[1].b = "one-B";
+foo[1].c = "one-C";
+
+foo[2].a = "two-A";
+foo[2].b = "two-B";
+foo[2].c = "two-C";
+
+string s[] = foo.c;
+
+string u = s[2];
+
+outfile = greeting(u);
+
Added: trunk/tests/language-behaviour/arrays/array_multidimensional-2.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/array_multidimensional-2.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/array_multidimensional-2.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,19 @@
+type file;
+
+(file t) echo_array (string s[][]) {
+ app {
+ echo s[0][0] s[1][0] s[1][1] stdout=@filename(t);
+ }
+}
+
+string greetings[][];
+
+greetings[0][0] = "left";
+greetings[0][1] = "right";
+greetings[1][0] = "up";
+greetings[1][1] = "down";
+
+file hw <"array_multidimensional_index.out">;
+
+hw = echo_array(greetings);
+
Added: trunk/tests/language-behaviour/arrays/array_multidimensional_assign.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/array_multidimensional_assign.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/array_multidimensional_assign.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,16 @@
+type file {}
+
+(file t) echo_array (string s[][]) {
+ app {
+ echo s[0][0] s[1][0] s[1][1] stdout=@filename(t);
+ }
+}
+
+string greetings[][];
+
+greetings = [ [ "left", "right" ], ["up", "down"]];
+
+file hw <"array_multidimensional_assign.out">;
+
+hw = echo_array(greetings);
+
Added: trunk/tests/language-behaviour/arrays/array_multidimensional_index.out.expected
===================================================================
--- trunk/tests/language-behaviour/arrays/array_multidimensional_index.out.expected (rev 0)
+++ trunk/tests/language-behaviour/arrays/array_multidimensional_index.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+left up down
Added: trunk/tests/language-behaviour/arrays/array_multidimensional_index.swift
===================================================================
--- trunk/tests/language-behaviour/arrays/array_multidimensional_index.swift (rev 0)
+++ trunk/tests/language-behaviour/arrays/array_multidimensional_index.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type file {}
+
+(file t) echo_array (string s[][]) {
+ app {
+ echo s[0][0] s[1][0] s[1][1] stdout=@filename(t);
+ }
+}
+
+string greetings[][] = [ [ "left", "right" ], ["up", "down"]];
+
+file hw <"array_multidimensional_index.out">;
+
+hw = echo_array(greetings);
+
Added: trunk/tests/language-behaviour/foreach/0083-for.one.in
===================================================================
--- trunk/tests/language-behaviour/foreach/0083-for.one.in (rev 0)
+++ trunk/tests/language-behaviour/foreach/0083-for.one.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+LLLL
Added: trunk/tests/language-behaviour/foreach/0083-for.one.in.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/0083-for.one.in.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/0083-for.one.in.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+./0083-for.one.in
Added: trunk/tests/language-behaviour/foreach/0083-for.swift
===================================================================
--- trunk/tests/language-behaviour/foreach/0083-for.swift (rev 0)
+++ trunk/tests/language-behaviour/foreach/0083-for.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+type file;
+
+
+(file t) echo(string m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+
+file f1[] <filesys_mapper;pattern="0083-for*.in",location=".">;
+
+foreach i1 in f1 {
+ string fn = @filename(i1);
+ file o <single_file_mapper;file=@strcat(fn,".out")>;
+ o = echo(fn);
+}
Added: trunk/tests/language-behaviour/foreach/0083-for.two.in
===================================================================
--- trunk/tests/language-behaviour/foreach/0083-for.two.in (rev 0)
+++ trunk/tests/language-behaviour/foreach/0083-for.two.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+RRRR
Added: trunk/tests/language-behaviour/foreach/0083-for.two.in.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/0083-for.two.in.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/0083-for.two.in.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+./0083-for.two.in
Added: trunk/tests/language-behaviour/foreach/0084-for.swift
===================================================================
--- trunk/tests/language-behaviour/foreach/0084-for.swift (rev 0)
+++ trunk/tests/language-behaviour/foreach/0084-for.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type file;
+
+
+(file t) echo(string m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+
+file f1[] <filesys_mapper;pattern="0083-for*.in",location=".">;
+
+foreach i1 in f1 {
+}
Added: trunk/tests/language-behaviour/foreach/050-foreach.blue.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/050-foreach.blue.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/050-foreach.blue.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test
Added: trunk/tests/language-behaviour/foreach/050-foreach.green.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/050-foreach.green.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/050-foreach.green.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test
Added: trunk/tests/language-behaviour/foreach/050-foreach.red.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/050-foreach.red.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/050-foreach.red.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test
Added: trunk/tests/language-behaviour/foreach/050-foreach.swift
===================================================================
--- trunk/tests/language-behaviour/foreach/050-foreach.swift (rev 0)
+++ trunk/tests/language-behaviour/foreach/050-foreach.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,15 @@
+type messagefile {}
+
+(messagefile t) greeting() {
+ app {
+ echo "test" stdout=@filename(t);
+ }
+}
+
+string array[] = ["red", "green", "blue"];
+
+foreach s in array {
+ messagefile outfile <single_file_mapper;file=@strcat("050-foreach.",s,".out")>;
+ outfile = greeting();
+}
+
Added: trunk/tests/language-behaviour/foreach/051-foreach.blue.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/051-foreach.blue.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/051-foreach.blue.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+The filename is: 051-foreach.blue.out and the loop var is: blue
Added: trunk/tests/language-behaviour/foreach/051-foreach.green.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/051-foreach.green.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/051-foreach.green.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+The filename is: 051-foreach.green.out and the loop var is: green
Added: trunk/tests/language-behaviour/foreach/051-foreach.red.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/051-foreach.red.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/051-foreach.red.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+The filename is: 051-foreach.red.out and the loop var is: red
Added: trunk/tests/language-behaviour/foreach/051-foreach.swift
===================================================================
--- trunk/tests/language-behaviour/foreach/051-foreach.swift (rev 0)
+++ trunk/tests/language-behaviour/foreach/051-foreach.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,20 @@
+type messagefile {}
+
+(messagefile t) greeting(string l) {
+ app {
+ echo @strcat("The filename is: ", @filename(t),
+ " and the loop var is: ", l)
+ stdout=@filename(t);
+ }
+}
+
+string array[] = ["red", "green", "blue"];
+
+foreach s in array {
+ messagefile outfile <
+ single_file_mapper;
+ file=@strcat("051-foreach.",s,".out")
+ >;
+ outfile = greeting(s);
+}
+
Added: trunk/tests/language-behaviour/foreach/052-foreach-index.blue.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/052-foreach-index.blue.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/052-foreach-index.blue.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+The filename is: 052-foreach-index.blue.out, the loop var is: blueand the index is: 2
Added: trunk/tests/language-behaviour/foreach/052-foreach-index.green.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/052-foreach-index.green.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/052-foreach-index.green.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+The filename is: 052-foreach-index.green.out, the loop var is: greenand the index is: 1
Added: trunk/tests/language-behaviour/foreach/052-foreach-index.red.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/052-foreach-index.red.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/052-foreach-index.red.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+The filename is: 052-foreach-index.red.out, the loop var is: redand the index is: 0
Added: trunk/tests/language-behaviour/foreach/052-foreach-index.swift
===================================================================
--- trunk/tests/language-behaviour/foreach/052-foreach-index.swift (rev 0)
+++ trunk/tests/language-behaviour/foreach/052-foreach-index.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,26 @@
+type messagefile {}
+
+(messagefile t) greeting(int ix, string l) {
+ app {
+ echo @strcat("The filename is: ", @filename(t),
+ ", the loop var is: ", l,
+ "and the index is: ", ix)
+ stdout=@filename(t);
+ }
+}
+
+string array[] = ["red", "green", "blue"];
+
+// this highlights a bug, at least after all commits
+// that 'index' is being treated as a string, not as
+// an integer...
+
+// try this test earlier on, though
+foreach s, index in array {
+ messagefile outfile <
+ single_file_mapper;
+ file=@strcat("052-foreach-index.",s,".out")
+ >;
+ outfile = greeting(index, s);
+}
+
Added: trunk/tests/language-behaviour/foreach/056-foreach-if.swift
===================================================================
--- trunk/tests/language-behaviour/foreach/056-foreach-if.swift (rev 0)
+++ trunk/tests/language-behaviour/foreach/056-foreach-if.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,26 @@
+type messagefile {}
+
+(messagefile t) greeting(int ix, string l) {
+ app {
+ echo @strcat("The filename is: ", @filename(t),
+ ", the loop var is: ", l,
+ "and the index is: ", ix)
+ stdout=@filename(t);
+ }
+}
+
+string array[] = ["red", "green", "blue"];
+
+// this highlights a bug, at least after all commits
+// that 'index' is being treated as a string, not as
+// an integer...
+
+messagefile outfiles[];
+
+// try this test earlier on, though
+foreach s, index in array {
+ if( index %% 2 == 1) {
+ outfiles[index] = greeting(index, s);
+ }
+}
+
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.check.sh
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.check.sh (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.check.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -x
+
+for count in `seq --format "%04.f" 0 1 9`
+do
+ [ -f "057-foreach-twice-range.first.$count.out" ] || exit 1
+ CONTENTS1=$( cat 057-foreach-twice-range.first.$count.out.expected )
+ CONTENTS2=$( cat 057-foreach-twice-range.first.$count.out )
+ [[ $CONTENTS1 == $CONTENTS2 ]] || exit 1
+ [ -f "057-foreach-twice-range.second.$count.out" ] || exit 1
+ CONTENTS3=$( cat 057-foreach-twice-range.second.$count.out.expected )
+ CONTENTS4=$( cat 057-foreach-twice-range.second.$count.out )
+ [[ $CONTENTS3 == $CONTENTS4 ]] || exit 1
+done
+exit 0
+
Property changes on: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.check.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.clean.sh
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.clean.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -x
+
+rm -v 057-foreach-twice-range.*.out || exit 1
+
+exit 0
Property changes on: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0000.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0000.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0000.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-0
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0001.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0001.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0001.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-1
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0002.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0002.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0002.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-2
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0003.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0003.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0003.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-3
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0004.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0004.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0004.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-4
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0005.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0005.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0005.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-5
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0006.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0006.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0006.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-6
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0007.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0007.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0007.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-7
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0008.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0008.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0008.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-8
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0009.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0009.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.first.0009.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test1-9
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0000.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0000.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0000.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-0
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0001.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0001.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0001.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-1
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0002.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0002.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0002.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-2
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0003.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0003.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0003.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-3
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0004.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0004.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0004.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-4
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0005.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0005.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0005.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-5
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0006.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0006.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0006.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-6
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0007.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0007.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0007.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-7
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0008.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0008.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0008.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-8
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0009.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0009.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.second.0009.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+test2-9
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.setup.sh
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.setup.sh (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.setup.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cp -v $GROUP/057*expected . || exit 1
Property changes on: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.setup.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/foreach/057-foreach-twice-range.swift
===================================================================
--- trunk/tests/language-behaviour/foreach/057-foreach-twice-range.swift (rev 0)
+++ trunk/tests/language-behaviour/foreach/057-foreach-twice-range.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,20 @@
+type file;
+
+app (file o) echo (string msg)
+{
+ echo msg stdout=@o;
+}
+
+file out[]<simple_mapper; location=".", prefix="057-foreach-twice-range.first.",suffix=".out">;
+file out2[]<simple_mapper; location=".", prefix="057-foreach-twice-range.second.",suffix=".out">;
+
+foreach a,i in [0:9] {
+ string s = @strcat("test1-", i);
+ out[i] = echo(s);
+}
+
+foreach a,i in [0:9] {
+ string s = @strcat("test2-", i);
+ out2[i] = echo(s);
+}
+
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.check.sh
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.check.sh (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.check.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -x
+
+for count in `seq --format "%04.f" 0 1 2`
+do
+ [ -f "058-foreach-twice-string.first.$count.out" ] || exit 1
+ CONTENTS1=$( cat 058-foreach-twice-string.first.$count.out.expected )
+ CONTENTS2=$( cat 058-foreach-twice-string.first.$count.out )
+ [[ $CONTENTS1 == $CONTENTS2 ]] || exit 1
+ [ -f "058-foreach-twice-string.second.$count.out" ] || exit 1
+ CONTENTS3=$( cat 058-foreach-twice-string.second.$count.out.expected )
+ CONTENTS4=$( cat 058-foreach-twice-string.second.$count.out )
+ [[ $CONTENTS3 == $CONTENTS4 ]] || exit 1
+done
+exit 0
+
Property changes on: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.check.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.clean.sh
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.clean.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+set -x
+
+rm -v 058-foreach-twice-string.*.out || exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0000.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0000.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0000.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+zero
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0001.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0001.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0001.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+one
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0002.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0002.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.first.0002.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+two
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0000.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0000.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0000.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+zero
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0001.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0001.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0001.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+one
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0002.out.expected
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0002.out.expected (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.second.0002.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+two
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.setup.sh
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.setup.sh (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.setup.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cp -v $GROUP/058*expected . || exit 1
Property changes on: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.setup.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/foreach/058-foreach-twice-string.swift
===================================================================
--- trunk/tests/language-behaviour/foreach/058-foreach-twice-string.swift (rev 0)
+++ trunk/tests/language-behaviour/foreach/058-foreach-twice-string.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,19 @@
+type file;
+
+app (file o) echo (string f)
+{
+ echo @f stdout=@o;
+}
+
+file out[]<simple_mapper; location=".", prefix="058-foreach-twice-string.first.",suffix=".out">;
+file out2[]<simple_mapper; location=".", prefix="058-foreach-twice-string.second.",suffix=".out">;
+string words[] = ["zero", "one", "two"];
+
+foreach w,i in words {
+ out[i] = echo(w);
+}
+
+foreach w,i in words {
+ out2[i] = echo(w);
+}
+
Added: trunk/tests/language-behaviour/mappers/0032-strcat-mapper-param.1.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0032-strcat-mapper-param.1.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0032-strcat-mapper-param.1.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0032-strcat-mapper-param.1
Added: trunk/tests/language-behaviour/mappers/0032-strcat-mapper-param.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0032-strcat-mapper-param.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0032-strcat-mapper-param.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,18 @@
+type file;
+
+
+(file t) echo(string m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+
+// file f1[] <filesys_mapper;pattern="0083-for*.in",location=".">;
+
+
+file f1 <"0032-strcat-mapper-param.1">;
+
+ string fn = @filename(f1);
+ file o <single_file_mapper;file=@strcat(fn,".out")>;
+ o = echo(fn);
Added: trunk/tests/language-behaviour/mappers/070-singlefilemapper.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/070-singlefilemapper.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/070-singlefilemapper.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+070-singlefilemapper.out
Added: trunk/tests/language-behaviour/mappers/070-singlefilemapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/070-singlefilemapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/070-singlefilemapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,12 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"070-singlefilemapper.out">;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.check.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.check.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.check.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -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/mappers/071-singlefilemapper-input.check.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.clean.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.clean.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -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/mappers/071-singlefilemapper-input.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.in
===================================================================
--- trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+foo
Added: trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+071-singlefilemapper-input.in
Added: trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.setup.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.setup.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.setup.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -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/mappers/071-singlefilemapper-input.setup.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/071-singlefilemapper-input.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,11 @@
+type messagefile;
+
+app (messagefile o) write(messagefile i) {
+ echo @filename(i) stdout=@filename(o);
+}
+
+messagefile infile <"071-singlefilemapper-input.in">;
+messagefile outfile <"071-singlefilemapper-input.out">;
+
+outfile = write(infile);
+
Added: trunk/tests/language-behaviour/mappers/072-simplemapper.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/072-simplemapper.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/072-simplemapper.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+072-simplemapper.out
Added: trunk/tests/language-behaviour/mappers/072-simplemapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/072-simplemapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/072-simplemapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+messagefile outfile <simple_mapper;
+ prefix="072-simplemapper",
+ suffix=".out">;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/0721-simplemapper-array.0000.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0721-simplemapper-array.0000.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0721-simplemapper-array.0000.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0721-simplemapper-array.0000.out
Added: trunk/tests/language-behaviour/mappers/0721-simplemapper-array.0005.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0721-simplemapper-array.0005.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0721-simplemapper-array.0005.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0721-simplemapper-array.0005.out
Added: trunk/tests/language-behaviour/mappers/0721-simplemapper-array.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0721-simplemapper-array.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0721-simplemapper-array.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,15 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+messagefile outfile[] <simple_mapper;
+ prefix="0721-simplemapper-array.",
+ suffix=".out">;
+
+outfile[0] = write();
+outfile[5] = write();
+
Added: trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000000000.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000000000.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000000000.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0722-simplemapper-padding.000000000.out
Added: trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000000005.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000000005.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000000005.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0722-simplemapper-padding.000000005.out
Added: trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000075943.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000075943.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.000075943.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0722-simplemapper-padding.000075943.out
Added: trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0722-simplemapper-padding.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+messagefile outfile[] <simple_mapper;
+ prefix="0722-simplemapper-padding.",
+ suffix=".out",
+ padding="9">;
+
+outfile[0] = write();
+outfile[5] = write();
+outfile[75943] = write();
+
Added: trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.0.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.0.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.0.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0723-simplemapper-nopadding.0.out
Added: trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.5.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.5.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.5.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0723-simplemapper-nopadding.5.out
Added: trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.75943.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.75943.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.75943.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0723-simplemapper-nopadding.75943.out
Added: trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0723-simplemapper-nopadding.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+messagefile outfile[] <simple_mapper;
+ prefix="0723-simplemapper-nopadding.",
+ suffix=".out",
+ padding="0">;
+
+outfile[0] = write();
+outfile[5] = write();
+outfile[75943] = write();
+
Added: trunk/tests/language-behaviour/mappers/073-simplemapper.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/073-simplemapper.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/073-simplemapper.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+073-simplemapper.out
Added: trunk/tests/language-behaviour/mappers/073-simplemapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/073-simplemapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/073-simplemapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+// this one is like test 072-simplemapper, but checks that
+// a dot is added to the front of the suffix if its missing
+
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+messagefile outfile <simple_mapper;
+ prefix="073-simplemapper",
+ suffix="out">;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/075-array-mapper.first.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/075-array-mapper.first.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/075-array-mapper.first.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+075-array-mapper.first.out
Added: trunk/tests/language-behaviour/mappers/075-array-mapper.second.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/075-array-mapper.second.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/075-array-mapper.second.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+075-array-mapper.second.out
Added: trunk/tests/language-behaviour/mappers/075-array-mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/075-array-mapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/075-array-mapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,18 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+string fns[]=["075-array-mapper.first.out",
+ "075-array-mapper.second.out",
+ "075-array-mapper.third.out"];
+
+messagefile outfile[] <array_mapper; files=fns>;
+
+outfile[0] = write();
+outfile[1] = write();
+outfile[2] = write();
+
Added: trunk/tests/language-behaviour/mappers/075-array-mapper.third.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/075-array-mapper.third.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/075-array-mapper.third.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+075-array-mapper.third.out
Added: trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.first.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.first.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.first.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 0
Added: trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.second.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.second.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.second.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 1
Added: trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,16 @@
+type messagefile;
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+string fns="0751-fixed-array-mapper.first.out 0751-fixed-array-mapper.second.out 0751-fixed-array-mapper.third.out";
+
+messagefile outfile[] <fixed_array_mapper; files=fns>;
+
+outfile[0] = write("slot 0");
+outfile[1] = write("slot 1");
+outfile[2] = write("slot 2");
+
Added: trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.third.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.third.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0751-fixed-array-mapper.third.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 2
Added: trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.check.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.check.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.check.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -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/mappers/07511-fixed-array-mapper-input.check.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.clean.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.clean.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -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/mappers/07511-fixed-array-mapper-input.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.setup.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.setup.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.setup.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -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/mappers/07511-fixed-array-mapper-input.setup.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07511-fixed-array-mapper-input.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,19 @@
+type messagefile;
+
+/*
+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]));
Added: trunk/tests/language-behaviour/mappers/07513-fixed-array-mapper-filename.real.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/07513-fixed-array-mapper-filename.real.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/07513-fixed-array-mapper-filename.real.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+q r s t
Added: trunk/tests/language-behaviour/mappers/07513-fixed-array-mapper-filename.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07513-fixed-array-mapper-filename.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07513-fixed-array-mapper-filename.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,19 @@
+type messagefile;
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+string fns="q r s t";
+
+messagefile outfile[] <fixed_array_mapper; files=fns>;
+messagefile realoutput <"07513-fixed-array-mapper-filename.real.out">;
+
+string fn;
+
+fn = @filename(outfile);
+
+realoutput = write(fn);
+
Added: trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.a.in
===================================================================
--- trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.a.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.a.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+foo
Added: trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.b.in
===================================================================
--- trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.b.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.b.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+foo
Added: trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.real.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.real.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.real.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+07514-fixed-array-mapper-filenames.a.in 07514-fixed-array-mapper-filenames.b.in
Added: trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07514-fixed-array-mapper-filenames.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+type messagefile;
+
+(messagefile t) write(messagefile s[]) {
+ app {
+ echo @filenames(s) stdout=@filename(t);
+ }
+}
+
+string fns="07514-fixed-array-mapper-filenames.a.in 07514-fixed-array-mapper-filenames.b.in";
+
+messagefile outfile[] <fixed_array_mapper; files=fns>;
+messagefile realoutput <"07514-fixed-array-mapper-filenames.real.out">;
+
+string fn;
+
+realoutput = write(outfile);
+
Added: trunk/tests/language-behaviour/mappers/0752-csv-mapper.csv
===================================================================
--- trunk/tests/language-behaviour/mappers/0752-csv-mapper.csv (rev 0)
+++ trunk/tests/language-behaviour/mappers/0752-csv-mapper.csv 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+l,r
+0752-csv-mapper.left-zero.out,0752-csv-mapper.right-zero.out
+0752-csv-mapper.left-one.out,0752-csv-mapper.right-one.out
+0752-csv-mapper.left-two.out,0752-csv-mapper.right-two.out
Added: trunk/tests/language-behaviour/mappers/0752-csv-mapper.left-two.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0752-csv-mapper.left-two.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0752-csv-mapper.left-two.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 2
Added: trunk/tests/language-behaviour/mappers/0752-csv-mapper.left-zero.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0752-csv-mapper.left-zero.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0752-csv-mapper.left-zero.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 0
Added: trunk/tests/language-behaviour/mappers/0752-csv-mapper.right-one.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0752-csv-mapper.right-one.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0752-csv-mapper.right-one.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 1
Added: trunk/tests/language-behaviour/mappers/0752-csv-mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0752-csv-mapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0752-csv-mapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,19 @@
+type messagefile;
+
+type cols {
+ messagefile l;
+ messagefile r;
+}
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+cols outfile[] <csv_mapper; file="0752-csv-mapper.csv">;
+
+outfile[0].l = write("slot 0");
+outfile[1].r = write("slot 1");
+outfile[2].l = write("slot 2");
+
Added: trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.a.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.a.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.a.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0753-filesystem-mapper.blue.in
Added: trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.b.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.b.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.b.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0753-filesystem-mapper.green.in
Added: trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.blue.in
===================================================================
Added: trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.c.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.c.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.c.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0753-filesystem-mapper.red.in
Added: trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.green.in
===================================================================
Added: trunk/tests/language-behaviour/mappers/0753-filesystem-mapper.red.in
===================================================================
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper-input.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper-input.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper-input.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+10319
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper-input.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper-input.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper-input.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,19 @@
+type messagefile;
+
+type cols {
+ messagefile l;
+ messagefile r;
+}
+
+(messagefile t) write(messagefile s) {
+ app {
+ cat stdin=@filename(s) stdout=@filename(t);
+ }
+}
+
+cols infiles[] <csv_mapper; file="0754-csv-mapper.csv">;
+
+messagefile outfile <"0754-csv-mapper-input.out">;
+
+outfile = write(infiles[1].r);
+
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper.csv
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper.csv (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper.csv 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+l,r
+0754-csv-mapper.left-zero.in,0754-csv-mapper.right-zero.in
+0754-csv-mapper.left-one.in,0754-csv-mapper.right-one.in
+0754-csv-mapper.left-two.in,0754-csv-mapper.right-two.in
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-one.in
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-one.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-one.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+14708
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-two.in
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-two.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-two.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+102
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-zero.in
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-zero.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper.left-zero.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+9807
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-one.in
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-one.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-one.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+10319
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-two.in
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-two.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-two.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+8709
Added: trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-zero.in
===================================================================
--- trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-zero.in (rev 0)
+++ trunk/tests/language-behaviour/mappers/0754-csv-mapper.right-zero.in 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+2544
Added: trunk/tests/language-behaviour/mappers/0755-ext-mapper.0.3.2.1.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0755-ext-mapper.0.3.2.1.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0755-ext-mapper.0.3.2.1.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 1
Added: trunk/tests/language-behaviour/mappers/0755-ext-mapper.AAA.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0755-ext-mapper.AAA.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0755-ext-mapper.AAA.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 0
Added: trunk/tests/language-behaviour/mappers/0755-ext-mapper.____.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0755-ext-mapper.____.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0755-ext-mapper.____.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 2
Added: trunk/tests/language-behaviour/mappers/0755-ext-mapper.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/0755-ext-mapper.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/0755-ext-mapper.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+echo "[0].l 0755-ext-mapper.AAA.out"
+echo "[1].r 0755-ext-mapper.0.3.2.1.out"
+echo "[2].l 0755-ext-mapper.____.out"
+
Property changes on: trunk/tests/language-behaviour/mappers/0755-ext-mapper.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/0755-ext-mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0755-ext-mapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0755-ext-mapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,19 @@
+type messagefile;
+
+type cols {
+ messagefile l;
+ messagefile r;
+}
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+cols outfile[] <ext; exec="./0755-ext-mapper.sh">;
+
+outfile[0].l = write("slot 0");
+outfile[1].r = write("slot 1");
+outfile[2].l = write("slot 2");
+
Added: trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+slot 0
Added: trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo "$ 07551-ext-mapper-single.out"
Property changes on: trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07551-ext-mapper-single.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,12 @@
+type messagefile;
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+messagefile outfile <ext; exec="./07551-ext-mapper-single.sh">;
+
+outfile = write("slot 0");
+
Added: trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.inside.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.inside.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.inside.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+5000
Added: trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.mapper.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.mapper.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.mapper.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+-ssss 5000
Added: trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+echo $@ > 07552-ext-mapper-numeric.mapper.out
+
+echo "$ 07552-ext-mapper-numeric.inside.out"
+
Property changes on: trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07552-ext-mapper-numeric.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,13 @@
+type messagefile;
+
+(messagefile t) greeting(int n) {
+ app {
+ echo n stdout=@filename(t);
+ }
+}
+
+int n = 5000;
+messagefile outfile <ext; exec="07552-ext-mapper-numeric.sh", ssss=n>;
+
+outfile = greeting(n);
+
Added: trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,3 @@
+#!/bin/bash
+echo "eerste 07554-ext-mapper-struct.a.out"
+echo "twede 07554-ext-mapper-struct.b.out"
Property changes on: trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07554-ext-mapper-struct.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,18 @@
+type messagefile;
+
+type struct {
+messagefile eerste;
+messagefile twede;
+};
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+struct outfiles <ext; exec="./07554-ext-mapper-struct.sh">;
+
+outfiles.eerste = write("1st");
+outfiles.twede = write("2nd");
+
Added: trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,5 @@
+#!/bin/bash
+echo "eerste 07555-ext-mapper-twostruct.a.out"
+echo "twede 07555-ext-mapper-twostruct.b.out"
+echo "derde.links 07555-ext-mapper-twostruct.cl.out"
+echo "derde.rechts 07555-ext-mapper-twostruct.cr.out"
Property changes on: trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07555-ext-mapper-twostruct.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,26 @@
+type file;
+
+type structInner {
+ file links;
+ file rechts;
+}
+
+type struct {
+ file eerste;
+ file twede;
+ structInner derde;
+};
+
+(file t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+struct outfiles <ext; exec="./07555-ext-mapper-twostruct.sh">;
+
+outfiles.eerste = write("1st");
+outfiles.twede = write("2nd");
+outfiles.derde.links = write("3l");
+outfiles.derde.rechts = write("3r");
+
Added: trunk/tests/language-behaviour/mappers/075551-ext-mapper-twostruct-singleproducer.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/075551-ext-mapper-twostruct-singleproducer.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/075551-ext-mapper-twostruct-singleproducer.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,23 @@
+type file;
+
+type structInner {
+ file links;
+ file rechts;
+}
+
+type struct {
+ file eerste;
+ file twede;
+ structInner derde;
+};
+
+(struct t) singlewrite() {
+ app {
+ touch @filenames(t);
+ }
+}
+
+struct outfiles <ext; exec="./07555-ext-mapper-twostruct.sh">;
+
+outfiles = singlewrite();
+
Added: trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,8 @@
+#!/bin/bash
+sleep 10s
+echo "[0].l 0756-ext-mapper.AAA.out"
+sleep 10s
+echo "[1].r 0756-ext-mapper.0.3.2.1.out"
+sleep 10s
+echo "[2].l 0756-ext-mapper.____.out"
+sleep 10s
Property changes on: trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0756-ext-mapper-slow.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,19 @@
+type messagefile;
+
+type cols {
+ messagefile l;
+ messagefile r;
+}
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+cols outfile[] <ext; exec="./0756-ext-mapper-slow.sh">;
+
+outfile[0].l = write("slot 0");
+outfile[1].r = write("slot 1");
+outfile[2].l = write("slot 2");
+
Added: trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+echo "[0] 0757-ext-mapper-array.AAA.out"
+echo "[1] 0757-ext-mapper-array.0.3.2.1.out"
+echo "[2] 0757-ext-mapper-array.____.out"
+
Property changes on: trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0757-ext-mapper-array.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile;
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+messagefile outfile[] <ext; exec="./0757-ext-mapper-array.sh">;
+
+outfile[0] = write("slot 0");
+outfile[1] = write("slot 1");
+outfile[2] = write("slot 2");
+
Added: trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+echo "[0] 0757-ext-mapper-array.AAA.out"
+echo "[1] 0757-ext-mapper-array.0.3.2.1.out"
+echo "[2] 0757-ext-mapper-array.____.out"
+
Property changes on: trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0758-ext-mapper-array.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,13 @@
+type messagefile;
+
+(messagefile t) write(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+messagefile outfile[] <ext; exec="./0758-ext-mapper-array.sh">;
+
+foreach f,i in [0:2] {
+ outfile[i] = write("slot X");
+}
Added: trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,3 @@
+#!/bin/bash
+echo [0] 0759-ext-mapper-array.a.out
+echo [1] 0759-ext-mapper-array.q.out
Property changes on: trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0759-ext-mapper-array.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,12 @@
+type file;
+
+(file t[]) write() {
+ app {
+ touch "0759-ext-mapper-array.a.out" "0759-ext-mapper-array.q.out";
+ }
+}
+
+file outfile[] <ext; exec="./0759-ext-mapper-array.sh">;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,5 @@
+#!/bin/bash
+echo [0][0].a out.n/1foo/0/00/00/ST.TU.pdt
+echo [0][0].b out.n/1foo/0/00/00/ST.TU.rmsd
+
+
Property changes on: trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07591-ext-mapper-multidimensional-array.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+
+type F;
+
+type S {
+ F a;
+ F b;
+}
+
+app (S output[][]) touch() {
+touch @filenames(output);
+}
+
+S o[][] <ext; exec="07591-ext-mapper-multidimensional-array.sh">;
+
+o = touch();
+
+
Added: trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,6 @@
+#!/bin/bash
+echo [0][0].a out.n/1foo/0/00/00/ST.TU.pdt
+echo [0][0].b out.n/1foo/0/00/00/ST.TU.rmsd
+echo [0][0].c[0] out.n/1foo/0/00/00/ST.TU.rmsd2
+
+
Property changes on: trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/07592-ext-mapper-multidimensional-array-structs.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,18 @@
+
+type F;
+
+type S {
+ F a;
+ F b;
+ F c[];
+}
+
+app (S output[][]) touch() {
+touch @filenames(output);
+}
+
+S o[][] <ext; exec="07592-ext-mapper-multidimensional-array-structs.sh">;
+
+o = touch();
+
+
Added: trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+Hello, world!
Added: trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,25 @@
+type messagefile {}
+
+(messagefile t) greeting() {
+ app {
+ echo "Hello, world!" stdout=@filename(t);
+ }
+}
+
+(messagefile t) greeting2(messagefile ignored) {
+ app {
+ echo "Hello, world!" stdout=@filename(t);
+ }
+}
+
+
+messagefile outfile <"076-structured-regexp-mapper.a.out">;
+messagefile outfile2 <structured_regexp_mapper;
+ source=outfile,
+ match="(.*)per.a(.*)",
+ transform="\\1per.b\\2"
+>;
+
+outfile = greeting();
+
+outfile2 = greeting2(outfile);
Added: trunk/tests/language-behaviour/mappers/077-regexp-mapper.foo.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/077-regexp-mapper.foo.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/077-regexp-mapper.foo.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+hello
Added: trunk/tests/language-behaviour/mappers/077-regexp-mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/077-regexp-mapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/077-regexp-mapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,15 @@
+type messagefile;
+
+(messagefile t) greeting() {
+ app {
+ echo "hello" stdout=@filename(t);
+ }
+}
+
+messagefile outfile <regexp_mapper;
+ source="outfoo",
+ match="(...)(.*)",
+ transform="077-regexp-mapper.\\2.\\1">;
+
+outfile = greeting();
+
Added: trunk/tests/language-behaviour/mappers/078-singlefilemapper-name-expression.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/078-singlefilemapper-name-expression.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/078-singlefilemapper-name-expression.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+078-singlefilemapper-name-expression.out
Added: trunk/tests/language-behaviour/mappers/078-singlefilemapper-name-expression.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/078-singlefilemapper-name-expression.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/078-singlefilemapper-name-expression.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+string fn = "078-singlefilemapper-name-expression.out";
+
+messagefile outfile <single_file_mapper;file=fn>;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/0781-singlefilemapper-name-expression.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0781-singlefilemapper-name-expression.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0781-singlefilemapper-name-expression.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0781-singlefilemapper-name-expression.out
Added: trunk/tests/language-behaviour/mappers/0781-singlefilemapper-name-expression.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0781-singlefilemapper-name-expression.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0781-singlefilemapper-name-expression.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+string fn = "0781-singlefilemapper-name-expression";
+
+messagefile outfile <single_file_mapper;file=@strcat(fn,".","out")>;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/079-regression-r970-simple-mapper-expr-prefix.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/079-regression-r970-simple-mapper-expr-prefix.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/079-regression-r970-simple-mapper-expr-prefix.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+079-regression-r970-simple-mapper-expr-prefix.out
Added: trunk/tests/language-behaviour/mappers/079-regression-r970-simple-mapper-expr-prefix.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/079-regression-r970-simple-mapper-expr-prefix.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/079-regression-r970-simple-mapper-expr-prefix.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,14 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+string fn = "079-regression-r970-simple-mapper-expr-prefix";
+
+messagefile outfile <simple_mapper;prefix=fn,suffix=".out">;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/0791-regression-r970-simple-mapper-expr-prefix.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/0791-regression-r970-simple-mapper-expr-prefix.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/0791-regression-r970-simple-mapper-expr-prefix.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+0791-regression-r970-simple-mapper-expr-prefix.out
Added: trunk/tests/language-behaviour/mappers/0791-regression-r970-simple-mapper-expr-prefix.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/0791-regression-r970-simple-mapper-expr-prefix.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/0791-regression-r970-simple-mapper-expr-prefix.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,16 @@
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+string a = "0791-regression-r970";
+string b = "-simple-mapper-";
+string c = "expr-prefix";
+
+messagefile outfile <simple_mapper;prefix=@strcat(a,b,c),suffix=".out">;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/150-filesys_mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/150-filesys_mapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/150-filesys_mapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,4 @@
+type file;
+
+file f[] <filesys_mapper; prefix="pc", suffix=".pcap">;
+
Added: trunk/tests/language-behaviour/mappers/760-csv-mapper.sh
===================================================================
--- trunk/tests/language-behaviour/mappers/760-csv-mapper.sh (rev 0)
+++ trunk/tests/language-behaviour/mappers/760-csv-mapper.sh 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+NAME=$1
+CSV_OUT=$2
+
+{
+ echo "m"
+ touch $NAME
+ echo $NAME
+} > $CSV_OUT
Property changes on: trunk/tests/language-behaviour/mappers/760-csv-mapper.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/mappers/760-csv-mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/760-csv-mapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/760-csv-mapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,28 @@
+
+type file;
+
+type s
+{
+ file m;
+}
+
+app (file out) create ()
+{
+ echo_sh "file1" @filename(out);
+}
+
+(file result) list (file inf)
+{
+ s diffs[] <csv_mapper; file=inf>;
+ foreach f, i in diffs
+ {
+ tracef("%s\n", @f.m);
+ }
+}
+
+file o<"tmp.csv">;
+file i;
+file p;
+
+o = create();
+p = list(o);
Added: trunk/tests/language-behaviour/mappers/T074-simplemapper.aleph.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T074-simplemapper.aleph.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T074-simplemapper.aleph.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+foo
Added: trunk/tests/language-behaviour/mappers/T074-simplemapper.beth.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T074-simplemapper.beth.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T074-simplemapper.beth.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+bar
Added: trunk/tests/language-behaviour/mappers/T074-simplemapper.gimel.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T074-simplemapper.gimel.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T074-simplemapper.gimel.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+baz
Added: trunk/tests/language-behaviour/mappers/T074-simplemapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/T074-simplemapper.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/T074-simplemapper.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,28 @@
+
+// The basename of this test must begin with a letter rather than a
+// number because the mapper uses the first character to determine
+// whether the prefix should be interpreted as a number or as
+// a string - see bug 80
+
+type messagefile;
+
+type messagestruct {
+ messagefile aleph;
+ messagefile beth;
+ messagefile gimel;
+}
+
+(messagefile t) stringToFile(string m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagestruct outstruct <simple_mapper;
+ prefix="T074-simplemapper.",
+ suffix=".out">;
+
+outstruct.aleph = stringToFile("foo");
+outstruct.beth = stringToFile("bar");
+outstruct.gimel = stringToFile("baz");
+
Added: trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.aleph.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.aleph.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.aleph.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+foo
Added: trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.beth.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.beth.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.beth.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+bar
Added: trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/T076-simplemapper-bug80.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,34 @@
+
+// The basename of this test must begin with a letter rather than a
+// number because the mapper uses the first character to determine
+// whether the prefix should be interpreted as a number or as
+// a string - see bug 80
+
+type messagefile;
+
+type secondstruct {
+ messagefile epsilon;
+ messagefile sigma;
+}
+
+type messagestruct {
+ messagefile aleph;
+ messagefile beth;
+ secondstruct subordinate;
+}
+
+(messagefile t) stringToFile(string m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagestruct outstruct <simple_mapper;
+ prefix="T076-simplemapper-bug80.",
+ suffix=".out">;
+
+outstruct.aleph = stringToFile("foo");
+outstruct.beth = stringToFile("bar");
+outstruct.subordinate.epsilon = stringToFile("E");
+outstruct.subordinate.sigma = stringToFile("S");
+
Added: trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.aleph.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.aleph.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.aleph.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+foo
Added: trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.beth.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.beth.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.beth.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+bar
Added: trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,39 @@
+
+// The basename of this test must begin with a letter rather than a
+// number because the mapper uses the first character to determine
+// whether the prefix should be interpreted as a number or as
+// a string - see bug 80
+
+type messagefile;
+
+type tertiarystruct {
+ messagefile hamza;
+}
+
+type secondstruct {
+ messagefile epsilon;
+ messagefile sigma;
+ tertiarystruct moresubordinate;
+}
+
+type messagestruct {
+ messagefile aleph;
+ messagefile beth;
+ secondstruct subordinate;
+}
+
+(messagefile t) stringToFile(string m) {
+ app {
+ echo m stdout=@filename(t);
+ }
+}
+
+messagestruct outstruct <simple_mapper;
+ prefix="T077-simplemapper-bug80.",
+ suffix=".out">;
+
+outstruct.aleph = stringToFile("foo");
+outstruct.beth = stringToFile("bar");
+outstruct.subordinate.epsilon = stringToFile("E");
+outstruct.subordinate.sigma = stringToFile("S");
+outstruct.subordinate.moresubordinate.hamza = stringToFile("misr");
Added: trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate.epsilon.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate.epsilon.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate.epsilon.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+E
Added: trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate.sigma.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate.sigma.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate.sigma.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+S
Added: trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate_moresubordinate.hamza.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate_moresubordinate.hamza.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T077-simplemapper-bug80_subordinate_moresubordinate.hamza.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+misr
Added: trunk/tests/language-behaviour/mappers/T078-simplemapper-nosuffix.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/T078-simplemapper-nosuffix.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/T078-simplemapper-nosuffix.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,17 @@
+// this one is like test 073-simplemapper, but doesn't
+// add the missing dot in front of the suffix
+
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+messagefile outfile <simple_mapper;
+ prefix="T078-simplemapper-nosuffix", noauto="true",
+ suffix="_nodot.out">;
+
+outfile = write();
+
Added: trunk/tests/language-behaviour/mappers/T078-simplemapper-nosuffix_nodot.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/T078-simplemapper-nosuffix_nodot.out.expected (rev 0)
+++ trunk/tests/language-behaviour/mappers/T078-simplemapper-nosuffix_nodot.out.expected 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1 @@
+T078-simplemapper-nosuffix_nodot.out
Added: trunk/tests/language-behaviour/mappers/T079-simplemapper-nosuffix_exception.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/T079-simplemapper-nosuffix_exception.swift (rev 0)
+++ trunk/tests/language-behaviour/mappers/T079-simplemapper-nosuffix_exception.swift 2011-06-14 14:02:14 UTC (rev 4613)
@@ -0,0 +1,16 @@
+// this one is like test T078-simplemapper-nosuffix, but demonstrates the
+// mapping exception on invalid values
+type messagefile;
+
+(messagefile t) write() {
+ app {
+ echo @filename(t) stdout=@filename(t);
+ }
+}
+
+messagefile outfile <simple_mapper;
+ prefix="T078-simplemapper-nosuffix", noauto="exception",
+ suffix="_nodot.out">;
+
+outfile = write();
+
More information about the Swift-commit
mailing list