Windows: remove unused and leaked uniRootFileNameClone
[openafs.git] / tests / volser / vos-man-t
index 4f7aad9..2e2cc35 100755 (executable)
@@ -3,6 +3,8 @@
 use strict;
 use warnings;
 use File::Basename;
+use lib "./tests-lib/perl5";
+use mancheck_utils;
 
 # Set this to the bare command to test
 my $command = 'vos';
@@ -16,12 +18,8 @@ my $srcdir = "$builddir/src/volser";
 
 #---------------------------------------------------------------------
 
-# Keep track of number of tests we ran. We don't know up front.
-my $testcount = 0;
+my @sub_commands = lookup_sub_commands($srcdir, $command);
+plan tests => scalar @sub_commands;
 
-use lib "./tests-lib/perl5";
-use mancheck_utils;
+test_command_man_pages($builddir, $command, @sub_commands);
 
-check_command_binary("$srcdir/$command");
-my $count = test_command_man_pages($builddir, "$srcdir/$command");
-done_testing($count);