[Swift-commit] r4884 - in trunk/tests/providers/local-pbs-coasters: . pads
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Fri Jul 29 16:56:14 CDT 2011
Author: wozniak
Date: 2011-07-29 16:56:14 -0500 (Fri, 29 Jul 2011)
New Revision: 4884
Added:
trunk/tests/providers/local-pbs-coasters/pads/001-catsn.check.sh
trunk/tests/providers/local-pbs-coasters/pads/001-catsn.setup.sh
trunk/tests/providers/local-pbs-coasters/pads/001-catsn.swift
trunk/tests/providers/local-pbs-coasters/pads/001-catsn.timeout
Removed:
trunk/tests/providers/local-pbs-coasters/001-catsn.check.sh
trunk/tests/providers/local-pbs-coasters/001-catsn.setup.sh
trunk/tests/providers/local-pbs-coasters/001-catsn.swift
trunk/tests/providers/local-pbs-coasters/001-catsn.timeout
Log:
Move test case into pads directory
Deleted: trunk/tests/providers/local-pbs-coasters/001-catsn.check.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/001-catsn.check.sh 2011-07-29 21:55:24 UTC (rev 4883)
+++ trunk/tests/providers/local-pbs-coasters/001-catsn.check.sh 2011-07-29 21:56:14 UTC (rev 4884)
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-set -x
-
-for count in `seq --format "%04.f" 1 1 10`
-do
- [ -f catsn.$count.out ] || exit 1
- CONTENTS1=$( cat catsn.$count.out.expected )
- CONTENTS2=$( cat catsn.$count.out )
- [[ $CONTENTS1 == $CONTENTS2 ]] || exit 1
-done
-exit 0
Deleted: trunk/tests/providers/local-pbs-coasters/001-catsn.setup.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/001-catsn.setup.sh 2011-07-29 21:55:24 UTC (rev 4883)
+++ trunk/tests/providers/local-pbs-coasters/001-catsn.setup.sh 2011-07-29 21:56:14 UTC (rev 4884)
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-cp -v $GROUP/data.txt . || exit 1
-cp -v $GROUP/*expected . || exit 1
Deleted: trunk/tests/providers/local-pbs-coasters/001-catsn.swift
===================================================================
--- trunk/tests/providers/local-pbs-coasters/001-catsn.swift 2011-07-29 21:55:24 UTC (rev 4883)
+++ trunk/tests/providers/local-pbs-coasters/001-catsn.swift 2011-07-29 21:56:14 UTC (rev 4884)
@@ -1,15 +0,0 @@
-type file;
-
-app (file o) cat (file i)
-{
- cat @i stdout=@o;
-}
-
-string t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
-string char[] = @strsplit(t, "");
-
-file out[]<simple_mapper; location=".", prefix="catsn.",suffix=".out">;
-foreach j in [1:@toint(@arg("n","10"))] {
- file data<"data.txt">;
- out[j] = cat(data);
-}
Deleted: trunk/tests/providers/local-pbs-coasters/001-catsn.timeout
===================================================================
--- trunk/tests/providers/local-pbs-coasters/001-catsn.timeout 2011-07-29 21:55:24 UTC (rev 4883)
+++ trunk/tests/providers/local-pbs-coasters/001-catsn.timeout 2011-07-29 21:56:14 UTC (rev 4884)
@@ -1,2 +0,0 @@
-7200
-
Copied: trunk/tests/providers/local-pbs-coasters/pads/001-catsn.check.sh (from rev 4883, trunk/tests/providers/local-pbs-coasters/001-catsn.check.sh)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/pads/001-catsn.check.sh (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/pads/001-catsn.check.sh 2011-07-29 21:56:14 UTC (rev 4884)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -x
+
+for count in `seq --format "%04.f" 1 1 10`
+do
+ [ -f catsn.$count.out ] || exit 1
+ CONTENTS1=$( cat catsn.$count.out.expected )
+ CONTENTS2=$( cat catsn.$count.out )
+ [[ $CONTENTS1 == $CONTENTS2 ]] || exit 1
+done
+exit 0
Copied: trunk/tests/providers/local-pbs-coasters/pads/001-catsn.setup.sh (from rev 4883, trunk/tests/providers/local-pbs-coasters/001-catsn.setup.sh)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/pads/001-catsn.setup.sh (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/pads/001-catsn.setup.sh 2011-07-29 21:56:14 UTC (rev 4884)
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cp -v $GROUP/data.txt . || exit 1
+cp -v $GROUP/*expected . || exit 1
Copied: trunk/tests/providers/local-pbs-coasters/pads/001-catsn.swift (from rev 4883, trunk/tests/providers/local-pbs-coasters/001-catsn.swift)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/pads/001-catsn.swift (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/pads/001-catsn.swift 2011-07-29 21:56:14 UTC (rev 4884)
@@ -0,0 +1,15 @@
+type file;
+
+app (file o) cat (file i)
+{
+ cat @i stdout=@o;
+}
+
+string t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
+string char[] = @strsplit(t, "");
+
+file out[]<simple_mapper; location=".", prefix="catsn.",suffix=".out">;
+foreach j in [1:@toint(@arg("n","10"))] {
+ file data<"data.txt">;
+ out[j] = cat(data);
+}
Copied: trunk/tests/providers/local-pbs-coasters/pads/001-catsn.timeout (from rev 4883, trunk/tests/providers/local-pbs-coasters/001-catsn.timeout)
===================================================================
--- trunk/tests/providers/local-pbs-coasters/pads/001-catsn.timeout (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/pads/001-catsn.timeout 2011-07-29 21:56:14 UTC (rev 4884)
@@ -0,0 +1,2 @@
+7200
+
More information about the Swift-commit
mailing list