]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: output --version of program under test
authorEric Blake <eblake@redhat.com>
Fri, 1 Oct 2010 21:43:23 +0000 (15:43 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 1 Oct 2010 21:43:23 +0000 (15:43 -0600)
This touches all new tests added since commit b062bbd9, when
init.cfg was added.  Older tests still exist that could use
conversion, but we can address those later.

* tests/sample-test: Restore hint for --version output.
* tests/misc/stat-birthtime: Include --version if verbose.
* tests/misc/tr-case-class: Likewise.
* tests/misc/stat-mount: Likewise.
* tests/misc/sort-unique: Likewise.
* tests/misc/sort-benchmark-random: Likewise.
Suggested by Jim Meyering.

tests/misc/sort-benchmark-random
tests/misc/sort-unique
tests/misc/stat-birthtime
tests/misc/stat-mount
tests/misc/tr-case-class
tests/sample-test

index 3325381158f9e66ea24f2906b389b0e30a3fb0f1..135534454a542a9e53919bc01192e676b8573531 100755 (executable)
@@ -19,6 +19,7 @@
 # Written by Glen Lenker.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 very_expensive_
 
index e186d348a049284e8e80e25bea836b1709947995..e659febd01c718bed5681a93081a9dcec615010b 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 cat > in <<\EOF
 1
index 38e5d5947cf9a957fd1f9bc3303951130be04e19..4490ee80844f4fce87b6a8ce188e2dfc72208879 100755 (executable)
@@ -17,6 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && stat --version
 
 # Whether birthtime is supported or not, it better not change even when
 # [acm]time are modified.  :)
index a99291f6dec3f161a8bd4c884ba67988f4a0626a..039ce50407f4edfd0d33ee39573f1c31942af1ef 100755 (executable)
@@ -17,6 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && stat --version
 
 df_mnt=$(df -P . | sed -n '2s/.* \([^ ]*$\)/\1/p')
 stat_mnt=$(stat -c%m .) || fail=1
index d81c676c3ebaed79964307886dd11d392069f153..14c6b0ea06bd64c5f1c0bbb1e0f1ec1883c9e5e5 100755 (executable)
@@ -17,6 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tr --version
 
 # Ensure we support translation of case classes with extension
 echo '01234567899999999999999999' > exp
index 85b779f07c133772c6f0131936ac5b7cf97cd512..51408ce8c24eb1cd90160800dc010c030c5a1bd7 100644 (file)
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && FIXME --version
+
 # FIXME: skip_if_root_
 # FIXME: require_root_