Sponsored Content
The Lounge What is on Your Mind? Congrats to RudiC - 3000 Thanks! Post 302988457 by wisecracker on Monday 26th of December 2016 04:13:57 PM
Old 12-26-2016
Well done RudiC...

You have given much to the site and the thanks from others prove as such.

Congrats...
This User Gave Thanks to wisecracker For This Post:
 

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Congrats

I guess this is the most appropriate section for this post... Just wanted to give a big congrats to LivinFree for passing the 1000 post mark. Nice job! (2 Replies)
Discussion started by: PxT
2 Replies

2. Solaris

ultra enterprise 3000

I have been trying to install a few different distributions on this server, i have 1 sparc 250 mhz, 512 ram, it has a scsi with the built in ethernet, ive tried debian, bsd, with no luck, i can gentoo live cd to run and work with the ethernet, but i would like a normal distro, anywaysi have solaris... (4 Replies)
Discussion started by: hahjoel
4 Replies

3. Hardware

Sun Enterprise 3000

I got a coffee table(enterprise 3000) for free from a friend a couple of months ago, and I'm trying to convince it to boot. List of cards 1x Clock Board 1x I/O board 2x CPU Boards 1x SCSI board? It has 2 SCSI headers on it anyway In addition, its HDD rack is almost full of 18GB drives.... (3 Replies)
Discussion started by: dpeterson309
3 Replies

4. What is on Your Mind?

RudiC reaches over 4000 thanks in 6 years.

Congratulations. Nice one RudiC. That is some going, well done! Bazza. (8 Replies)
Discussion started by: wisecracker
8 Replies

5. What is on Your Mind?

Congratulations RudiC for completing 4000+ THANKS in forums.

Hello All forum members, I would like to take this opportunity to THANK RudiC for his tremendous achievement, guidance, help for helping in forums, let us join our hands together for his GREAT achievement :b: @Rudi sir, How are you sir? you ROCK, please keep up the great work sir :b: ... (1 Reply)
Discussion started by: RavinderSingh13
1 Replies

6. What is on Your Mind?

The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to RudiC

Please join me in congratulating RudiC for his long overdue lifetime achievement award badge from UNIX.COM in computer wizardry: "The Order of the Wizard's Hat - Lifetime Achievement Award" This "Order of the Wizard's Hat" is presented to RudiC for Computer Wizardry in the UNIX Operating... (10 Replies)
Discussion started by: Neo
10 Replies

7. What is on Your Mind?

Congratulations RudiC for completing 4500 THANKS in forums.

Hello All, I would like to take this opportunity to CONGRATULATE RudiC sir, (on behalf of all of us); please join your hands with me for congratulating RudiC sir for completing 4500 THANKS in forums. He is a GREAT ASSET in this forums and from years and years he is giving NICE, QUICK, Innovative... (8 Replies)
Discussion started by: RavinderSingh13
8 Replies
App::Prove(3pm) 					User Contributed Perl Documentation					   App::Prove(3pm)

NAME
App::Prove - Implements the "prove" command. VERSION
Version 3.25 DESCRIPTION
Test::Harness provides a command, "prove", which runs a TAP based test suite and prints a report. The "prove" command is a minimal wrapper around an instance of this module. SYNOPSIS
use App::Prove; my $app = App::Prove->new; $app->process_args(@ARGV); $app->run; METHODS
Class Methods "new" Create a new "App::Prove". Optionally a hash ref of attribute initializers may be passed. "state_class" Getter/setter for the name of the class used for maintaining state. This class should either subclass from "App::Prove::State" or provide an identical interface. "state_manager" Getter/setter for the instance of the "state_class". "add_rc_file" $prove->add_rc_file('myproj/.proverc'); Called before "process_args" to prepend the contents of an rc file to the options. "process_args" $prove->process_args(@args); Processes the command-line arguments. Attributes will be set appropriately. Any filenames may be found in the "argv" attribute. Dies on invalid arguments. "run" Perform whatever actions the command line args specified. The "prove" command line tool consists of the following code: use App::Prove; my $app = App::Prove->new; $app->process_args(@ARGV); exit( $app->run ? 0 : 1 ); # if you need the exit code "require_harness" Load a harness replacement class. $prove->require_harness($for => $class_name); "print_version" Display the version numbers of the loaded TAP::Harness and the current Perl. Attributes After command line parsing the following attributes reflect the values of the corresponding command line switches. They may be altered before calling "run". "archive" "argv" "backwards" "blib" "color" "directives" "dry" "exec" "extensions" "failures" "comments" "formatter" "harness" "ignore_exit" "includes" "jobs" "lib" "merge" "modules" "parse" "plugins" "quiet" "really_quiet" "recurse" "rules" "show_count" "show_help" "show_man" "show_version" "shuffle" "state" "state_class" "taint_fail" "taint_warn" "test_args" "timer" "verbose" "warnings_fail" "warnings_warn" "tapversion" "trap" PLUGINS
"App::Prove" provides support for 3rd-party plugins. These are currently loaded at run-time, after arguments have been parsed (so you can not change the way arguments are processed, sorry), typically with the "-Pplugin" switch, eg: prove -PMyPlugin This will search for a module named "App::Prove::Plugin::MyPlugin", or failing that, "MyPlugin". If the plugin can't be found, "prove" will complain & exit. You can pass an argument to your plugin by appending an "=" after the plugin name, eg "-PMyPlugin=foo". You can pass multiple arguments using commas: prove -PMyPlugin=foo,bar,baz These are passed in to your plugin's "load()" class method (if it has one), along with a reference to the "App::Prove" object that is invoking your plugin: sub load { my ($class, $p) = @_; my @args = @{ $p->{args} }; # @args will contain ( 'foo', 'bar', 'baz' ) $p->{app_prove}->do_something; ... } Note that the user's arguments are also passed to your plugin's "import()" function as a list, eg: sub import { my ($class, @args) = @_; # @args will contain ( 'foo', 'bar', 'baz' ) ... } This is for backwards compatibility, and may be deprecated in the future. Sample Plugin Here's a sample plugin, for your reference: package App::Prove::Plugin::Foo; # Sample plugin, try running with: # prove -PFoo=bar -r -j3 # prove -PFoo -Q # prove -PFoo=bar,My::Formatter use strict; use warnings; sub load { my ($class, $p) = @_; my @args = @{ $p->{args} }; my $app = $p->{app_prove}; print "loading plugin: $class, args: ", join(', ', @args ), " "; # turn on verbosity $app->verbose( 1 ); # set the formatter? $app->formatter( $args[1] ) if @args > 1; # print some of App::Prove's state: for my $attr (qw( jobs quiet really_quiet recurse verbose )) { my $val = $app->$attr; $val = 'undef' unless defined( $val ); print "$attr: $val "; } return 1; } 1; SEE ALSO
prove, TAP::Harness perl v5.14.2 2012-06-05 App::Prove(3pm)
All times are GMT -4. The time now is 11:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy