]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: extend checks on then 'unindent' shell function
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 1 Mar 2011 09:38:53 +0000 (10:38 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 1 Mar 2011 11:50:15 +0000 (12:50 +0100)
* tests/self-check-unindent.test: Also check that multiple
instances of 'unindent' can run in parallel (this was not
the case when that function used temporary files).

ChangeLog
tests/self-check-unindent.test

index a624ea44e791ee5243855189a7c29e9b053b960c..456b8b4306e2e3cf023670583e961549ce170d35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-03-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: extend checks on the 'unindent' shell function
+       * tests/self-check-unindent.test: Also check that multiple
+       instances of 'unindent' can run in parallel (this was not
+       the case when that function used temporary files).
+
 2011-03-01  Peter Rosin  <peda@lysator.liu.se>
 
        test defs: unindent without temporary file
index 4672683ded7cc00711955730a81c2612107aa88e..3f7edd962ba1f7f868a38e0429c64f022ebaae12 100755 (executable)
@@ -74,7 +74,9 @@ last line
 END
 
 unindent input > got
+diff exp got
 
+unindent input | unindent > got
 diff exp got
 
 #------------------------------------------------------------------
@@ -130,7 +132,9 @@ last line
 END
 
 unindent input > got
+diff exp got
 
+unindent input | unindent > got
 diff exp got
 
 #------------------------------------------------------------------
@@ -161,7 +165,9 @@ END
 cp input exp
 
 unindent input > got
+diff exp got
 
+unindent input | unindent > got
 diff exp got
 
 #------------------------------------------------------------------
@@ -185,7 +191,9 @@ bar
 END
 
 unindent input > got
+diff exp got
 
+unindent input | unindent > got
 diff exp got
 
 #------------------------------------------------------------------
@@ -209,9 +217,39 @@ bar
 END
 
 unindent input > got
+diff exp got
 
+unindent input | unindent > got
 diff exp got
 
 #------------------------------------------------------------------
 
+: More elaborated parallel use
+
+cat > input <<END
+  x
+  ${tab}y
+  z
+  ${tab}a
+  ${tab} b
+${tab}c
+   ${tab}d
+ ${tab}e
+  ${tab}${tab}f
+END
+
+cat > exp <<END
+y
+z
+a
+ b
+c
+ ${tab}d
+ ${tab}e
+${tab}f
+END
+
+unindent input | sed 1d | unindent > got
+diff exp got
+
 :