testsuite: also try `jot' as `seq' replacement.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 18 May 2009 18:57:05 +0000 (20:57 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 18 May 2009 18:57:05 +0000 (20:57 +0200)
* tests/instmany-mans.test: Try BSD `jot' before resorting to a
slow but portable shell loop.
* tests/instmany-python.test: Likewise.
* tests/instmany.test: Likewise.
Suggestion by Peter O'Gorman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/instmany-mans.test
tests/instmany-python.test
tests/instmany.test

index c86d40c..0aaeaad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       testsuite: also try `jot' as `seq' replacement.
+       * tests/instmany-mans.test: Try BSD `jot' before resorting to a
+       slow but portable shell loop.
+       * tests/instmany-python.test: Likewise.
+       * tests/instmany.test: Likewise.
+       Suggestion by Peter O'Gorman.
+
        Fix test failure when pkg.m4 is not found, only pkg-config.
        * tests/vala5.test: Update comment, this test is not expected to
        fail any more.  Require valac version 0.7.0.  Skip if configure
index 3ba8334..5fafa67 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2008  Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -31,8 +31,8 @@ limit=2500
 subdir=long_subdir_name_with_many_characters
 nfiles=81
 
-# Let's use `seq' if available, it's faster than the loop.
-list=`(seq 1 $nfiles) 2>/dev/null || {
+# Let's use `seq' or `jot' if available, they are faster than the loop.
+list=`(seq 1 $nfiles) 2>/dev/null || (jot $nfiles) 2>/dev/null || {
   i=1
   while test $i -le $nfiles; do
     echo $i
index d55af0f..9407948 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2008  Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -27,7 +27,7 @@ limit=2500
 subdir=long_subdir_name_with_many_characters
 nfiles=81
 
-list=`(seq 1 $nfiles) 2>/dev/null || {
+list=`(seq 1 $nfiles) 2>/dev/null || (jot $nfiles) 2>/dev/null || {
   i=1
   while test $i -le $nfiles; do
     echo $i
index aabeb7b..e423710 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2008  Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -39,8 +39,8 @@ limit=2500
 subdir=long_subdir_name_with_many_characters
 nfiles=81
 
-# Let's use `seq' if available, it's faster than the loop.
-list=`(seq 1 $nfiles) 2>/dev/null || {
+# Let's use `seq' or `jot' if available, they are faster than the loop.
+list=`(seq 1 $nfiles) 2>/dev/null || (jot $nfiles) 2>/dev/null || {
   i=1
   while test $i -le $nfiles; do
     echo $i