[Swift-commit] r7827 - SwiftApps/swift-galaxy/swift
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Tue May 6 13:57:43 CDT 2014
Author: ketan
Date: 2014-05-06 13:57:42 -0500 (Tue, 06 May 2014)
New Revision: 7827
Modified:
SwiftApps/swift-galaxy/swift/swiftforeach.sh
SwiftApps/swift-galaxy/swift/test.sh
Log:
test and format
Modified: SwiftApps/swift-galaxy/swift/swiftforeach.sh
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeach.sh 2014-05-06 18:50:56 UTC (rev 7826)
+++ SwiftApps/swift-galaxy/swift/swiftforeach.sh 2014-05-06 18:57:42 UTC (rev 7827)
@@ -218,12 +218,12 @@
echo "file listfile=input("$listfile");"
echo "string list[] = split(read(listfile),"\n");"
echo "foreach l, i in list{"
- echo "file out <sprintf(\"$outloc/%s.%i.out\", l, i)>;"
- echo "file err <sprintf(\"$outloc/%s.%i.err\", l, i)>;"
+ echo " file out <sprintf(\"$outloc/%s.%i.out\", l, i)>;"
+ echo " file err <sprintf(\"$outloc/%s.%i.err\", l, i)>;"
else
echo "foreach i in [$rstart:$rend:$stepsize]{"
- echo "file out <sprintf(\"$outloc/%i.out\", i)>;"
- echo "file err <sprintf(\"$outloc/%i.err\", i)>;"
+ echo " file out <sprintf(\"$outloc/%i.out\", i)>;"
+ echo " file err <sprintf(\"$outloc/%i.err\", i)>;"
fi
)
(out,err) = anapp(exec, i, stringargs, fileargs, stdinfile);
Modified: SwiftApps/swift-galaxy/swift/test.sh
===================================================================
--- SwiftApps/swift-galaxy/swift/test.sh 2014-05-06 18:50:56 UTC (rev 7826)
+++ SwiftApps/swift-galaxy/swift/test.sh 2014-05-06 18:57:42 UTC (rev 7827)
@@ -31,5 +31,8 @@
echo "List, no input parameters and files stdin /dev/null"
./swiftforeach.sh list swiftK localhost "" bash x.sh "/dev/null" list.txt tmpoutlist a.log list1.out ""
-echo "T"
+echo "T list"
./swiftforeach.sh list swiftT localhost "" bash x.sh "" list.txt tmpoutlist a.log list1.out ""
+
+echo "T range"
+./swiftforeach.sh range swiftT localhost "" bash x.sh "" 0 9 1 tmpoutlist a.log list1.out "hello there T"
More information about the Swift-commit
mailing list