summaryrefslogtreecommitdiff
path: root/tests/misc/stat-mount
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-10-01 15:43:23 -0600
committerEric Blake <eblake@redhat.com>2010-10-01 15:43:23 -0600
commitd4f304d7218b1ffd659684ae287a57beb297f2e7 (patch)
tree451207cb7786c6cf6cfcd9e90745276daad8a194 /tests/misc/stat-mount
parent7a5ecae996a6a18ee9bdaf0ad50782247c53ec7b (diff)
downloadcoreutils-d4f304d7218b1ffd659684ae287a57beb297f2e7.tar.xz
tests: output --version of program under test
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.
Diffstat (limited to 'tests/misc/stat-mount')
-rwxr-xr-xtests/misc/stat-mount1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/misc/stat-mount b/tests/misc/stat-mount
index a99291f6d..039ce5040 100755
--- a/tests/misc/stat-mount
+++ b/tests/misc/stat-mount
@@ -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