From d4f304d7218b1ffd659684ae287a57beb297f2e7 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 1 Oct 2010 15:43:23 -0600 Subject: 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. --- tests/misc/sort-unique | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/misc/sort-unique') 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 . -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 -- cgit v1.2.3-54-g00ecf