diff options
Diffstat (limited to 'tests/misc')
85 files changed, 170 insertions, 170 deletions
diff --git a/tests/misc/arch b/tests/misc/arch index c568b48fb..3a510b6de 100755 --- a/tests/misc/arch +++ b/tests/misc/arch @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that arch output is equal to uname -m -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh # skip this test if arch isn't being built. case " $built_programs " in diff --git a/tests/misc/base64 b/tests/misc/base64 index 0428c04c5..2784a3c09 100755 --- a/tests/misc/base64 +++ b/tests/misc/base64 @@ -2,7 +2,7 @@ # -*- perl -*- # Exercise base64. -# Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/basename b/tests/misc/basename index 4302e0b82..1d400b3fd 100755 --- a/tests/misc/basename +++ b/tests/misc/basename @@ -1,7 +1,7 @@ #!/bin/sh # -*-perl-*- -# Copyright (C) 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF diff --git a/tests/misc/cat-proc b/tests/misc/cat-proc index 02bb26ad4..0d7b07ed5 100755 --- a/tests/misc/cat-proc +++ b/tests/misc/cat-proc @@ -2,7 +2,7 @@ # Ensure that cat -E produces same output as cat, module `$'s, # even when applied to a file in /proc. -# Copyright (C) 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cat --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh f=/proc/cpuinfo diff --git a/tests/misc/chcon b/tests/misc/chcon index d4a9d3108..3a61c6925 100755 --- a/tests/misc/chcon +++ b/tests/misc/chcon @@ -6,8 +6,8 @@ if test "$VERBOSE" = yes; then chcon --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh require_root_ require_selinux_ diff --git a/tests/misc/chcon-fail b/tests/misc/chcon-fail index 865b1b996..036d531ee 100755 --- a/tests/misc/chcon-fail +++ b/tests/misc/chcon-fail @@ -7,8 +7,8 @@ if test "$VERBOSE" = yes; then chcon --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/close-stdout b/tests/misc/close-stdout index 301c8ecb5..c3f54da7d 100755 --- a/tests/misc/close-stdout +++ b/tests/misc/close-stdout @@ -2,7 +2,7 @@ # Ensure that several programs work fine, even with stdout initially closed. # This is effectively a test of closeout.c's close_stdout function. -# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006-2008 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 @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then rm --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh p="$abs_top_builddir" diff --git a/tests/misc/csplit b/tests/misc/csplit index defff67d7..a34fc24a3 100755 --- a/tests/misc/csplit +++ b/tests/misc/csplit @@ -1,7 +1,7 @@ #!/bin/sh # various csplit tests -# Copyright (C) 2001-2007 Free Software Foundation, Inc. +# Copyright (C) 2001-2008 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 @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then csplit --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/cut b/tests/misc/cut index 3bf52163d..003b3635a 100755 --- a/tests/misc/cut +++ b/tests/misc/cut @@ -1,7 +1,7 @@ #!/bin/sh # Test "cut". -*- perl -*- -# Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/date b/tests/misc/date index ff18b4c0f..0c0ddaa77 100755 --- a/tests/misc/date +++ b/tests/misc/date @@ -1,7 +1,7 @@ #!/bin/sh # Test "date". -# Copyright (C) 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2005-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/date-sec b/tests/misc/date-sec index 445326dc5..6d7a8bccb 100755 --- a/tests/misc/date-sec +++ b/tests/misc/date-sec @@ -3,7 +3,7 @@ # `date --date="21:04 +0100" +%S' always prints `00'. # Before coreutils-5.2.1, it would print the seconds from the current time. -# Copyright (C) 2004, 2006 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006, 2008 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 @@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then date --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/df b/tests/misc/df index 84050f375..fe8dabb4a 100755 --- a/tests/misc/df +++ b/tests/misc/df @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that "df ." outputs a header. -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then df --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh case `df .` in *' diff --git a/tests/misc/df-P b/tests/misc/df-P index a27abf0b9..7b52dd2d6 100755 --- a/tests/misc/df-P +++ b/tests/misc/df-P @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that df -P is not affected by BLOCK_SIZE settings -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then df --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/dircolors b/tests/misc/dircolors index 31614f9da..8b5734ba5 100755 --- a/tests/misc/dircolors +++ b/tests/misc/dircolors @@ -1,7 +1,7 @@ #!/bin/sh # Simple dircolors tests. -# Copyright (C) 1998, 2003, 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 1998, 2003, 2005-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/dirname b/tests/misc/dirname index 6b9a8d7b7..52bd97032 100755 --- a/tests/misc/dirname +++ b/tests/misc/dirname @@ -2,7 +2,7 @@ # -*-perl-*- # Test "dirname". -# Copyright (C) 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF diff --git a/tests/misc/expand b/tests/misc/expand index 6a568be80..0354112a1 100755 --- a/tests/misc/expand +++ b/tests/misc/expand @@ -2,7 +2,7 @@ # -*- perl -*- # Exercise expand. -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2004-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/expr b/tests/misc/expr index 6d2cbbd1f..9674bc4c5 100755 --- a/tests/misc/expr +++ b/tests/misc/expr @@ -2,7 +2,7 @@ # -*-perl-*- # Basic tests for "expr". -# Copyright (C) 2001, 2003-2007 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF diff --git a/tests/misc/factor b/tests/misc/factor index de3f376a2..a27034fd0 100755 --- a/tests/misc/factor +++ b/tests/misc/factor @@ -2,7 +2,7 @@ # -*-perl-*- # Basic tests for "factor". -# Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005, 2007 Free Software +# Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005, 2007-2008 Free Software # Foundation, Inc. # This program is free software: you can redistribute it and/or modify @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF diff --git a/tests/misc/false-status b/tests/misc/false-status index b6b22a6ac..7eaec30ce 100755 --- a/tests/misc/false-status +++ b/tests/misc/false-status @@ -1,7 +1,7 @@ #!/bin/sh # ensure that false exits nonzero even with --help or --version -# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2006-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then false --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 false --version > /dev/null && fail=1 diff --git a/tests/misc/fmt b/tests/misc/fmt index 49067ad9b..5487d2117 100755 --- a/tests/misc/fmt +++ b/tests/misc/fmt @@ -2,7 +2,7 @@ # -*- perl -*- # Basic tests for "fmt". -# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software +# Copyright (C) 2001, 2002, 2003, 2004, 2005-2008 Free Software # Foundation, Inc. # This program is free software: you can redistribute it and/or modify @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl # Export this to avoid hassles when run in a UTF-8 locale, # since we use 8-bit characters below, and those values are diff --git a/tests/misc/fmt-long-line b/tests/misc/fmt-long-line index aae1fa8be..eb6b15668 100755 --- a/tests/misc/fmt-long-line +++ b/tests/misc/fmt-long-line @@ -1,7 +1,7 @@ #!/bin/sh # make sure fmt -s works even on long lines -# Copyright (C) 2002, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2006-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then fmt --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh (echo ' '; yes) | head -n1000 | tr '\n' ' ' > in || framework_failure diff --git a/tests/misc/fold b/tests/misc/fold index 960d6893d..bd4d29ddc 100755 --- a/tests/misc/fold +++ b/tests/misc/fold @@ -2,7 +2,7 @@ # -*- perl -*- # Exercise fold. -# Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2005-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl # Ensure that we don't run an older version of fold. # Prior to 5.0.91, some of the tests below would cause fold to infloop, diff --git a/tests/misc/groups-dash b/tests/misc/groups-dash index f6dfe6887..e7d7d371f 100755 --- a/tests/misc/groups-dash +++ b/tests/misc/groups-dash @@ -1,7 +1,7 @@ #!/bin/sh # ensure groups handles -- sanely -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then groups --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh # Coreutils 6.9 and earlier failed to display information on first argument # if later argument was --. diff --git a/tests/misc/groups-version b/tests/misc/groups-version index e7050c30f..3d7802b63 100755 --- a/tests/misc/groups-version +++ b/tests/misc/groups-version @@ -1,7 +1,7 @@ #!/bin/sh # ensure groups --version output is similar to id --version -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then groups --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh require_built_ groups id fail=0 diff --git a/tests/misc/head-c b/tests/misc/head-c index 1520ea610..7610533b7 100755 --- a/tests/misc/head-c +++ b/tests/misc/head-c @@ -1,7 +1,7 @@ #!/bin/sh # exercise the fix of 2001-08-18, based on test case from Ian Bruce -# Copyright (C) 2001, 2004, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2001, 2004, 2006-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then head --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh echo abc > in || framework_failure diff --git a/tests/misc/head-elide-tail b/tests/misc/head-elide-tail index 4de108d4a..a171e4ffb 100755 --- a/tests/misc/head-elide-tail +++ b/tests/misc/head-elide-tail @@ -2,7 +2,7 @@ # -*- perl -*- # Exercise head's --bytes=-N option. -# Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2005, 2007-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/head-pos b/tests/misc/head-pos index b78a42d43..90efe2279 100755 --- a/tests/misc/head-pos +++ b/tests/misc/head-pos @@ -2,7 +2,7 @@ # When reading a specified number of lines, ensure that the output # file pointer is positioned just after those lines. -# Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2004, 2006-2008 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 @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then head --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh (echo a; echo b) > in || framework_failure diff --git a/tests/misc/help-version b/tests/misc/help-version index 3696736a9..6cbf13871 100755 --- a/tests/misc/help-version +++ b/tests/misc/help-version @@ -25,8 +25,8 @@ test "$VERBOSE" = yes && set -x test "x$SHELL" = x && SHELL=/bin/sh export SHELL -. $srcdir/../envvar-check -. $srcdir/../test-lib.sh +. $top_srcdir/tests/envvar-check +. $top_srcdir/tests/test-lib.sh expected_failure_status_nohup=127 expected_failure_status_printenv=2 diff --git a/tests/misc/ls-misc b/tests/misc/ls-misc index be08c1654..ed42fb60b 100755 --- a/tests/misc/ls-misc +++ b/tests/misc/ls-misc @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF diff --git a/tests/misc/ls-time b/tests/misc/ls-time index b3f0ca2e5..69f597938 100755 --- a/tests/misc/ls-time +++ b/tests/misc/ls-time @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then ls --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh # Avoid any possible glitches due to daylight-saving changes near the # time stamps used during the test. diff --git a/tests/misc/md5sum b/tests/misc/md5sum index 474656f24..829f0ac10 100755 --- a/tests/misc/md5sum +++ b/tests/misc/md5sum @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/md5sum-newline b/tests/misc/md5sum-newline index 41139816a..af555d60c 100755 --- a/tests/misc/md5sum-newline +++ b/tests/misc/md5sum-newline @@ -1,7 +1,7 @@ #!/bin/sh # Newline tests for "md5sum". -# Copyright (C) 1999, 2000, 2003, 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2003, 2005, 2007-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl # See if we can create a filename that contains a newline. # Be careful to do it in a subshell so that we can redirect the diff --git a/tests/misc/mknod b/tests/misc/mknod index 37b33d18d..bcaf98bf3 100755 --- a/tests/misc/mknod +++ b/tests/misc/mknod @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that mknod, mkfifo, mkdir -m MODE work with a restrictive umask -# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then mknod --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/mktemp b/tests/misc/mktemp index affb0d17c..6ce9ba11c 100755 --- a/tests/misc/mktemp +++ b/tests/misc/mktemp @@ -1,7 +1,7 @@ #!/bin/sh # Test "mktemp". -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -19,7 +19,7 @@ # 02110-1301, USA. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/nice b/tests/misc/nice index 00227293a..f4d40121a 100755 --- a/tests/misc/nice +++ b/tests/misc/nice @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then nice --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh tests=' 0 empty 10 diff --git a/tests/misc/nl b/tests/misc/nl index 13855fbca..58baef9c3 100755 --- a/tests/misc/nl +++ b/tests/misc/nl @@ -1,7 +1,7 @@ #!/bin/sh # exercise nl functionality -# Copyright (C) 2002, 2003, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2006-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then nl --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/nohup b/tests/misc/nohup index ac9e5e561..62984062b 100755 --- a/tests/misc/nohup +++ b/tests/misc/nohup @@ -1,7 +1,7 @@ #!/bin/sh # test nohup -# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2006-2008 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 @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then nohup --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/od b/tests/misc/od index 498e57a85..9763e098a 100755 --- a/tests/misc/od +++ b/tests/misc/od @@ -2,7 +2,7 @@ # -*- perl -*- # Exercise od -# Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` me=`echo $0|sed 's,.*/,,'` diff --git a/tests/misc/od-N b/tests/misc/od-N index 0cff509f7..0213dc4ee 100755 --- a/tests/misc/od-N +++ b/tests/misc/od-N @@ -1,7 +1,7 @@ #!/bin/sh # Verify that `od -N N' reads no more than N bytes of input. -# Copyright (C) 2001, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2001, 2004, 2005-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then od --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh echo abcdefg > in || framework_failure diff --git a/tests/misc/od-x8 b/tests/misc/od-x8 index 852ddf43b..267ab4d87 100755 --- a/tests/misc/od-x8 +++ b/tests/misc/od-x8 @@ -2,7 +2,7 @@ # verify that od -t x8 works properly # This would fail before coreutils-4.5.2. -# Copyright (C) 2002, 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2005-2008 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 @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then od --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh od -t x8 /dev/null >/dev/null || skip_test_ "od lacks support for 8-byte quantities" diff --git a/tests/misc/paste b/tests/misc/paste index ab923a22a..9b50a511d 100755 --- a/tests/misc/paste +++ b/tests/misc/paste @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/pathchk1 b/tests/misc/pathchk1 index 453a8e277..3bc5869fd 100755 --- a/tests/misc/pathchk1 +++ b/tests/misc/pathchk1 @@ -1,7 +1,7 @@ #!/bin/sh # pathchk tests -# Copyright (C) 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2004, 2005-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then pathchk --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh skip_if_root_ touch file || framework_failure diff --git a/tests/misc/pr b/tests/misc/pr index 550c6d6f2..d189ddde5 100755 --- a/tests/misc/pr +++ b/tests/misc/pr @@ -2,7 +2,7 @@ # -*- perl -*- # Exercise a bug with pr -m -s -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/printf b/tests/misc/printf index 5637d25f2..bdcfb5d2f 100755 --- a/tests/misc/printf +++ b/tests/misc/printf @@ -1,7 +1,7 @@ #!/bin/sh # basic tests for printf -# Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2004, 2006-2008 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 @@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then "$prog" --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/printf-hex b/tests/misc/printf-hex index 4ece0ac29..e5db45e4d 100755 --- a/tests/misc/printf-hex +++ b/tests/misc/printf-hex @@ -1,7 +1,7 @@ #!/bin/sh # make sure that only two hex. digits are consumed in a \xHHH sequence -# Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2004, 2006-2008 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 @@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then "$prog" --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/printf-surprise b/tests/misc/printf-surprise index fe5458920..905660262 100755 --- a/tests/misc/printf-surprise +++ b/tests/misc/printf-surprise @@ -1,7 +1,7 @@ #!/bin/sh # Detect printf(3) failure even when it doesn't set stream error indicator -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then "$prog" --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh require_ulimit_ fail=0 diff --git a/tests/misc/ptx-overrun b/tests/misc/ptx-overrun index beadf7f1a..552d7e2c4 100755 --- a/tests/misc/ptx-overrun +++ b/tests/misc/ptx-overrun @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then ptx --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh # Using a long file name makes an abort more likely. # Even with no file name, valgrind detects the buffer overrun. diff --git a/tests/misc/pwd-long b/tests/misc/pwd-long index 37b552c4c..a8aff7016 100755 --- a/tests/misc/pwd-long +++ b/tests/misc/pwd-long @@ -18,9 +18,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh require_readable_root_ ARGV_0=$0 diff --git a/tests/misc/pwd-unreadable-parent b/tests/misc/pwd-unreadable-parent index 370a0d0ad..165cd79a1 100755 --- a/tests/misc/pwd-unreadable-parent +++ b/tests/misc/pwd-unreadable-parent @@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then readlink --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh test $host_os != linux-gnu && skip_test_ 'vendor getcwd may be inadequate' diff --git a/tests/misc/readlink-fp-loop b/tests/misc/readlink-fp-loop index ee65e2816..99c1ec073 100755 --- a/tests/misc/readlink-fp-loop +++ b/tests/misc/readlink-fp-loop @@ -1,7 +1,7 @@ #!/bin/sh # readlink from 6.9 would fail with a false-positive symlink loop error -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then readlink --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh cwd=$("$abs_top_builddir/src/pwd") # To trigger this bug, we have to construct a name/situation during diff --git a/tests/misc/runcon-no-reorder b/tests/misc/runcon-no-reorder index a395e10f8..05e3781af 100755 --- a/tests/misc/runcon-no-reorder +++ b/tests/misc/runcon-no-reorder @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that runcon does not reorder its arguments. -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then runcon --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh cat <<\EOF > exp || framework_failure runcon: runcon may be used only on a SELinux kernel diff --git a/tests/misc/selinux b/tests/misc/selinux index 87d1a8dde..414e22e4d 100755 --- a/tests/misc/selinux +++ b/tests/misc/selinux @@ -10,8 +10,8 @@ if test "$VERBOSE" = yes; then stat --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh skip_if_root_ require_selinux_ diff --git a/tests/misc/seq b/tests/misc/seq index f48289bdf..64c33f2a5 100755 --- a/tests/misc/seq +++ b/tests/misc/seq @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF diff --git a/tests/misc/sha1sum b/tests/misc/sha1sum index 452236d8d..56a549ed3 100755 --- a/tests/misc/sha1sum +++ b/tests/misc/sha1sum @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/sha1sum-vec b/tests/misc/sha1sum-vec index b00ece284..db0b3ad99 100755 --- a/tests/misc/sha1sum-vec +++ b/tests/misc/sha1sum-vec @@ -1,7 +1,7 @@ #!/bin/sh # Sample vectors for "sha1sum". -# Copyright (C) 2000, 2001, 2003, 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2003, 2005, 2007-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/sha224sum b/tests/misc/sha224sum index 022379cad..decac8f9f 100755 --- a/tests/misc/sha224sum +++ b/tests/misc/sha224sum @@ -1,7 +1,7 @@ #!/bin/sh # Test "sha224sum". -# Copyright (C) 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2005, 2007-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/sha256sum b/tests/misc/sha256sum index f28ef8ff1..bacf6ec59 100755 --- a/tests/misc/sha256sum +++ b/tests/misc/sha256sum @@ -1,7 +1,7 @@ #!/bin/sh # Test "sha256sum". -# Copyright (C) 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2005, 2007-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/sha384sum b/tests/misc/sha384sum index 0eb55872f..180241480 100755 --- a/tests/misc/sha384sum +++ b/tests/misc/sha384sum @@ -1,7 +1,7 @@ #!/bin/sh # Test "sha384sum". -# Copyright (C) 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2005, 2007-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/sha512sum b/tests/misc/sha512sum index 5977915fc..021ad8138 100755 --- a/tests/misc/sha512sum +++ b/tests/misc/sha512sum @@ -1,7 +1,7 @@ #!/bin/sh # Test "sha512sum". -# Copyright (C) 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2005, 2007-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/shred-exact b/tests/misc/shred-exact index e0fef3974..ea465902f 100755 --- a/tests/misc/shred-exact +++ b/tests/misc/shred-exact @@ -1,7 +1,7 @@ #!/bin/sh # make sure that neither --exact nor --zero gobbles a command line argument -# Copyright (C) 2000, 2003, 2004, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2000, 2003, 2004, 2006-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then shred --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/shred-remove b/tests/misc/shred-remove index 38013d3d8..f69166a9d 100755 --- a/tests/misc/shred-remove +++ b/tests/misc/shred-remove @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then shred --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh skip_if_root_ # The length of the basename is what matters. diff --git a/tests/misc/shuf b/tests/misc/shuf index ac59c55ff..2231dcd53 100755 --- a/tests/misc/shuf +++ b/tests/misc/shuf @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that shuf randomizes its input. -# Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then shuf --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh seq 100 > in || framework_failure diff --git a/tests/misc/sort-compress b/tests/misc/sort-compress index 00aae25c5..a555b26df 100755 --- a/tests/misc/sort-compress +++ b/tests/misc/sort-compress @@ -1,7 +1,7 @@ #!/bin/sh # Test use of compression by sort -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then sort --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh seq -w 2000 > exp || framework_failure tac exp > in || framework_failure diff --git a/tests/misc/sort-merge b/tests/misc/sort-merge index 7ac9f8440..b4224f71b 100755 --- a/tests/misc/sort-merge +++ b/tests/misc/sort-merge @@ -1,7 +1,7 @@ #!/bin/sh # Test "sort -m". -# Copyright (C) 2002, 2003, 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2005-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/sort-rand b/tests/misc/sort-rand index 8b9fb2df0..c42d16f5a 100755 --- a/tests/misc/sort-rand +++ b/tests/misc/sort-rand @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that sort --sort-random doesn't sort. -# Copyright (C) 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2005-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then sort --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh seq 100 > in || framework_failure diff --git a/tests/misc/split-a b/tests/misc/split-a index a8eed3876..6f426e29f 100755 --- a/tests/misc/split-a +++ b/tests/misc/split-a @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then split --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/split-fail b/tests/misc/split-fail index 5cc6d73ef..ce7ee295d 100755 --- a/tests/misc/split-fail +++ b/tests/misc/split-fail @@ -1,7 +1,7 @@ #!/bin/sh # split must fail when given length/count of zero. -# Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2005-2008 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 @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then split --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh touch in || framework_failure diff --git a/tests/misc/split-l b/tests/misc/split-l index 2460289b8..f2f23835f 100755 --- a/tests/misc/split-l +++ b/tests/misc/split-l @@ -1,7 +1,7 @@ #!/bin/sh # show that `split --lines=2' works. -# Copyright (C) 2002, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2006-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then ln --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh printf '1\n2\n3\n4\n5\n' > in || framework_failure diff --git a/tests/misc/stat-fmt b/tests/misc/stat-fmt index ebc3b880c..e19fb1271 100755 --- a/tests/misc/stat-fmt +++ b/tests/misc/stat-fmt @@ -1,7 +1,7 @@ #!/bin/sh # ensure that stat properly handles a format string ending with % -# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc. +# Copyright (C) 2003-2004, 2006, 2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then stat --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/stat-printf b/tests/misc/stat-printf index f175ba1f0..6615df5d1 100755 --- a/tests/misc/stat-printf +++ b/tests/misc/stat-printf @@ -1,7 +1,7 @@ #!/bin/sh # Test "stat --printf". -# Copyright (C) 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2005-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/stty b/tests/misc/stty index 6ec67be01..8c4815b2d 100755 --- a/tests/misc/stty +++ b/tests/misc/stty @@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then fi # Make sure there's a tty on stdin. -. $srcdir/../input-tty -. $srcdir/../test-lib.sh +. $top_srcdir/tests/input-tty +. $top_srcdir/tests/test-lib.sh # The following list of reversible options was generated with # grep -w REV stty.c|sed -n '/^ {"/{s//REV_/;s/".*/=1/;p;}'|fmt diff --git a/tests/misc/stty-invalid b/tests/misc/stty-invalid index d35159475..d478765ed 100755 --- a/tests/misc/stty-invalid +++ b/tests/misc/stty-invalid @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that stty diagnoses invalid inputs, rather than silently misbehaving. -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then fi # Make sure there's a tty on stdin. -. $srcdir/../input-tty -. $srcdir/../test-lib.sh +. $top_srcdir/tests/input-tty +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/stty-row-col b/tests/misc/stty-row-col index c7e49675d..d5d751070 100755 --- a/tests/misc/stty-row-col +++ b/tests/misc/stty-row-col @@ -37,8 +37,8 @@ LC_ALL=C export LC_ALL # Make sure there's a tty on stdin. -. $srcdir/../input-tty -. $srcdir/../test-lib.sh +. $top_srcdir/tests/input-tty +. $top_srcdir/tests/test-lib.sh # Versions of GNU stty from shellutils-1.9.2c and earlier failed # tests #2 and #4 when run on SunOS 4.1.3. diff --git a/tests/misc/sum b/tests/misc/sum index 14871ec2d..f36621406 100755 --- a/tests/misc/sum +++ b/tests/misc/sum @@ -1,7 +1,7 @@ #!/bin/sh # Test "sum". -# Copyright (C) 2000, 2003, 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2000, 2003, 2005-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/sum-sysv b/tests/misc/sum-sysv index d960f9818..e5361832d 100755 --- a/tests/misc/sum-sysv +++ b/tests/misc/sum-sysv @@ -1,7 +1,7 @@ #!/bin/sh # make sure `sum -s' works for input whose sum of bytes is larger than 2^32 -# Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2001-2004, 2006-2008 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 @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then fi : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl # Avoid a problem when run in a UTF-8 locale. # Otherwise, Perl would try to (and fail to) interpret @@ -30,7 +30,7 @@ fi LC_ALL=C export LC_ALL -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 diff --git a/tests/misc/tac-continue b/tests/misc/tac-continue index efc87f0a2..0c421e5b6 100755 --- a/tests/misc/tac-continue +++ b/tests/misc/tac-continue @@ -3,7 +3,7 @@ # when it encounters an error with say the first one. # With coreutils-5.2.1 and earlier, this test would fail. -# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006-2008 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 @@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then tac --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh # See if the envvar is defined. if test x = "x$FULL_PARTITION_TMPDIR"; then diff --git a/tests/misc/tee b/tests/misc/tee index 6da34a665..e73619fdf 100755 --- a/tests/misc/tee +++ b/tests/misc/tee @@ -1,7 +1,7 @@ #!/bin/sh # test for basic tee functionality. -# Copyright (C) 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2005-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then tee --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh echo line >sample || framework_failure nums=`seq 9` || framework_failure diff --git a/tests/misc/tee-dash b/tests/misc/tee-dash index 3e4ecd6f0..7b330f97c 100755 --- a/tests/misc/tee-dash +++ b/tests/misc/tee-dash @@ -1,7 +1,7 @@ #!/bin/sh # test for "tee -". -# Copyright (C) 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2005-2008 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 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then tee --version fi -. $srcdir/../test-lib.sh +. $top_srcdir/tests/test-lib.sh fail=0 tee - </dev/null || fail=1 diff --git a/tests/misc/test-diag b/tests/misc/test-diag index b7d899b63..9bdd95057 100755 --- a/tests/misc/test-diag +++ b/tests/misc/test-diag @@ -1,7 +1,7 @@ #!/bin/sh # Test the diagnostics of "test". -# Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/tsort b/tests/misc/tsort index 440c60e2d..dd593abdf 100755 --- a/tests/misc/tsort +++ b/tests/misc/tsort @@ -2,7 +2,7 @@ # -*- perl -*- # Test "tsort". -# Copyright (C) 1999, 2000, 2003-2007 Free Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2003-2008 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 @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/tty-eof b/tests/misc/tty-eof index 1de1d1f82..314ae8c20 100755 --- a/tests/misc/tty-eof +++ b/tests/misc/tty-eof @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl # Ensure that $TMPDIR is valid. TMPDIR=.; export TMPDIR diff --git a/tests/misc/unexpand b/tests/misc/unexpand index d2762f12a..de3ec87ee 100755 --- a/tests/misc/unexpand +++ b/tests/misc/unexpand @@ -1,7 +1,7 @@ #!/bin/sh # Test "unexpand". -# Copyright (C) 2000, 2003-2007 Free Software Foundation, Inc. +# Copyright (C) 2000, 2003-2008 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 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/wc-files0 b/tests/misc/wc-files0 index 44bf84ffe..7b54fda6c 100755 --- a/tests/misc/wc-files0 +++ b/tests/misc/wc-files0 @@ -1,7 +1,7 @@ #!/bin/sh # Show that wc's new --files0-from option works. -# Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then wc --version fi -. $srcdir/../lang-default -. $srcdir/../test-lib.sh +. $top_srcdir/tests/lang-default +. $top_srcdir/tests/test-lib.sh echo 2 > 2b || framework_failure echo 2 words > 2w || framework_failure diff --git a/tests/misc/wc-files0-from b/tests/misc/wc-files0-from index 61340d66a..d70bb7d56 100755 --- a/tests/misc/wc-files0-from +++ b/tests/misc/wc-files0-from @@ -3,7 +3,7 @@ # Exercise wc's --files0-from option. # This file bears a striking resemblance to tests/du/files0-from. -# Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 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 @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF diff --git a/tests/misc/xstrtol b/tests/misc/xstrtol index 874b4a502..cb8503543 100755 --- a/tests/misc/xstrtol +++ b/tests/misc/xstrtol @@ -1,7 +1,7 @@ #!/bin/sh # exercise xstrtol's diagnostics via pr -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 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 @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then fi : ${srcdir=.} -. $srcdir/../require-perl +. $top_srcdir/tests/require-perl me=`echo $0|sed 's,.*/,,'` exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF |