Move the sole test in tests/seq to tests/misc/seq.
authorJim Meyering <jim@meyering.net>
Mon, 10 Sep 2007 17:01:39 +0000 (19:01 +0200)
committerJim Meyering <jim@meyering.net>
Sat, 15 Sep 2007 06:40:39 +0000 (08:40 +0200)
* 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

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

index 048f260..e8e19cb 100644 (file)
@@ -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
index 1984235..ef06667 100644 (file)
@@ -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.
 
index 1d5334e..ab53737 100644 (file)
@@ -87,6 +87,7 @@ TESTS = \
   printf-hex \
   pwd-long \
   runcon-no-reorder \
+  seq \
   sha224sum \
   sha256sum \
   sha384sum \
similarity index 97%
rename from tests/seq/basic
rename to tests/misc/seq
index 843a09e..2d662c3 100755 (executable)
@@ -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 (file)
index 7463a5d..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=seq