/usr/share/cagefs-skeleton/usr/bin
#!/usr/bin/perl -w BEGIN { pop @INC if $INC[-1] eq '.' } use strict; use warnings; use App::Prove; my $app = App::Prove->new; $app->process_args(@ARGV); exit( $app->run ? 0 : 1 ); __END__ =head1 NAME prove - Run tests through a TAP harness. =head1 USAGE prove [options] [files or directories] =head1 OPTIONS Boolean options: -v, --verbose Print all test lines. -l, --lib Add 'lib' to the path for your tests (-Ilib). -b, --blib Add 'blib/lib' and 'blib/arch' to the path for your tests -s, --shuffle Run the tests in random order. -c, --color Colored test output (default). --nocolor Do not color test output. --count Show the X/Y test count when not verbose (default) --nocount Disable the X/Y test count. -D --dry Dry run. Show test that would have run. -f, --failures Show failed tests. -o, --comments Show comments. --ignore-exit Ignore exit status from test scripts. -m, --merge Merge test scripts' STDERR with their STDOUT. -r, --recurse Recursively descend into directories. --reverse Run the tests in reverse order. -q, --quiet Suppress some test output while running tests. -Q, --QUIET Only print summary results. -p, --parse Show full list of TAP parse errors, if any. --directives Only show results with TODO or SKIP directives. --timer Print elapsed time after each test. --trap Trap Ctrl-C and print summary on interrupt. --normalize Normalize TAP output in verbose output -T Enable tainting checks. -t Enable tainting warnings. -W Enable fatal warnings. -w Enable warnings. -h, --help Display this help -?, Display this help -V, --version Display the version -H, --man Longer manpage for prove --norc Don't process default .proverc Options that take arguments: -I Library paths to include. -P Load plugin (searches App::Prove::Plugin::*.) -M Load a module. -e, --exec Interpreter to run the tests ('' for compiled tests.) --ext Set the extension for tests (default '.t') --harness Define test harness to use. See TAP::Harness. --formatter Result formatter to use. See FORMATTERS. --source Load and/or configure a SourceHandler. See SOURCE HANDLERS. -a, --archive out.tgz Store the resulting TAP in an archive file. -j, --jobs N Run N test jobs in parallel (try 9.) --state=opts Control prove's persistent state. --statefile=file Use `file` instead of `.prove` for state --rc=rcfile Process options from rcfile --rules Rules for parallel vs sequential processing. =head1 NOTES =head2 .proverc If F<~/.proverc> or F<./.proverc> exist they will be read and any options they contain processed before the command line options. Options in F<.proverc> are specified in the same way as command line options: # .proverc --state=hot,fast,save -j9 Additional option files may be specified with the C<--rc> option. Default option file processing is disabled by the C<--norc> option. Under Windows and VMS the option file is named F<_proverc> rather than F<.proverc> and is sought only in the current directory. =head2 Reading from C<STDIN> If you have a list of tests (or URLs, or anything else you want to test) in a file, you can add them to your tests by using a '-': prove - < my_list_of_things_to_test.txt See the C<README> in the C<examples> directory of this distribution. =head2 Default Test Directory If no files or directories are supplied, C<prove> looks for all files matching the pattern C<t/*.t>. =head2 Colored Test Output Colored test output using L<TAP::Formatter::Color> is the default, but if output is not to a terminal, color is disabled. You can override this by adding the C<--color> switch. Color support requires L<Term::ANSIColor> and, on windows platforms, also L<Win32::Console::ANSI>. If the necessary module(s) are not installed colored output will not be available. =head2 Exit Code If the tests fail C<prove> will exit with non-zero status. =head2 Arguments to Tests It is possible to supply arguments to tests. To do so separate them from prove's own arguments with the arisdottle, '::'. For example prove -v t/mytest.t :: --url http://example.com would run F<t/mytest.t> with the options '--url http://example.com'. When running multiple tests they will each receive the same arguments. =head2 C<--exec> Normally you can just pass a list of Perl tests and the harness will know how to execute them. However, if your tests are not written in Perl or if you want all tests invoked exactly the same way, use the C<-e>, or C<--exec> switch: prove --exec '/usr/bin/ruby -w' t/ prove --exec '/usr/bin/perl -Tw -mstrict -Ilib' t/ prove --exec '/path/to/my/customer/exec' =head2 C<--merge> If you need to make sure your diagnostics are displayed in the correct order relative to test results you can use the C<--merge> option to merge the test scripts' STDERR into their STDOUT. This guarantees that STDOUT (where the test results appear) and STDERR (where the diagnostics appear) will stay in sync. The harness will display any diagnostics your tests emit on STDERR. Caveat: this is a bit of a kludge. In particular note that if anything that appears on STDERR looks like a test result the test harness will get confused. Use this option only if you understand the consequences and can live with the risk. =head2 C<--trap> The C<--trap> option will attempt to trap SIGINT (Ctrl-C) during a test run and display the test summary even if the run is interrupted =head2 C<--state> You can ask C<prove> to remember the state of previous test runs and select and/or order the tests to be run based on that saved state. The C<--state> switch requires an argument which must be a comma separated list of one or more of the following options. =over =item C<last> Run the same tests as the last time the state was saved. This makes it possible, for example, to recreate the ordering of a shuffled test. # Run all tests in random order $ prove -b --state=save --shuffle # Run them again in the same order $ prove -b --state=last =item C<failed> Run only the tests that failed on the last run. # Run all tests $ prove -b --state=save # Run failures $ prove -b --state=failed If you also specify the C<save> option newly passing tests will be excluded from subsequent runs. # Repeat until no more failures $ prove -b --state=failed,save =item C<passed> Run only the passed tests from last time. Useful to make sure that no new problems have been introduced. =item C<all> Run all tests in normal order. Multple options may be specified, so to run all tests with the failures from last time first: $ prove -b --state=failed,all,save =item C<hot> Run the tests that most recently failed first. The last failure time of each test is stored. The C<hot> option causes tests to be run in most-recent- failure order. $ prove -b --state=hot,save Tests that have never failed will not be selected. To run all tests with the most recently failed first use $ prove -b --state=hot,all,save This combination of options may also be specified thus $ prove -b --state=adrian =item C<todo> Run any tests with todos. =item C<slow> Run the tests in slowest to fastest order. This is useful in conjunction with the C<-j> parallel testing switch to ensure that your slowest tests start running first. $ prove -b --state=slow -j9 =item C<fast> Run test tests in fastest to slowest order. =item C<new> Run the tests in newest to oldest order based on the modification times of the test scripts. =item C<old> Run the tests in oldest to newest order. =item C<fresh> Run those test scripts that have been modified since the last test run. =item C<save> Save the state on exit. The state is stored in a file called F<.prove> (F<_prove> on Windows and VMS) in the current directory. =back The C<--state> switch may be used more than once. $ prove -b --state=hot --state=all,save =head2 --rules The C<--rules> option is used to control which tests are run sequentially and which are run in parallel, if the C<--jobs> option is specified. The option may be specified multiple times, and the order matters. The most practical use is likely to specify that some tests are not "parallel-ready". Since mentioning a file with --rules doesn't cause it to be selected to run as a test, you can "set and forget" some rules preferences in your .proverc file. Then you'll be able to take maximum advantage of the performance benefits of parallel testing, while some exceptions are still run in parallel. =head3 --rules examples # All tests are allowed to run in parallel, except those starting with "p" --rules='seq=t/p*.t' --rules='par=**' # All tests must run in sequence except those starting with "p", which should be run parallel --rules='par=t/p*.t' =head3 --rules resolution =over 4 =item * By default, all tests are eligible to be run in parallel. Specifying any of your own rules removes this one. =item * "First match wins". The first rule that matches a test will be the one that applies. =item * Any test which does not match a rule will be run in sequence at the end of the run. =item * The existence of a rule does not imply selecting a test. You must still specify the tests to run. =item * Specifying a rule to allow tests to run in parallel does not make them run in parallel. You still need specify the number of parallel C<jobs> in your Harness object. =back =head3 --rules Glob-style pattern matching We implement our own glob-style pattern matching for --rules. Here are the supported patterns: ** is any number of characters, including /, within a pathname * is zero or more characters within a filename/directory name ? is exactly one character within a filename/directory name {foo,bar,baz} is any of foo, bar or baz. \ is an escape character =head3 More advanced specifications for parallel vs sequence run rules If you need more advanced management of what runs in parallel vs in sequence, see the associated 'rules' documentation in L<TAP::Harness> and L<TAP::Parser::Scheduler>. If what's possible directly through C<prove> is not sufficient, you can write your own harness to access these features directly. =head2 @INC prove introduces a separation between "options passed to the perl which runs prove" and "options passed to the perl which runs tests"; this distinction is by design. Thus the perl which is running a test starts with the default C<@INC>. Additional library directories can be added via the C<PERL5LIB> environment variable, via -Ifoo in C<PERL5OPT> or via the C<-Ilib> option to F<prove>. =head2 Taint Mode Normally when a Perl program is run in taint mode the contents of the C<PERL5LIB> environment variable do not appear in C<@INC>. Because C<PERL5LIB> is often used during testing to add build directories to C<@INC> prove passes the names of any directories found in C<PERL5LIB> as -I switches. The net effect of this is that C<PERL5LIB> is honoured even when prove is run in taint mode. =head1 FORMATTERS You can load a custom L<TAP::Parser::Formatter>: prove --formatter MyFormatter =head1 SOURCE HANDLERS You can load custom L<TAP::Parser::SourceHandler>s, to change the way the parser interprets particular I<sources> of TAP. prove --source MyHandler --source YetAnother t If you want to provide config to the source you can use: prove --source MyCustom \ --source Perl --perl-option 'foo=bar baz' --perl-option avg=0.278 \ --source File --file-option extensions=.txt --file-option extensions=.tmp t --source pgTAP --pgtap-option pset=format=html --pgtap-option pset=border=2 Each C<--$source-option> option must specify a key/value pair separated by an C<=>. If an option can take multiple values, just specify it multiple times, as with the C<extensions=> examples above. If the option should be a hash reference, specify the value as a second pair separated by a C<=>, as in the C<pset=> examples above (escape C<=> with a backslash). All C<--sources> are combined into a hash, and passed to L<TAP::Harness/new>'s C<sources> parameter. See L<TAP::Parser::IteratorFactory> for more details on how configuration is passed to I<SourceHandlers>. =head1 PLUGINS Plugins can be loaded using the C<< -PI<plugin> >> syntax, eg: prove -PMyPlugin This will search for a module named C<App::Prove::Plugin::MyPlugin>, or failing that, C<MyPlugin>. If the plugin can't be found, C<prove> will complain & exit. You can pass arguments to your plugin by appending C<=arg1,arg2,etc> to the plugin name: prove -PMyPlugin=fou,du,fafa Please check individual plugin documentation for more details. =head2 Available Plugins For an up-to-date list of plugins available, please check CPAN: L<http://search.cpan.org/search?query=App%3A%3AProve+Plugin> =head2 Writing Plugins Please see L<App::Prove/PLUGINS>. =cut # vim:ts=4:sw=4:et:sta
.
Edit
..
Edit
GET
Edit
Mail
Edit
[
Edit
aclocal
Edit
aclocal-1.16
Edit
addr2line
Edit
animate
Edit
ar
Edit
arch
Edit
arpaname
Edit
as
Edit
aspell
Edit
at
Edit
atq
Edit
atrm
Edit
autoconf
Edit
autoheader
Edit
autom4te
Edit
automake
Edit
automake-1.16
Edit
autoreconf
Edit
autoscan
Edit
autoupdate
Edit
awk
Edit
b2sum
Edit
base32
Edit
base64
Edit
basename
Edit
basenc
Edit
bash
Edit
bashbug-64
Edit
batch
Edit
bison
Edit
bunzip2
Edit
bzcat
Edit
bzcmp
Edit
bzdiff
Edit
bzgrep
Edit
bzip2
Edit
bzip2recover
Edit
bzless
Edit
bzmore
Edit
c++
Edit
c++filt
Edit
c89
Edit
c99
Edit
cagefs_enter.proxied
Edit
cal
Edit
captoinfo
Edit
cat
Edit
catchsegv
Edit
cc
Edit
chcon
Edit
chgrp
Edit
chmod
Edit
chown
Edit
chrt
Edit
cksum
Edit
cldetect
Edit
clear
Edit
cloudlinux-awp-user
Edit
clwpos-user
Edit
cmp
Edit
col
Edit
colcrt
Edit
colrm
Edit
column
Edit
comm
Edit
compare
Edit
composite
Edit
conjure
Edit
convert
Edit
cp
Edit
cpan
Edit
cpp
Edit
crontab
Edit
crontab.cagefs
Edit
csplit
Edit
curl
Edit
cut
Edit
cyrusbdb2current
Edit
date
Edit
dbiprof
Edit
dd
Edit
delv
Edit
df
Edit
diff
Edit
diff3
Edit
dig
Edit
dir
Edit
dircolors
Edit
dirname
Edit
display
Edit
dnstap-read
Edit
du
Edit
echo
Edit
ed
Edit
egrep
Edit
enc2xs
Edit
enchant
Edit
enchant-lsmod
Edit
env
Edit
eps2eps
Edit
eqn
Edit
ex
Edit
expand
Edit
expr
Edit
factor
Edit
false
Edit
fc-cache
Edit
fc-cache-64
Edit
fc-cat
Edit
fc-conflist
Edit
fc-list
Edit
fc-match
Edit
fc-pattern
Edit
fc-query
Edit
fc-scan
Edit
fc-validate
Edit
fgrep
Edit
file
Edit
find
Edit
flex
Edit
flex++
Edit
flock
Edit
fmt
Edit
fold
Edit
free
Edit
freetype-config
Edit
funzip
Edit
g++
Edit
gawk
Edit
gcc
Edit
gcc-ar
Edit
gcc-nm
Edit
gcc-ranlib
Edit
gcov
Edit
gcov-dump
Edit
gcov-tool
Edit
gem
Edit
gencat
Edit
geoiplookup
Edit
geoiplookup6
Edit
geqn
Edit
getconf
Edit
getent
Edit
getopt
Edit
ghostscript
Edit
git
Edit
git-receive-pack
Edit
git-shell
Edit
git-upload-archive
Edit
git-upload-pack
Edit
gm
Edit
gmake
Edit
gneqn
Edit
gnroff
Edit
gpg
Edit
gpg-agent
Edit
gpg-error
Edit
gpgsplit
Edit
gpgv
Edit
gpic
Edit
gprof
Edit
grep
Edit
groff
Edit
grops
Edit
grotty
Edit
groups
Edit
gs
Edit
gsnd
Edit
gsoelim
Edit
gtar
Edit
gtbl
Edit
gtroff
Edit
gunzip
Edit
gzexe
Edit
gzip
Edit
h2ph
Edit
h2xs
Edit
head
Edit
hexdump
Edit
host
Edit
hostid
Edit
hostname
Edit
hunspell
Edit
iconv
Edit
icu-config
Edit
icu-config-64
Edit
icuinfo
Edit
id
Edit
identify
Edit
idn
Edit
ifnames
Edit
import
Edit
infocmp
Edit
infotocap
Edit
install
Edit
instmodsh
Edit
ionice
Edit
ipcrm
Edit
ipcs
Edit
isosize
Edit
ispell
Edit
join
Edit
kill
Edit
ld
Edit
ld.bfd
Edit
ldd
Edit
less
Edit
lessecho
Edit
lesskey
Edit
lesspipe.sh
Edit
lex
Edit
libnetcfg
Edit
libtool
Edit
libtoolize
Edit
link
Edit
ln
Edit
locale
Edit
localedef
Edit
logger
Edit
login
Edit
logname
Edit
look
Edit
ls
Edit
lto-dump
Edit
m4
Edit
mail
Edit
mailx
Edit
make
Edit
make-dummy-cert
Edit
mariadb
Edit
mariadb-access
Edit
mariadb-admin
Edit
mariadb-binlog
Edit
mariadb-check
Edit
mariadb-conv
Edit
mariadb-convert-table-format
Edit
mariadb-dump
Edit
mariadb-dumpslow
Edit
mariadb-embedded
Edit
mariadb-find-rows
Edit
mariadb-hotcopy
Edit
mariadb-import
Edit
mariadb-plugin
Edit
mariadb-secure-installation
Edit
mariadb-setpermission
Edit
mariadb-show
Edit
mariadb-slap
Edit
mariadb-tzinfo-to-sql
Edit
mariadb-waitpid
Edit
mcookie
Edit
md5sum
Edit
mesg
Edit
mkdir
Edit
mkfifo
Edit
mknod
Edit
mktemp
Edit
mogrify
Edit
montage
Edit
more
Edit
msql2mysql
Edit
mv
Edit
my_print_defaults
Edit
mysql
Edit
mysql_config
Edit
mysql_find_rows
Edit
mysql_waitpid
Edit
mysqlaccess
Edit
mysqladmin
Edit
mysqlbinlog
Edit
mysqlcheck
Edit
mysqldump
Edit
mysqlimport
Edit
mysqlshow
Edit
mytop
Edit
namei
Edit
nano
Edit
neqn
Edit
nice
Edit
nl
Edit
nm
Edit
nohup
Edit
nproc
Edit
nroff
Edit
nslookup
Edit
nsupdate
Edit
numfmt
Edit
objcopy
Edit
objdump
Edit
od
Edit
openssl
Edit
pango-list
Edit
pango-segmentation
Edit
pango-view
Edit
passenger
Edit
passwd
Edit
paste
Edit
patch
Edit
pathchk
Edit
pdf2dsc
Edit
pdf2ps
Edit
perl
Edit
perl5.32.1
Edit
perlbug
Edit
perldoc
Edit
perlivp
Edit
perlml
Edit
perlthanks
Edit
pgrep
Edit
php
Edit
pic
Edit
piconv
Edit
ping
Edit
pinky
Edit
pkg-config
Edit
pkill
Edit
pl2pm
Edit
pmap
Edit
pod2html
Edit
pod2man
Edit
pod2text
Edit
pod2usage
Edit
podchecker
Edit
post-grohtml
Edit
pr
Edit
pre-grohtml
Edit
precat
Edit
preunzip
Edit
prezip
Edit
prezip-bin
Edit
printenv
Edit
printf
Edit
prove
Edit
ps
Edit
ps2ascii
Edit
ps2epsi
Edit
ps2pdf
Edit
ps2pdf12
Edit
ps2pdf13
Edit
ps2pdf14
Edit
ps2pdfwr
Edit
ps2ps
Edit
ps2ps2
Edit
ptx
Edit
pwd
Edit
pwdx
Edit
pydoc
Edit
pydoc3
Edit
pydoc3.9
Edit
ranlib
Edit
readelf
Edit
readlink
Edit
realpath
Edit
recode
Edit
red
Edit
rename
Edit
renew-dummy-cert
Edit
renice
Edit
replace
Edit
reset
Edit
rev
Edit
rm
Edit
rmdir
Edit
rnano
Edit
ruby
Edit
run-with-aspell
Edit
runcon
Edit
rvi
Edit
rview
Edit
scalar
Edit
scl
Edit
scl_enabled
Edit
scl_source
Edit
scp
Edit
screen
Edit
script
Edit
sdiff
Edit
sed
Edit
selectorctl
Edit
seq
Edit
setsid
Edit
setterm
Edit
sftp
Edit
sh
Edit
sha1sum
Edit
sha224sum
Edit
sha256sum
Edit
sha384sum
Edit
sha512sum
Edit
shred
Edit
shuf
Edit
size
Edit
skill
Edit
slabtop
Edit
sleep
Edit
snice
Edit
soelim
Edit
sort
Edit
spell
Edit
splain
Edit
split
Edit
sprof
Edit
sqlite3
Edit
ssh
Edit
ssh-add
Edit
ssh-agent
Edit
ssh-copy-id
Edit
ssh-keygen
Edit
ssh-keyscan
Edit
stat
Edit
stdbuf
Edit
strace
Edit
stream
Edit
strings
Edit
strip
Edit
stty
Edit
sum
Edit
sync
Edit
tabs
Edit
tac
Edit
tail
Edit
tar
Edit
taskset
Edit
tbl
Edit
tclsh
Edit
tclsh8.6
Edit
tee
Edit
test
Edit
tic
Edit
timeout
Edit
tload
Edit
tmpwatch
Edit
toe
Edit
top
Edit
touch
Edit
tput
Edit
tr
Edit
troff
Edit
true
Edit
truncate
Edit
tset
Edit
tsort
Edit
tty
Edit
tzselect
Edit
uapi
Edit
ul
Edit
uname
Edit
unexpand
Edit
uniq
Edit
unlink
Edit
unzip
Edit
unzipsfx
Edit
uptime
Edit
users
Edit
utmpdump
Edit
vdir
Edit
vi
Edit
view
Edit
vmstat
Edit
watch
Edit
wc
Edit
wget
Edit
whereis
Edit
which
Edit
who
Edit
whoami
Edit
word-list-compress
Edit
x86_64-redhat-linux-c++
Edit
x86_64-redhat-linux-g++
Edit
x86_64-redhat-linux-gcc
Edit
x86_64-redhat-linux-gcc-11
Edit
xargs
Edit
xmlcatalog
Edit
xmllint
Edit
xmlwf
Edit
xsltproc
Edit
xsubpp
Edit
yes
Edit
zcat
Edit
zcmp
Edit
zdiff
Edit
zegrep
Edit
zfgrep
Edit
zforce
Edit
zgrep
Edit
zip
Edit
zipcloak
Edit
zipgrep
Edit
zipinfo
Edit
zipnote
Edit
zipsplit
Edit
zless
Edit
zmore
Edit
znew
Edit
zsoelim
Edit