Move the two tests in tests/md5sum to tests/misc/md5sum.
authorJim Meyering <jim@meyering.net>
Sat, 8 Sep 2007 13:51:25 +0000 (15:51 +0200)
committerJim Meyering <jim@meyering.net>
Sat, 15 Sep 2007 06:40:39 +0000 (08:40 +0200)
* tests/md5sum/basic-1: Move this file to ...
* tests/misc/md5sum: ...here.  Don't rely on $PROG in env.
* tests/md5sum/newline-1: Move this file to ...
* tests/misc/md5sum-newline: ...here.  Don't rely on $PROG in env.
* tests/misc/Makefile.am (TESTS): Add md5sum.
* tests/Makefile.am (SUBDIRS): Remove md5sum.
* tests/md5sum: Remove the directory.
* configure.ac (AC_CONFIG_FILES): Remove tests/md5sum/Makefile

configure.ac
tests/Makefile.am
tests/md5sum/Makefile.am [deleted file]
tests/misc/Makefile.am
tests/misc/md5sum [moved from tests/md5sum/basic-1 with 95% similarity]
tests/misc/md5sum-newline [moved from tests/md5sum/newline-1 with 92% similarity]

index 6012b56..048f260 100644 (file)
@@ -349,7 +349,6 @@ AC_CONFIG_FILES(
   tests/ln/Makefile
   tests/ls-2/Makefile
   tests/ls/Makefile
-  tests/md5sum/Makefile
   tests/misc/Makefile
   tests/mkdir/Makefile
   tests/mv/Makefile
index be36fb8..1984235 100644 (file)
@@ -45,7 +45,7 @@ EXTRA_DIST =          \
 ## There are too many already.  Put new tests in misc/.
 SUBDIRS = \
   chgrp chmod chown cp cut dd du head \
-  install join ln ls ls-2 md5sum misc mkdir mv od pr readlink rm rmdir \
+  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 \
   tsort unexpand uniq wc
 ## N O T E :: Please do not add new directories.
diff --git a/tests/md5sum/Makefile.am b/tests/md5sum/Makefile.am
deleted file mode 100644 (file)
index 0ed74e0..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-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=md5sum
-
-TESTS = basic-1 newline-1
index faf9e49..1d5334e 100644 (file)
@@ -75,6 +75,8 @@ TESTS = \
   groups-version \
   head-c \
   head-pos \
+  md5sum \
+  md5sum-newline \
   mknod \
   nice \
   nl \
similarity index 95%
rename from tests/md5sum/basic-1
rename to tests/misc/md5sum
index 7b56e64..43407a4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Basic tests for "md5sum".
 
-# Copyright (C) 1998, 1999, 2003, 2005 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 2003, 2005, 2007 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -82,7 +82,7 @@ foreach $t (@Tests)
 my $save_temps = $ENV{DEBUG};
 my $verbose = $ENV{VERBOSE};
 
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
+my $prog = 'md5sum';
 my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
 exit $fail;
 EOF
similarity index 92%
rename from tests/md5sum/newline-1
rename to tests/misc/md5sum-newline
index 5e16b9c..22717d4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Newline tests for "md5sum".
 
-# Copyright (C) 1999, 2000, 2003, 2005 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2003, 2005, 2007 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -62,7 +62,7 @@ my @Tests =
 my $save_temps = $ENV{DEBUG};
 my $verbose = $ENV{VERBOSE};
 
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
+my $prog = 'md5sum';
 my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
 exit $fail;
 EOF