From fd9f53cfdf3b1d69f8ace0deded9699b248ac81f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 7 Sep 2007 22:46:52 +0200 Subject: [PATCH] Move the sole test in tests/expr to tests/misc/expr. * 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 | 1 - tests/Makefile.am | 2 +- tests/expr/Makefile.am | 10 ---------- tests/misc/Makefile.am | 1 + tests/{expr/basic => misc/expr} | 3 +-- 5 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 tests/expr/Makefile.am rename tests/{expr/basic => misc/expr} (99%) diff --git a/configure.ac b/configure.ac index c488f0d..157ca30 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/tests/Makefile.am b/tests/Makefile.am index 2d57bfc..84e0fdd 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 7440c74..0000000 --- a/tests/expr/Makefile.am +++ /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 diff --git a/tests/misc/Makefile.am b/tests/misc/Makefile.am index 9555636..f1775d8 100644 --- a/tests/misc/Makefile.am +++ b/tests/misc/Makefile.am @@ -66,6 +66,7 @@ TESTS = \ df \ dirname \ expand \ + expr \ false-status \ fold \ groups-version \ diff --git a/tests/expr/basic b/tests/misc/expr similarity index 99% rename from tests/expr/basic rename to tests/misc/expr index 5227da0..2a7f4c0 100755 --- a/tests/expr/basic +++ b/tests/misc/expr @@ -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'}], -- 2.7.4