[Swift-commit] r5265 - in branches/release-0.93/tests: . functions
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Mon Oct 31 14:28:27 CDT 2011
Author: davidk
Date: 2011-10-31 14:28:27 -0500 (Mon, 31 Oct 2011)
New Revision: 5265
Added:
branches/release-0.93/tests/functions/401-java-sin.out.expected
branches/release-0.93/tests/functions/401-java-sin.swift
Modified:
branches/release-0.93/tests/suite.sh
Log:
Added test for @java
Reset .repeat values for each test
Added: branches/release-0.93/tests/functions/401-java-sin.out.expected
===================================================================
--- branches/release-0.93/tests/functions/401-java-sin.out.expected (rev 0)
+++ branches/release-0.93/tests/functions/401-java-sin.out.expected 2011-10-31 19:28:27 UTC (rev 5265)
@@ -0,0 +1 @@
+0.479425538604203
Added: branches/release-0.93/tests/functions/401-java-sin.swift
===================================================================
--- branches/release-0.93/tests/functions/401-java-sin.swift (rev 0)
+++ branches/release-0.93/tests/functions/401-java-sin.swift 2011-10-31 19:28:27 UTC (rev 5265)
@@ -0,0 +1,10 @@
+type file;
+
+app (file result) sin(float x2) {
+ echo @strcat(@java("java.lang.Math", "sin", x2)) stdout=@filename(result);
+}
+
+float x = 0.5;
+
+file output<"401-java-sin.out">;
+output = sin(x);
Modified: branches/release-0.93/tests/suite.sh
===================================================================
--- branches/release-0.93/tests/suite.sh 2011-10-31 19:23:48 UTC (rev 5264)
+++ branches/release-0.93/tests/suite.sh 2011-10-31 19:28:27 UTC (rev 5265)
@@ -1087,7 +1087,9 @@
SCRIPT_BASENAME=`basename $TEST .swift`
if [ -f "$GROUP/$SCRIPT_BASENAME.repeat" ]; then
ITERS_LOCAL=`cat $GROUP/$SCRIPT_BASENAME.repeat`
- fi
+ else
+ ITERS_LOCAL=1
+ fi
for (( i=0; $i<$ITERS_LOCAL; i=$i+1 )); do
More information about the Swift-commit
mailing list