X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=tests%2Fvenus%2Ffs-man-t;h=952b6bb970433c8ddf58489e967b3dcacc1df63b;hp=6e29fd390a5a28c7444e9ac4007ed0118a17ad45;hb=1bd03c9c22ca7f36b9f1647c258b5f18c8ac92c0;hpb=f0774acd73b4698be72a5a6c46534fec7dab621c diff --git a/tests/venus/fs-man-t b/tests/venus/fs-man-t index 6e29fd3..952b6bb 100755 --- a/tests/venus/fs-man-t +++ b/tests/venus/fs-man-t @@ -1,26 +1,8 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; -use File::Basename; -use lib "./tests-lib/perl5"; +use lib $ENV{SOURCE} . "/tests-lib/perl5"; use mancheck_utils; -# Set this to the bare command to test -my $command = 'fs'; -my $builddir = $ENV{BUILD}; -if (!$builddir) { - $builddir = dirname($0) . "/.."; -} -$builddir .= "/.."; -# Set this to the directory holding $command -my $srcdir = "$builddir/src/venus"; - -#--------------------------------------------------------------------- - -# Keep track of number of tests we ran. We don't know up front. -my $testcount = 0; - -check_command_binary("$srcdir/$command"); -my $count = test_command_man_pages($builddir, "$srcdir/$command"); -done_testing($count); +run_manpage_tests("src/venus", "fs");