[Swift-commit] r4653 - trunk/tests/language-behaviour/variables
achavez at ci.uchicago.edu
achavez at ci.uchicago.edu
Wed Jun 22 10:25:15 CDT 2011
Author: achavez
Date: 2011-06-22 10:25:15 -0500 (Wed, 22 Jun 2011)
New Revision: 4653
Added:
trunk/tests/language-behaviour/variables/084-declare-many-at-once.clean.sh
trunk/tests/language-behaviour/variables/120-local-vars.check.sh
trunk/tests/language-behaviour/variables/120-local-vars.clean.sh
trunk/tests/language-behaviour/variables/121-multi-return-vars.check.sh
trunk/tests/language-behaviour/variables/121-multi-return-vars.clean.sh
trunk/tests/language-behaviour/variables/122-multi-return-vars.clean.sh
trunk/tests/language-behaviour/variables/123-global-vars.check.sh
trunk/tests/language-behaviour/variables/123-global-vars.clean.sh
trunk/tests/language-behaviour/variables/1232-global-separate-assign.check.sh
trunk/tests/language-behaviour/variables/1232-global-separate-assign.clean.sh
Removed:
trunk/tests/language-behaviour/variables/120-local-vars.out.expected
trunk/tests/language-behaviour/variables/121-multi-return-vars.first.out.expected
trunk/tests/language-behaviour/variables/121-multi-return-vars.second.out.expected
Modified:
trunk/tests/language-behaviour/variables/084-declare-many-at-once.swift
trunk/tests/language-behaviour/variables/120-local-vars.swift
trunk/tests/language-behaviour/variables/121-multi-return-vars.swift
trunk/tests/language-behaviour/variables/123-global-vars.swift
trunk/tests/language-behaviour/variables/1232-global-separate-assign.swift
Log:
Clean and Check Shell scripts added. Files out expected were removed
Added: trunk/tests/language-behaviour/variables/084-declare-many-at-once.clean.sh
===================================================================
--- trunk/tests/language-behaviour/variables/084-declare-many-at-once.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/084-declare-many-at-once.clean.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+rm -r 084-declare-many-at-once-* 084-declare-many-at-once.*ml || exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/084-declare-many-at-once.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/tests/language-behaviour/variables/084-declare-many-at-once.swift
===================================================================
--- trunk/tests/language-behaviour/variables/084-declare-many-at-once.swift 2011-06-22 14:58:34 UTC (rev 4652)
+++ trunk/tests/language-behaviour/variables/084-declare-many-at-once.swift 2011-06-22 15:25:15 UTC (rev 4653)
@@ -1,9 +1,7 @@
type messagefile {}
-(messagefile t) greeting() {
- app {
+app (messagefile t) greeting() {
echo "hello" stdout=@filename(t);
- }
}
messagefile outfile = greeting();
Added: trunk/tests/language-behaviour/variables/120-local-vars.check.sh
===================================================================
--- trunk/tests/language-behaviour/variables/120-local-vars.check.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/120-local-vars.check.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+cat 120-local-vars.out | grep hi|| exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/120-local-vars.check.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/variables/120-local-vars.clean.sh
===================================================================
--- trunk/tests/language-behaviour/variables/120-local-vars.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/120-local-vars.clean.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+rm -r 120-local-vars-* 120-local-vars.*ml 120-local-vars.out || exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/120-local-vars.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Deleted: trunk/tests/language-behaviour/variables/120-local-vars.out.expected
===================================================================
--- trunk/tests/language-behaviour/variables/120-local-vars.out.expected 2011-06-22 14:58:34 UTC (rev 4652)
+++ trunk/tests/language-behaviour/variables/120-local-vars.out.expected 2011-06-22 15:25:15 UTC (rev 4653)
@@ -1 +0,0 @@
-hi
Modified: trunk/tests/language-behaviour/variables/120-local-vars.swift
===================================================================
--- trunk/tests/language-behaviour/variables/120-local-vars.swift 2011-06-22 14:58:34 UTC (rev 4652)
+++ trunk/tests/language-behaviour/variables/120-local-vars.swift 2011-06-22 15:25:15 UTC (rev 4653)
@@ -5,10 +5,8 @@
t=greeting(l);
}
-(messagefile t) greeting(string m) {
- app {
+app (messagefile t) greeting(string m) {
echo m stdout=@filename(t);
- }
}
messagefile outfile <"120-local-vars.out">;
Added: trunk/tests/language-behaviour/variables/121-multi-return-vars.check.sh
===================================================================
--- trunk/tests/language-behaviour/variables/121-multi-return-vars.check.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/121-multi-return-vars.check.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -x
+cat 121-multi-return-vars.first.out | grep hi|| exit 1
+[ -e 121-multi-return-vars.second.out ] || exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/121-multi-return-vars.check.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/variables/121-multi-return-vars.clean.sh
===================================================================
--- trunk/tests/language-behaviour/variables/121-multi-return-vars.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/121-multi-return-vars.clean.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+rm -r 121-multi-return-vars-* 121-multi-return-vars.*ml 121-multi-return-vars.*.out || exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/121-multi-return-vars.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Deleted: trunk/tests/language-behaviour/variables/121-multi-return-vars.first.out.expected
===================================================================
--- trunk/tests/language-behaviour/variables/121-multi-return-vars.first.out.expected 2011-06-22 14:58:34 UTC (rev 4652)
+++ trunk/tests/language-behaviour/variables/121-multi-return-vars.first.out.expected 2011-06-22 15:25:15 UTC (rev 4653)
@@ -1 +0,0 @@
-hi
Deleted: trunk/tests/language-behaviour/variables/121-multi-return-vars.second.out.expected
===================================================================
Modified: trunk/tests/language-behaviour/variables/121-multi-return-vars.swift
===================================================================
--- trunk/tests/language-behaviour/variables/121-multi-return-vars.swift 2011-06-22 14:58:34 UTC (rev 4652)
+++ trunk/tests/language-behaviour/variables/121-multi-return-vars.swift 2011-06-22 15:25:15 UTC (rev 4653)
@@ -1,9 +1,7 @@
type messagefile;
-(messagefile a, messagefile b) greeting(string m) {
- app {
+app (messagefile a, messagefile b) greeting(string m) {
echo m stdout=@filename(a) stderr=@filename(b);
- }
}
messagefile firstfile <"121-multi-return-vars.first.out">;
Added: trunk/tests/language-behaviour/variables/122-multi-return-vars.clean.sh
===================================================================
--- trunk/tests/language-behaviour/variables/122-multi-return-vars.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/122-multi-return-vars.clean.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+rm -r 122-multi-return-vars-* 122-multi-return-vars.*ml|| exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/122-multi-return-vars.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/variables/123-global-vars.check.sh
===================================================================
--- trunk/tests/language-behaviour/variables/123-global-vars.check.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/123-global-vars.check.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+cat 123-global-vars.out | grep hello|| exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/123-global-vars.check.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/variables/123-global-vars.clean.sh
===================================================================
--- trunk/tests/language-behaviour/variables/123-global-vars.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/123-global-vars.clean.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+rm -r 123-global-vars-* 123-global-vars.*ml 123-global-vars.out || exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/123-global-vars.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/tests/language-behaviour/variables/123-global-vars.swift
===================================================================
--- trunk/tests/language-behaviour/variables/123-global-vars.swift 2011-06-22 14:58:34 UTC (rev 4652)
+++ trunk/tests/language-behaviour/variables/123-global-vars.swift 2011-06-22 15:25:15 UTC (rev 4653)
@@ -1,10 +1,8 @@
type messagefile;
-(messagefile t) greeting() {
- app {
+app (messagefile t) greeting() {
echo m stdout=@filename(t);
- }
}
global string m = "hello";
Added: trunk/tests/language-behaviour/variables/1232-global-separate-assign.check.sh
===================================================================
--- trunk/tests/language-behaviour/variables/1232-global-separate-assign.check.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/1232-global-separate-assign.check.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+cat 1232-global-separate-assign.out | grep hi|| exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/1232-global-separate-assign.check.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/tests/language-behaviour/variables/1232-global-separate-assign.clean.sh
===================================================================
--- trunk/tests/language-behaviour/variables/1232-global-separate-assign.clean.sh (rev 0)
+++ trunk/tests/language-behaviour/variables/1232-global-separate-assign.clean.sh 2011-06-22 15:25:15 UTC (rev 4653)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+rm -r 1232-global-separate-assign-* 1232-global-separate-assign.*ml 1232-global-separate-assign.out || exit 1
+exit 0
Property changes on: trunk/tests/language-behaviour/variables/1232-global-separate-assign.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/tests/language-behaviour/variables/1232-global-separate-assign.swift
===================================================================
--- trunk/tests/language-behaviour/variables/1232-global-separate-assign.swift 2011-06-22 14:58:34 UTC (rev 4652)
+++ trunk/tests/language-behaviour/variables/1232-global-separate-assign.swift 2011-06-22 15:25:15 UTC (rev 4653)
@@ -1,15 +1,11 @@
type messagefile;
-
-
-(messagefile t) greeting() {
- app {
+app (messagefile t) greeting() {
echo m stdout=@filename(t);
- }
}
global string m;
m = "hi";
-messagefile outfile <"1232-global-separate-assign.aout">;
+messagefile outfile <"1232-global-separate-assign.out">;
outfile = greeting();
More information about the Swift-commit
mailing list