[Swift-commit] r4520 - trunk/tests/providers/local-pbs-coasters/crow
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Mon May 23 14:49:32 CDT 2011
Author: wozniak
Date: 2011-05-23 14:49:32 -0500 (Mon, 23 May 2011)
New Revision: 4520
Added:
trunk/tests/providers/local-pbs-coasters/crow/001-catsn.clean.sh
Modified:
trunk/tests/providers/local-pbs-coasters/crow/001-catsn.check.sh
trunk/tests/providers/local-pbs-coasters/crow/001-catsn.swift
Log:
Fix up crow test scripts
Modified: trunk/tests/providers/local-pbs-coasters/crow/001-catsn.check.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/001-catsn.check.sh 2011-05-23 19:45:54 UTC (rev 4519)
+++ trunk/tests/providers/local-pbs-coasters/crow/001-catsn.check.sh 2011-05-23 19:49:32 UTC (rev 4520)
@@ -1,9 +1,8 @@
#!/bin/bash
-# Pseudo-code for now
+set -x
-# for f in *.out.expected
-# do
-# assert *.out exists
-# assert *.out == data.txt
-# done
+COUNT=$( ls catsn.*.out | wc -l )
+[[ $COUNT == 10 ]] || exit 1
+
+exit 0
Added: trunk/tests/providers/local-pbs-coasters/crow/001-catsn.clean.sh
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/001-catsn.clean.sh (rev 0)
+++ trunk/tests/providers/local-pbs-coasters/crow/001-catsn.clean.sh 2011-05-23 19:49:32 UTC (rev 4520)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -x
+
+rm -v catsn.*.out || exit 1
+
+exit 0
Property changes on: trunk/tests/providers/local-pbs-coasters/crow/001-catsn.clean.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/tests/providers/local-pbs-coasters/crow/001-catsn.swift
===================================================================
--- trunk/tests/providers/local-pbs-coasters/crow/001-catsn.swift 2011-05-23 19:45:54 UTC (rev 4519)
+++ trunk/tests/providers/local-pbs-coasters/crow/001-catsn.swift 2011-05-23 19:49:32 UTC (rev 4520)
@@ -5,9 +5,6 @@
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">;
More information about the Swift-commit
mailing list