[Swift-commit] r7548 - in SwiftApps/swift-galaxy/swift: . test_exec
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Mon Feb 3 10:24:32 CST 2014
Author: ketan
Date: 2014-02-03 10:24:31 -0600 (Mon, 03 Feb 2014)
New Revision: 7548
Added:
SwiftApps/swift-galaxy/swift/test_exec/countargs.sh
Modified:
SwiftApps/swift-galaxy/swift/swiftforeachlist.xml
SwiftApps/swift-galaxy/swift/swiftforeachrange.xml
Log:
test cases
Modified: SwiftApps/swift-galaxy/swift/swiftforeachlist.xml
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeachlist.xml 2014-02-03 00:55:23 UTC (rev 7547)
+++ SwiftApps/swift-galaxy/swift/swiftforeachlist.xml 2014-02-03 16:24:31 UTC (rev 7548)
@@ -89,7 +89,5 @@
scp $1 aserver.adomain.edu:~/
The tool will run thrice invoking the above scp command in parallel for three items listed in the list file.
-
-
</help>
</tool>
Modified: SwiftApps/swift-galaxy/swift/swiftforeachrange.xml
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeachrange.xml 2014-02-03 00:55:23 UTC (rev 7547)
+++ SwiftApps/swift-galaxy/swift/swiftforeachrange.xml 2014-02-03 16:24:31 UTC (rev 7548)
@@ -14,7 +14,6 @@
#for $a in $arg
${a.argname}
#end for
-
</command>
<inputs>
@@ -71,30 +70,31 @@
<hook postprocess="writeoutlist" />
</code>
-->
+
<help>
- .. class:: warningmark
+.. class:: warningmark
- **TIP**. A generic Swift foreach to run arbitrary executables in parallel over a range of numbers.
+**TIP**. A generic Swift foreach to run arbitrary executables in parallel over a range of numbers.
- -----
+-----
- **What it does**
+**What it does**
- This is a generic Swift tool that runs an executable over a range of numbers with arbitrary stepsize.
+This is a generic Swift tool that runs an executable over a range of numbers with arbitrary stepsize.
- -----
+-----
- **Example**
+**Example**
- Pick up an executable from the Executable list. Enter the start, end and the step size values.
+Pick up an executable from the Executable list. Enter the start, end and the step size values.
- If an executable is echo.sh:
+If an executable is echo.sh:
- echo $1
+echo $1
- The start, end and step is 0, 9 and 2, the executable will be invoked in parallel 5 times for n where n is 0 2 4 6 8:
+The start, end and step is 0, 9 and 2, the executable will be invoked in parallel 5 times for n where n is 0 2 4 6 8:
- echo n
+echo n
</help>
</tool>
Added: SwiftApps/swift-galaxy/swift/test_exec/countargs.sh
===================================================================
--- SwiftApps/swift-galaxy/swift/test_exec/countargs.sh (rev 0)
+++ SwiftApps/swift-galaxy/swift/test_exec/countargs.sh 2014-02-03 16:24:31 UTC (rev 7548)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+echo "=== number of args ==="
+echo $#
+
+echo "=== they are ==="
+echo $@
Property changes on: SwiftApps/swift-galaxy/swift/test_exec/countargs.sh
___________________________________________________________________
Added: svn:executable
+ *
More information about the Swift-commit
mailing list