The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Gruntmaster::Daemon::Runner - Modules for running tests

SYNOPSIS

  use Gruntmaster::Daemon::Runner::Foo;
  Gruntmaster::Daemon::Runner::Foo::run(5, $meta);

DESCRIPTION

A runner is a module that runs a program on some input data, returning a verdict. Each runner has a subroutine, run($test, $meta), which runs the program on the given test and returns a verdict.

If the test is successful, the verdict is a string, usually a message (such as "Ok") or a number of points (such as "10"). Otherwise, the verdict is an array reference with two elements: an error code (see Gruntmaster::Daemon::Constants for a list) and an error message.

There are three runners in this distribution:

Gruntmaster::Daemon::Runner::File - Compare output with static text files
Gruntmaster::Daemon::Runner::Verifier - Check the program output with a verifier
Gruntmaster::Daemon::Runner::Interactive - Make an interactive verifier talk to the program

AUTHOR

Marius Gavrilescu <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2014 by Marius Gavrilescu

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.