From aa3a727dc021bc23817957b0f8daec284a617df0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 7 Sep 2007 23:54:49 +0200 Subject: [PATCH] Move the sole test in tests/factor to tests/misc/factor. * tests/factor/basic: Move this file to ... * tests/misc/factor: ...here. Don't rely on $PROG in env. * tests/misc/Makefile.am (TESTS): Add factor. * tests/Makefile.am (SUBDIRS): Remove factor. * tests/factor: Remove the directory. * configure.ac (AC_CONFIG_FILES): Remove tests/factor/Makefile --- configure.ac | 1 - tests/Makefile.am | 2 +- tests/factor/Makefile.am | 10 ---------- tests/misc/Makefile.am | 1 + tests/{factor/basic => misc/factor} | 3 +-- 5 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 tests/factor/Makefile.am rename tests/{factor/basic => misc/factor} (97%) diff --git a/configure.ac b/configure.ac index 157ca30bec..ed6953f370 100644 --- a/configure.ac +++ b/configure.ac @@ -343,7 +343,6 @@ AC_CONFIG_FILES( tests/cut/Makefile tests/dd/Makefile tests/du/Makefile - tests/factor/Makefile tests/fmt/Makefile tests/head/Makefile tests/install/Makefile diff --git a/tests/Makefile.am b/tests/Makefile.am index 84e0fdd872..53985da046 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 factor fmt head \ + chgrp chmod chown cp cut dd du 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/factor/Makefile.am b/tests/factor/Makefile.am deleted file mode 100644 index dedc143bb2..0000000000 --- a/tests/factor/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=factor diff --git a/tests/misc/Makefile.am b/tests/misc/Makefile.am index f1775d85ea..b237858470 100644 --- a/tests/misc/Makefile.am +++ b/tests/misc/Makefile.am @@ -67,6 +67,7 @@ TESTS = \ dirname \ expand \ expr \ + factor \ false-status \ fold \ groups-version \ diff --git a/tests/factor/basic b/tests/misc/factor similarity index 97% rename from tests/factor/basic rename to tests/misc/factor index bd2cc08517..e6d3bcf710 100755 --- a/tests/factor/basic +++ b/tests/misc/factor @@ -33,12 +33,11 @@ require 5.003; use strict; (my $program_name = $0) =~ s|.*/||; +my $prog = 'factor'; # 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 = ( ['1', '9', {OUT => '3 3'}], -- 2.47.2