Move the sole test in tests/expr to tests/misc/expr.
authorJim Meyering <jim@meyering.net>
Fri, 7 Sep 2007 20:46:52 +0000 (22:46 +0200)
committerJim Meyering <jim@meyering.net>
Sat, 15 Sep 2007 06:40:38 +0000 (08:40 +0200)
* tests/expr/basic: Move this file to ...
* tests/misc/expr: ...here.  Don't rely on $PROG in env.
* tests/misc/Makefile.am (TESTS): Add expr.
* tests/Makefile.am (SUBDIRS): Remove expr.
* tests/expr: Remove the directory.
* configure.ac (AC_CONFIG_FILES): Remove tests/expr/Makefile

configure.ac
tests/Makefile.am
tests/expr/Makefile.am [deleted file]
tests/misc/Makefile.am
tests/misc/expr [moved from tests/expr/basic with 99% similarity]

index c488f0d..157ca30 100644 (file)
@@ -343,7 +343,6 @@ AC_CONFIG_FILES(
   tests/cut/Makefile
   tests/dd/Makefile
   tests/du/Makefile
-  tests/expr/Makefile
   tests/factor/Makefile
   tests/fmt/Makefile
   tests/head/Makefile
index 2d57bfc..84e0fdd 100644 (file)
@@ -44,7 +44,7 @@ EXTRA_DIST =          \
 ## N O T E :: Please do not add new tests/ directories.
 ## There are too many already.  Put new tests in misc/.
 SUBDIRS = \
-  chgrp chmod chown cp cut dd du expr factor fmt head \
+  chgrp chmod chown cp cut dd du factor fmt head \
   install join ln ls ls-2 md5sum misc mkdir mv od pr readlink rm rmdir \
   seq sha1sum shred sort stty sum tac tail tail-2 tee test touch tr \
   tsort unexpand uniq wc
diff --git a/tests/expr/Makefile.am b/tests/expr/Makefile.am
deleted file mode 100644 (file)
index 7440c74..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = basic
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
-  top_srcdir=$(top_srcdir) \
-  srcdir=$(srcdir) \
-  PERL="$(PERL)" \
-  CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
-  PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
-  PROG=expr
index 9555636..f1775d8 100644 (file)
@@ -66,6 +66,7 @@ TESTS = \
   df \
   dirname \
   expand \
+  expr \
   false-status \
   fold \
   groups-version \
similarity index 99%
rename from tests/expr/basic
rename to tests/misc/expr
index 5227da0..2a7f4c0 100755 (executable)
@@ -32,12 +32,11 @@ require 5.003;
 use strict;
 
 (my $program_name = $0) =~ s|.*/||;
+my $prog = 'expr';
 
 # Turn off localisation of executable's ouput.
 @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
 
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-
 my @Tests =
     (
      ['a', '5 + 6', {OUT => '11'}],