NAME
Test::BrewBuild::Tester - Daemonized testing service for dispatched test run execution, for Windows & Unix.
DESCRIPTION
Builds and puts into the background a Test::BrewBuild remote tester listening service.
Note that by default, the working directory is ~/brewbuild
on all platforms.
METHODS
new
Returns a new Test::BrewBuild::Tester
object.
Parameters:
debug => $level
Integer, optional. Debug level from least verbose (0) to maximum verbosity (7).
stdout => $bool
Integer, optional. By default, we return the test log/debug output with the results of the test run. Set this to true (1) to disable this, and have the tester print its output directly to STDOUT instead.
logfile => $bool
Integer, optional. Set this to true (1) and we'll write all tester output to a log file. The parent tester server will create a $workdir/bbtester_parent.log
file (where $workdir
is ~/brewbuild
by default), and the children tester runners will all log to $workdir/bbtester_child.log
.
start
Starts the tester, and puts it into the background.
stop
Stops the tester and all of its processes.
status
Returns 1 if there's a tester currently running, and 0 if not.
ip($ip)
Default listening IP address is 0.0.0.0
ie. all currently bound IPs. Send in an alternate IP address to listen on a specific one.
This will override any IP information in the configuration file, if present.
Returns the currently used IP.
port($port)
Default port is 7800
. Send in an alternate to listen on it instead.
This will override any port information in the configuration file, if present.
Returns the port currently being used.
listen
This is the actual service that listens for and processes requests.
By default, listens on all IP addresses bound to all network interfaces, on port 7800
.
AUTHOR
Steve Bertrand, <steveb at cpan.org>
LICENSE AND COPYRIGHT
Copyright 2017 Steve Bertrand.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.