]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: portability fixes in tests on amhello examples
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 6 Jul 2011 08:31:03 +0000 (10:31 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 8 Jul 2011 07:41:17 +0000 (09:41 +0200)
* tests/amhello-binpkg.test: Don't use "tar xzf too.tag.gz" to
extract a gzip-compressed tarball, that's unportable to some
tar implementations; use the "gzip -dc fo.tar.gz | tar xf -"
idiom instead.
* tests/amhello-cflags.test: Likewise.
* tests/amhello-cross-compile.test: Likewise.

Suggestion from Ralf Wildenhues.

ChangeLog
tests/amhello-binpkg.test
tests/amhello-cflags.test
tests/amhello-cross-compile.test

index c77326d2f0c0e213a218063ab2968ea5cfebefab..888e95b5086dbfc868f4e202540e7876c3b341f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2011-07-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: portability fixes in tests on amhello examples
+       * tests/amhello-binpkg.test: Don't use "tar xzf too.tag.gz" to
+       extract a gzip-compressed tarball, that's unportable to some
+       tar implementations; use the "gzip -dc fo.tar.gz | tar xf -"
+       idiom instead.
+       * tests/amhello-cflags.test: Likewise.
+       * tests/amhello-cross-compile.test: Likewise.
+       Suggestion from Ralf Wildenhues.
+
 2011-07-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        docs, tests: synchronize examples from docs to tests
index 8085a232f571f07825b317f63e033d11683ee4d6..34600fe7e581326e3f2cd1e37ad03f2ef170eee5 100755 (executable)
@@ -24,7 +24,7 @@ set -e
 cp "$testsrcdir"/../doc/amhello-1.0.tar.gz . \
   || fatal_ "cannot get amhello tarball"
 
-tar zxf amhello-1.0.tar.gz
+gzip -dc amhello-1.0.tar.gz | tar xf -
 cd amhello-1.0
 
 ./configure --prefix /usr
index 1c3e5160e1f151e894591cb80be0d585244f87c8..56f7729427179d862acc1bcf6e45c941d100ad53 100755 (executable)
@@ -26,8 +26,9 @@ set -e
 cp "$testsrcdir"/../doc/amhello-1.0.tar.gz . \
   || fatal_ "cannot get amhello tarball"
 
-tar zxf amhello-1.0.tar.gz
+gzip -dc amhello-1.0.tar.gz | tar xf -
 cd amhello-1.0
+
 mkdir debug optim
 cd debug
 ../configure CFLAGS='-g -O0'
index 862a0793d1a06b73cebe41fc3cfa608caaac0fac..6db91ba9d4e70dbc3f469feb87866ff99e820932 100755 (executable)
@@ -30,7 +30,7 @@ build=`"$testsrcdir"/../lib/config.guess` && test -n "$build" \
   || fatal_ "cannot guess build platform"
 case $build in *mingw*) skip_ "build system is MinGW too";; esac
 
-tar zxf amhello-1.0.tar.gz
+gzip -dc amhello-1.0.tar.gz | tar xf -
 cd amhello-1.0
 
 ./configure --build "$build" --host "$host" > stdout \