]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: correct print_ver_ arguments and add a rule to enforce this
authorBernhard Voelker <mail@bernhard-voelker.de>
Wed, 22 Aug 2012 13:04:04 +0000 (15:04 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 22 Aug 2012 13:45:01 +0000 (15:45 +0200)
commitfadf9c525787f063e6fe84bdd5566e53a622c1ce
treeb1b113b7e2603f431dba408f79f4954545c28baf
parentcf7e1b5b8fb53aef2a9103a32d6ad5ee0b595fa6
tests: correct print_ver_ arguments and add a rule to enforce this

We use print_ver_ to run "PROG --version" for each program under
test.  Some tests have been derived from others, while the
argument(s) to print_ver_ have not been adapted.
Add a new cfg.mk rule to prohibit this.

* cfg.mk (sc_prohibit_test_calls_print_ver_with_irrelevant_argument):
New rule, to prohibit a test script from calling print_env_ for a
program not actually used by that test.
* tests/chown/basic: s/\(print_ver_\) chgrp/\1 chown/
* tests/cp/acl: s/\(print_ver_\) mv/\1 cp/
* tests/cp/capability: s/\(print_ver_\) ls/\1 cp/
* tests/cp/cp-parents: s/(print_ver_\) mv/\1 cp/
* tests/du/bind-mount-dir-cycle: s/(print_ver_\) rm/\1 du/
* tests/misc/wc-parallel: s/(print_ver_\) md5sum/\1 wc/
cfg.mk
tests/chown/basic
tests/cp/acl
tests/cp/capability
tests/cp/cp-parents
tests/du/bind-mount-dir-cycle
tests/misc/wc-parallel