From: Jim Meyering Date: Mon, 10 Sep 2007 17:01:39 +0000 (+0200) Subject: Move the sole test in tests/seq to tests/misc/seq. X-Git-Tag: v6.9.89~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d62bdb30f7ee8114162239178bc077ea81ecac38;p=platform%2Fupstream%2Fcoreutils.git Move the sole test in tests/seq to tests/misc/seq. * tests/seq/basic: Move this file to ... * tests/misc/seq: ...here. Don't rely on $PROG in env. * tests/misc/Makefile.am (TESTS): Add seq. * tests/Makefile.am (SUBDIRS): Remove seq. * tests/seq: Remove the directory. * configure.ac (AC_CONFIG_FILES): Remove tests/seq/Makefile --- diff --git a/configure.ac b/configure.ac index 048f260..e8e19cb 100644 --- a/configure.ac +++ b/configure.ac @@ -357,7 +357,6 @@ AC_CONFIG_FILES( tests/readlink/Makefile tests/rm/Makefile tests/rmdir/Makefile - tests/seq/Makefile tests/sha1sum/Makefile tests/shred/Makefile tests/sort/Makefile diff --git a/tests/Makefile.am b/tests/Makefile.am index 1984235..ef06667 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -46,7 +46,7 @@ EXTRA_DIST = \ SUBDIRS = \ chgrp chmod chown cp cut dd du head \ install join ln ls ls-2 misc mkdir mv od pr readlink rm rmdir \ - seq sha1sum shred sort stty sum tac tail tail-2 tee test touch tr \ + sha1sum shred sort stty sum tac tail tail-2 tee test touch tr \ tsort unexpand uniq wc ## N O T E :: Please do not add new directories. diff --git a/tests/misc/Makefile.am b/tests/misc/Makefile.am index 1d5334e..ab53737 100644 --- a/tests/misc/Makefile.am +++ b/tests/misc/Makefile.am @@ -87,6 +87,7 @@ TESTS = \ printf-hex \ pwd-long \ runcon-no-reorder \ + seq \ sha224sum \ sha256sum \ sha384sum \ diff --git a/tests/seq/basic b/tests/misc/seq similarity index 97% rename from tests/seq/basic rename to tests/misc/seq index 843a09e..2d662c3 100755 --- a/tests/seq/basic +++ b/tests/misc/seq @@ -36,8 +36,6 @@ use strict; # 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 = ( ['onearg-1', qw(10), {OUT => [(1..10)]}], @@ -95,6 +93,7 @@ foreach $t (@Tests) my $save_temps = $ENV{SAVE_TEMPS}; my $verbose = $ENV{VERBOSE}; +my $prog = 'seq'; my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose); exit $fail; diff --git a/tests/seq/Makefile.am b/tests/seq/Makefile.am deleted file mode 100644 index 7463a5d..0000000 --- a/tests/seq/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=seq