#!/usr/bin/perl -w
# $Id: 02_help.t 72 2007-05-03 23:42:24Z wsnyder $
# DESCRIPTION: Perl ExtUtils: Type 'make test' to test this package
#
# Copyright 2007-2007 by Wilson Snyder. This program is free software;
# you can redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License or the Perl Artistic License.
use strict;
use Test;
BEGIN { require "t/test_utils.pl"; }
my @execs = (glob("script/[a-z]*"));
plan tests => (2 * ($#execs+1));
foreach my $exe (@execs) {
print "Doc test of: $exe\n";
ok (-e $exe);
my $help = `$PERL $exe --help 2>&1`;
ok ($help =~ /DISTRIBUTION/);
}
syntax highlighted by Code2HTML, v. 0.9.1