⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prove.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings.  \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote.  \*(C+ will.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\.    ds -- \(*W-.    ds PI pi.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch.    ds L" "".    ds R" "".    ds C` "".    ds C' ""'br\}.el\{\.    ds -- \|\(em\|.    ds PI \(*p.    ds L" ``.    ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el       .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.el \{\.    de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear.  Run.  Save yourself.  No user-serviceable parts..    \" fudge factors for nroff and troff.if n \{\.    ds #H 0.    ds #V .8m.    ds #F .3m.    ds #[ \f1.    ds #] \fP.\}.if t \{\.    ds #H ((1u-(\\\\n(.fu%2u))*.13m).    ds #V .6m.    ds #F 0.    ds #[ \&.    ds #] \&.\}.    \" simple accents for nroff and troff.if n \{\.    ds ' \&.    ds ` \&.    ds ^ \&.    ds , \&.    ds ~ ~.    ds /.\}.if t \{\.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u".    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}.    \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E.    \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'.    \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\.    ds : e.    ds 8 ss.    ds o a.    ds d- d\h'-1'\(ga.    ds D- D\h'-1'\(hy.    ds th \o'bp'.    ds Th \o'LP'.    ds ae ae.    ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "PROVE 1".TH PROVE 1 "2008-01-23" "perl v5.10.0" "User Contributed Perl Documentation".\" For nroff, turn off justification.  Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"prove \- Run tests through a TAP harness..SH "USAGE".IX Header "USAGE".Vb 1\& prove [options] [files or directories].Ve.SH "OPTIONS".IX Header "OPTIONS"Boolean options:.PP.Vb 10\& \-v,  \-\-verbose     Print all test lines.\& \-l,  \-\-lib         Add \*(Aqlib\*(Aq to the path for your tests (\-Ilib).\& \-b,  \-\-blib        Add \*(Aqblib/lib\*(Aq to the path for your tests (\-Iblib/lib).\& \-s,  \-\-shuffle     Run the tests in random order.\& \-c,  \-\-color       Colored test output (default).\&      \-\-nocolor     Do not color test output.\& \-f,  \-\-failures    Only show failed tests.\&      \-\-fork        Fork to run harness in multiple processes\& \-m,  \-\-merge       Merge test scripts\*(Aq 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.\& \-T                 Enable tainting checks.\& \-t                 Enable tainting warnings.\& \-W                 Enable fatal warnings.\& \-w                 Enable warnings.\& \-h,  \-\-help        Display this help\& \-?,                Display this help\& \-H,  \-\-man         Longer manpage for prove\&      \-\-norc        Don\*(Aqt process default .proverc.Ve.PPOptions that take arguments:.PP.Vb 10\& \-I                 Library paths to include.\& \-P                 Load plugin (searches App::Prove::Plugin::*.)\& \-M                 Load a module.\& \-e,  \-\-exec        Interpreter to run the tests (\*(Aq\*(Aq for compiled tests.)\&      \-\-harness     Define test harness to use.  See TAP::Harness.\&      \-\-formatter   Result formatter to use. See TAP::Harness.\& \-a,  \-\-archive     Store the resulting TAP in an archive file.\& \-j,  \-\-jobs N      Run N test jobs in parallel (try 9.)\&      \-\-state=opts  Control prove\*(Aqs persistent state.\&      \-\-rc=rcfile   Process options from rcfile.Ve.SH "NOTES".IX Header "NOTES".Sh ".proverc".IX Subsection ".proverc"If \fI~/.proverc\fR or \fI./.proverc\fR exist they will be read and anyoptions they contain processed before the command line options. Optionsin \fI.proverc\fR are specified in the same way as command line options:.PP.Vb 3\&    # .proverc\&    \-\-state=hot,fast,save\&    \-j9 \-\-fork.Ve.PPAdditional option files may be specified with the \f(CW\*(C`\-\-rc\*(C'\fR option.Default option file processing is disabled by the \f(CW\*(C`\-\-norc\*(C'\fR option..PPUnder Windows and \s-1VMS\s0 the option file is named \fI_proverc\fR rather than\&\fI.proverc\fR and is sought only in the current directory..ie n .Sh "Reading from ""STDIN""".el .Sh "Reading from \f(CWSTDIN\fP".IX Subsection "Reading from STDIN"If you have a list of tests (or URLs, or anything else you want to test) in afile, you can add them to your tests by using a '\-':.PP.Vb 1\& prove \- < my_list_of_things_to_test.txt.Ve.PPSee the \f(CW\*(C`README\*(C'\fR in the \f(CW\*(C`examples\*(C'\fR directory of this distribution..Sh "Default Test Directory".IX Subsection "Default Test Directory"If no files or directories are supplied, \f(CW\*(C`prove\*(C'\fR looks for all filesmatching the pattern \f(CW\*(C`t/*.t\*(C'\fR..Sh "Colored Test Output".IX Subsection "Colored Test Output"Colored test output is the default, but if output is not to aterminal, color is disabled. You can override this by adding the \&\f(CW\*(C`\-\-color\*(C'\fR switch..PPColor support requires Term::ANSIColor on Unix-like platforms andWin32::Console windows. If the necessary module is not installedcolored output will not be available..Sh "Arguments to Tests".IX Subsection "Arguments to Tests"It is possible to supply arguments to tests. To do so separate them fromprove's own arguments with the arisdottle, '::'. For example.PP.Vb 1\& prove \-v t/mytest.t :: \-\-url http://example.com.Ve.PPwould run \fIt/mytest.t\fR with the options '\-\-url http://example.com'.When running multiple tests they will each receive the same arguments..ie n .Sh """\-\-exec""".el .Sh "\f(CW\-\-exec\fP".IX Subsection "--exec"Normally you can just pass a list of Perl tests and the harness will know howto execute them.  However, if your tests are not written in Perl or if youwant all tests invoked exactly the same way, use the \f(CW\*(C`\-e\*(C'\fR, or \f(CW\*(C`\-\-exec\*(C'\fRswitch:.PP.Vb 3\& prove \-\-exec \*(Aq/usr/bin/ruby \-w\*(Aq t/\& prove \-\-exec \*(Aq/usr/bin/perl \-Tw \-mstrict \-Ilib\*(Aq t/\& prove \-\-exec \*(Aq/path/to/my/customer/exec\*(Aq.Ve.ie n .Sh """\-\-merge""".el .Sh "\f(CW\-\-merge\fP".IX Subsection "--merge"If you need to make sure your diagnostics are displayed in the correctorder relative to test results you can use the \f(CW\*(C`\-\-merge\*(C'\fR option tomerge the test scripts' \s-1STDERR\s0 into their \s-1STDOUT\s0..PPThis guarantees that \s-1STDOUT\s0 (where the test results appear) and \s-1STDOUT\s0(where the diagnostics appear) will stay in sync. The harness willdisplay any diagnostics your tests emit on \s-1STDERR\s0..PPCaveat: this is a bit of a kludge. In particular note that if anythingthat appears on \s-1STDERR\s0 looks like a test result the test harness willget confused. Use this option only if you understand the consequencesand can live with the risk..ie n .Sh """\-\-state""".el .Sh "\f(CW\-\-state\fP".IX Subsection "--state"You can ask \f(CW\*(C`prove\*(C'\fR to remember the state of previous test runs andselect and/or order the tests to be run this time based on thatsaved state..PPThe \f(CW\*(C`\-\-state\*(C'\fR switch requires an argument which must be a commaseparated list of one or more of the following options..ie n .IP """last""" 4.el .IP "\f(CWlast\fR" 4.IX Item "last"Run the same tests as the last time the state was saved. This makes itpossible, for example, to recreate the ordering of a shuffled test..Sp.Vb 2\&    # Run all tests in random order\&    $ prove \-b \-\-state=save \-\-shuffle\&\&    # Run them again in the same order\&    $ prove \-b \-\-state=last.Ve.ie n .IP """failed""" 4.el .IP "\f(CWfailed\fR" 4.IX Item "failed"Run only the tests that failed on the last run..Sp.Vb 2\&    # Run all tests\&    $ prove \-b \-\-state=save\&    \&    # Run failures\&    $ prove \-b \-\-state=failed.Ve.SpIf you also specify the \f(CW\*(C`save\*(C'\fR option newly passing tests will beexcluded from subsequent runs..Sp.Vb 2\&    # Repeat until no more failures\&    $ prove \-b \-\-state=failed,save.Ve.ie n .IP """passed""" 4.el .IP "\f(CWpassed\fR" 4.IX Item "passed"Run only the passed tests from last time. Useful to make sure that nonew problems have been introduced..ie n .IP """all""" 4.el .IP "\f(CWall\fR" 4.IX Item "all"Run all tests in normal order. Multple options may be specified, so torun all tests with the failures from last time first:.Sp.Vb 1\&    $ prove \-b \-\-state=failed,all,save.Ve.ie n .IP """hot""" 4.el .IP "\f(CWhot\fR" 4.IX Item "hot"Run the tests that most recently failed first. The last failure time ofeach test is stored. The \f(CW\*(C`hot\*(C'\fR option causes tests to be run in most\-recent\-failure order..Sp.Vb 1\&    $ prove \-b \-\-state=hot,save.Ve.SpTests that have never failed will not be selected. To run all tests withthe most recently failed first use.Sp.Vb 1\&    $ prove \-b \-\-state=hot,all,save.Ve.SpThis combination of options may also be specified thus.Sp.Vb 1\&    $ prove \-b \-\-state=adrian.Ve.ie n .IP """todo""" 4.el .IP "\f(CWtodo\fR" 4.IX Item "todo"Run any tests with todos..ie n .IP """slow""" 4.el .IP "\f(CWslow\fR" 4.IX Item "slow"Run the tests in slowest to fastest order. This is useful in conjunctionwith the \f(CW\*(C`\-j\*(C'\fR parallel testing switch to ensure that your slowest testsstart running first..Sp.Vb 1\&    $ prove \-b \-\-state=slow \-j9.Ve.ie n .IP """fast""" 4.el .IP "\f(CWfast\fR" 4.IX Item "fast"Run test tests in fastest to slowest order..ie n .IP """new""" 4.el .IP "\f(CWnew\fR" 4.IX Item "new"Run the tests in newest to oldest order..ie n .IP """old""" 4.el .IP "\f(CWold\fR" 4.IX Item "old"Run the tests in oldest to newest order..ie n .IP """save""" 4.el .IP "\f(CWsave\fR" 4.IX Item "save"Save the state on exit. The state is stored in a file called \fI.prove\fR(\fI_prove\fR on Windows and \s-1VMS\s0) in the current directory..PPThe \f(CW\*(C`\-\-state\*(C'\fR switch may be used more than once..PP.Vb 1\&    $ prove \-b \-\-state=hot \-\-state=all,save.Ve

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -