]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't depend on "which".
authorJim Meyering <jim@meyering.net>
Tue, 23 Jan 2007 23:34:54 +0000 (00:34 +0100)
committerJim Meyering <jim@meyering.net>
Tue, 23 Jan 2007 23:34:54 +0000 (00:34 +0100)
* tests/misc/sort-compress (SORT): Use $abs_builddir, now which.
* tests/misc/Makefile.am (TESTS_ENVIRONMENT): Export top_builddir.

ChangeLog
tests/misc/Makefile.am
tests/misc/sort-compress

index 59d7b165392a4fd7bdce84c83d114452d4a9a34c..e215e1d5a8a705c88d857491ade0b52f1207e438 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-24  Jim Meyering  <jim@meyering.net>
+
+       Don't depend on "which".
+       * tests/misc/sort-compress (SORT): Use $abs_builddir, now which.
+       * tests/misc/Makefile.am (TESTS_ENVIRONMENT): Export top_builddir.
+
 2007-01-24  Dan Hipschman  <dsh@linux.ucla.edu>
 
        Test sort compression.
index 9950bafda670038ece16a9a5ad43295e88bc3fc3..28503186e2fcb45827f2aa98fc466cf4d494fa5f 100644 (file)
@@ -1,7 +1,6 @@
 # Make miscellaneous coreutils tests.                  -*-Makefile-*-
 
-# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
+# Copyright (C) 200-2007 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,6 +21,7 @@ EXTRA_DIST = $(TESTS)
 
 TESTS_ENVIRONMENT = \
   top_srcdir=$(top_srcdir) \
+  top_builddir=$(top_builddir) \
   srcdir=$(srcdir) \
   PACKAGE_VERSION=$(PACKAGE_VERSION) \
   PERL="$(PERL)" \
index 79970807b6f63059c2e7ef9f7f8cb4c42baad386..7e92fe59c7e9662f10c609210711d0c242ed3c18 100755 (executable)
@@ -33,7 +33,7 @@ mkdir -p $tmp || framework_failure=1
 cd $tmp || framework_failure=1
 seq -w 2000 > exp || framework_failure=1
 tac exp > in || framework_failure=1
-SORT=`which sort` || framework_failure=1
+SORT=$top_builddir/src/sort
 
 if test $framework_failure = 1; then
   echo "$0: failure in testing framework" 1>&2