[Swift-commit] r2937 - trunk/tests/misc
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Fri May 15 06:28:03 CDT 2009
Author: benc
Date: 2009-05-15 06:28:03 -0500 (Fri, 15 May 2009)
New Revision: 2937
Added:
trunk/tests/misc/arg-default.swift
trunk/tests/misc/arg-nodefault.swift
trunk/tests/misc/arg.sh
Modified:
trunk/tests/misc/run
Log:
tests for @arg
Added: trunk/tests/misc/arg-default.swift
===================================================================
--- trunk/tests/misc/arg-default.swift (rev 0)
+++ trunk/tests/misc/arg-default.swift 2009-05-15 11:28:03 UTC (rev 2937)
@@ -0,0 +1,5 @@
+
+string s = @arg("foo","bar");
+
+trace(s);
+
Added: trunk/tests/misc/arg-nodefault.swift
===================================================================
--- trunk/tests/misc/arg-nodefault.swift (rev 0)
+++ trunk/tests/misc/arg-nodefault.swift 2009-05-15 11:28:03 UTC (rev 2937)
@@ -0,0 +1,5 @@
+
+string s = @arg("foo");
+
+trace(s);
+
Added: trunk/tests/misc/arg.sh
===================================================================
--- trunk/tests/misc/arg.sh (rev 0)
+++ trunk/tests/misc/arg.sh 2009-05-15 11:28:03 UTC (rev 2937)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+swift arg-default.swift -foo=bar
+
+if [ "$?" != "0" ]; then
+ echo default arg test FAIL
+ exit 1
+fi
+
+swift arg-nodefault.swift -foo=bar
+
+if [ "$?" != "0" ]; then
+ echo no-default arg test FAIL
+ exit 2
+fi
+
+echo SUCCESS for arg tests
Property changes on: trunk/tests/misc/arg.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/tests/misc/run
===================================================================
--- trunk/tests/misc/run 2009-05-15 11:26:33 UTC (rev 2936)
+++ trunk/tests/misc/run 2009-05-15 11:28:03 UTC (rev 2937)
@@ -2,7 +2,7 @@
for a in clusters no-retries dryrun typecheck path-prefix restart restart2 restart3 restart4 restart5 restart-iterate workernode-local \
ordering-extern-notlazy restart-extern ordering-extern \
external-mapper-args extract-int-delayed asserts \
-relative-wrapper \
+relative-wrapper arg \
; do
./${a}.sh
R=$?
More information about the Swift-commit
mailing list