diff options
author | Eric Blake <eblake@redhat.com> | 2010-10-01 15:43:23 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-10-01 15:43:23 -0600 |
commit | d4f304d7218b1ffd659684ae287a57beb297f2e7 (patch) | |
tree | 451207cb7786c6cf6cfcd9e90745276daad8a194 /tests/misc/sort-unique | |
parent | 7a5ecae996a6a18ee9bdaf0ad50782247c53ec7b (diff) | |
download | coreutils-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/sort-unique')
-rwxr-xr-x | tests/misc/sort-unique | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/misc/sort-unique b/tests/misc/sort-unique index e186d348a..e659febd0 100755 --- a/tests/misc/sort-unique +++ b/tests/misc/sort-unique @@ -16,12 +16,8 @@ # 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 |