[Swift-commit] r2651 - in log-processing/tests/log-processing: . sort-preserve
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Mon Mar 9 03:31:41 CDT 2009
Author: benc
Date: 2009-03-09 03:31:41 -0500 (Mon, 09 Mar 2009)
New Revision: 2651
Added:
log-processing/tests/log-processing/run
log-processing/tests/log-processing/sort-preserve/
log-processing/tests/log-processing/sort-preserve/1.in
log-processing/tests/log-processing/sort-preserve/1.out
log-processing/tests/log-processing/sort-preserve/2.in
log-processing/tests/log-processing/sort-preserve/2.out
log-processing/tests/log-processing/sort-preserve/3.in
log-processing/tests/log-processing/sort-preserve/3.out
log-processing/tests/log-processing/sort-preserve/4.in
log-processing/tests/log-processing/sort-preserve/4.out
log-processing/tests/log-processing/sort-preserve/5.in
log-processing/tests/log-processing/sort-preserve/5.out
log-processing/tests/log-processing/sort-preserve/run
Log:
test and doc for sort-preserve
Added: log-processing/tests/log-processing/run
===================================================================
--- log-processing/tests/log-processing/run (rev 0)
+++ log-processing/tests/log-processing/run 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+pushd sort-preserve
+./run
+if [ "$?" -ne "0" ]; then
+ echo "sort-preserve test failed"
+ exit 1
+fi
+
+popd
+
Property changes on: log-processing/tests/log-processing/run
___________________________________________________________________
Name: svn:executable
+ *
Added: log-processing/tests/log-processing/sort-preserve/1.in
===================================================================
--- log-processing/tests/log-processing/sort-preserve/1.in (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/1.in 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,11 @@
+foo 1 I
+foo 2 II
+foo 3 III
+foo 4 IV
+foo 5 V
+foo 6 VI
+foo 7 VII
+foo 8 VIII
+foo 9 IX
+foo 10 X
+foo 11 XI
Added: log-processing/tests/log-processing/sort-preserve/1.out
===================================================================
--- log-processing/tests/log-processing/sort-preserve/1.out (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/1.out 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,11 @@
+foo 1 I
+foo 2 II
+foo 3 III
+foo 4 IV
+foo 5 V
+foo 6 VI
+foo 7 VII
+foo 8 VIII
+foo 9 IX
+foo 10 X
+foo 11 XI
Added: log-processing/tests/log-processing/sort-preserve/2.in
===================================================================
--- log-processing/tests/log-processing/sort-preserve/2.in (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/2.in 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,11 @@
+foo 11 I
+foo 10 II
+foo 9 III
+foo 8 IV
+foo 7 V
+foo 6 VI
+foo 5 VII
+foo 4 VIII
+foo 3 IX
+foo 2 X
+foo 1 XI
Added: log-processing/tests/log-processing/sort-preserve/2.out
===================================================================
--- log-processing/tests/log-processing/sort-preserve/2.out (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/2.out 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,11 @@
+foo 1 XI
+foo 2 X
+foo 3 IX
+foo 4 VIII
+foo 5 VII
+foo 6 VI
+foo 7 V
+foo 8 IV
+foo 9 III
+foo 10 II
+foo 11 I
Added: log-processing/tests/log-processing/sort-preserve/3.in
===================================================================
--- log-processing/tests/log-processing/sort-preserve/3.in (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/3.in 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,11 @@
+bar 3 III
+foo 1 I
+foo 5 V
+bar 10 X
+bar 6 VI
+foo 4 IV
+foo 7 VII
+foo 2 II
+foo 9 IX
+qux 8 VIII
+fol 11 XI
Added: log-processing/tests/log-processing/sort-preserve/3.out
===================================================================
--- log-processing/tests/log-processing/sort-preserve/3.out (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/3.out 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,11 @@
+bar 3 III
+bar 6 VI
+bar 10 X
+fol 11 XI
+foo 1 I
+foo 2 II
+foo 4 IV
+foo 5 V
+foo 7 VII
+foo 9 IX
+qux 8 VIII
Added: log-processing/tests/log-processing/sort-preserve/4.in
===================================================================
--- log-processing/tests/log-processing/sort-preserve/4.in (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/4.in 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,16 @@
+bar 3 III
+foo 1 I
+foo 5 AAAAA
+foo 5 CCCCC
+foo 5 BBBBB
+bar 10 X
+bar 6 VI
+foo 4 IV2
+foo 4 IV1
+foo 7 VII
+foo 5 EEEEE
+foo 5 DDDDD
+foo 2 II
+foo 9 IX
+qux 8 VIII
+fol 11 XI
Added: log-processing/tests/log-processing/sort-preserve/4.out
===================================================================
--- log-processing/tests/log-processing/sort-preserve/4.out (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/4.out 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,16 @@
+bar 3 III
+bar 6 VI
+bar 10 X
+fol 11 XI
+foo 1 I
+foo 2 II
+foo 4 IV2
+foo 4 IV1
+foo 5 AAAAA
+foo 5 CCCCC
+foo 5 BBBBB
+foo 5 EEEEE
+foo 5 DDDDD
+foo 7 VII
+foo 9 IX
+qux 8 VIII
Added: log-processing/tests/log-processing/sort-preserve/5.in
===================================================================
--- log-processing/tests/log-processing/sort-preserve/5.in (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/5.in 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,16 @@
+bar 3 III
+foo 1 I
+foo 5.32789 AAAAA
+foo 5.32787 CCCCC
+foo 5.32787 BBBBB
+bar 10 X
+bar 6 VI
+foo 4 IV2
+foo 4 IV1
+foo 7 VII
+foo 5 EEEEE
+foo 5 DDDDD
+foo 2 II
+foo 9 IX
+qux 8 VIII
+fol 11 XI
Added: log-processing/tests/log-processing/sort-preserve/5.out
===================================================================
--- log-processing/tests/log-processing/sort-preserve/5.out (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/5.out 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,16 @@
+bar 3 III
+bar 6 VI
+bar 10 X
+fol 11 XI
+foo 1 I
+foo 2 II
+foo 4 IV2
+foo 4 IV1
+foo 5 EEEEE
+foo 5 DDDDD
+foo 5.32787 CCCCC
+foo 5.32787 BBBBB
+foo 5.32789 AAAAA
+foo 7 VII
+foo 9 IX
+qux 8 VIII
Added: log-processing/tests/log-processing/sort-preserve/run
===================================================================
--- log-processing/tests/log-processing/sort-preserve/run (rev 0)
+++ log-processing/tests/log-processing/sort-preserve/run 2009-03-09 08:31:41 UTC (rev 2651)
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+rm -f *.tmp
+
+for a in 1 2 3 4 5 ; do
+
+ cat ${a}.in | sort-preserve > ${a}.tmp
+
+ diff -q ${a}.tmp ${a}.out
+
+ if [ "$?" -ne "0" ]; then
+ echo "OUTPUT DIFFERS for test case $a in sort-preserve"
+ exit 1
+ fi
+
+done
Property changes on: log-processing/tests/log-processing/sort-preserve/run
___________________________________________________________________
Name: svn:executable
+ *
More information about the Swift-commit
mailing list