[Swift-commit] r6340 - in SwiftTutorials/IO: . staging-normal staging-provider staging-provider/conf

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Wed Mar 6 13:25:15 CST 2013


Author: davidk
Date: 2013-03-06 13:25:15 -0600 (Wed, 06 Mar 2013)
New Revision: 6340

Added:
   SwiftTutorials/IO/staging-normal/catsn.swift
   SwiftTutorials/IO/staging-provider/
   SwiftTutorials/IO/staging-provider/catsn.swift
   SwiftTutorials/IO/staging-provider/clean.sh
   SwiftTutorials/IO/staging-provider/conf/
   SwiftTutorials/IO/staging-provider/conf/local-coasters.cf
   SwiftTutorials/IO/staging-provider/data/
   SwiftTutorials/IO/staging-provider/gendata.pl
   SwiftTutorials/IO/staging-provider/setup.sh
Removed:
   SwiftTutorials/IO/staging-normal/catsn-random.swift
Log:
Provider staging group


Deleted: SwiftTutorials/IO/staging-normal/catsn-random.swift
===================================================================
--- SwiftTutorials/IO/staging-normal/catsn-random.swift	2013-03-06 17:49:36 UTC (rev 6339)
+++ SwiftTutorials/IO/staging-normal/catsn-random.swift	2013-03-06 19:25:15 UTC (rev 6340)
@@ -1,13 +0,0 @@
-type file;
-
-app (file o) cat (file i)
-{
-  cat @i stdout=@o;
-}
-
-file input_files[]<filesys_mapper; location="../data", pattern="tmp.*">;
-
-foreach j in input_files {
-  file output<single_file_mapper; location="../data", file=@strcat(@filename(j), ".out")>;
-  output = cat(j);
-}

Copied: SwiftTutorials/IO/staging-normal/catsn.swift (from rev 6338, SwiftTutorials/IO/staging-normal/catsn-random.swift)
===================================================================
--- SwiftTutorials/IO/staging-normal/catsn.swift	                        (rev 0)
+++ SwiftTutorials/IO/staging-normal/catsn.swift	2013-03-06 19:25:15 UTC (rev 6340)
@@ -0,0 +1,13 @@
+type file;
+
+app (file o) cat (file i)
+{
+  cat @i stdout=@o;
+}
+
+file input_files[]<filesys_mapper; location="../data", pattern="tmp.*">;
+
+foreach j,i in input_files {
+  file output<single_file_mapper; file=@strcat("data/", i, ".out")>;
+  output = cat(j);
+}

Added: SwiftTutorials/IO/staging-provider/catsn.swift
===================================================================
--- SwiftTutorials/IO/staging-provider/catsn.swift	                        (rev 0)
+++ SwiftTutorials/IO/staging-provider/catsn.swift	2013-03-06 19:25:15 UTC (rev 6340)
@@ -0,0 +1,13 @@
+type file;
+
+app (file o) cat (file i)
+{
+  cat @i stdout=@o;
+}
+
+file input_files[]<filesys_mapper; location="../data", pattern="tmp.*">;
+
+foreach j,i in input_files {
+  file output<single_file_mapper; file=@strcat("data/", i, ".out")>;
+  output = cat(j);
+}

Added: SwiftTutorials/IO/staging-provider/clean.sh
===================================================================
--- SwiftTutorials/IO/staging-provider/clean.sh	                        (rev 0)
+++ SwiftTutorials/IO/staging-provider/clean.sh	2013-03-06 19:25:15 UTC (rev 6340)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+rm -rf run*


Property changes on: SwiftTutorials/IO/staging-provider/clean.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: SwiftTutorials/IO/staging-provider/conf/local-coasters.cf
===================================================================
--- SwiftTutorials/IO/staging-provider/conf/local-coasters.cf	                        (rev 0)
+++ SwiftTutorials/IO/staging-provider/conf/local-coasters.cf	2013-03-06 19:25:15 UTC (rev 6340)
@@ -0,0 +1,12 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+lazy.errors=true
+status.mode=provider
+use.provider.staging=true
+provider.staging.pin.swiftfiles=false
+use.wrapper.staging=false
+
+#site local-coasters WORK=$HOME/swiftwork
+#site local-coasters SCRATCH=/scratch/local/$USER/swiftwork
+#app cat=/bin/cat

Added: SwiftTutorials/IO/staging-provider/gendata.pl
===================================================================
--- SwiftTutorials/IO/staging-provider/gendata.pl	                        (rev 0)
+++ SwiftTutorials/IO/staging-provider/gendata.pl	2013-03-06 19:25:15 UTC (rev 6340)
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+
+use strict;
+
+my @characters=('a'..'z', 'A'..'Z', '0'..'9');
+my $string="";
+my $length = $ARGV[0];
+my $width_count=0;
+
+foreach (1..$length) 
+{
+   if($width_count == 80) {
+      $string .= "\n";
+      $width_count=0;
+      next;
+   }
+   $string .= $characters[rand @characters];
+   $width_count++;
+}
+
+print $string;
+


Property changes on: SwiftTutorials/IO/staging-provider/gendata.pl
___________________________________________________________________
Added: svn:executable
   + *

Added: SwiftTutorials/IO/staging-provider/setup.sh
===================================================================
--- SwiftTutorials/IO/staging-provider/setup.sh	                        (rev 0)
+++ SwiftTutorials/IO/staging-provider/setup.sh	2013-03-06 19:25:15 UTC (rev 6340)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+NUMFILES=10
+FILESIZE=10
+FILESIZE=$(($FILESIZE*1000000))
+
+if [ -n "$GROUP" ]; then
+   cp $RUNDIR/* .
+fi
+
+mkdir -p data
+for count in `seq 1 $NUMFILES` 
+do
+   FILENAME=`mktemp -p data`
+   ./gendata.pl $FILESIZE > $FILENAME
+done
+


Property changes on: SwiftTutorials/IO/staging-provider/setup.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Swift-commit mailing list