X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FRunner.pod;fp=lib%2FGruntmaster%2FDaemon%2FRunner.pod;h=44db6197e5481226a781de628dade577a1f3ae26;hp=0000000000000000000000000000000000000000;hb=0005d3ad0aba39600e7dbb70c040c416f34985ac;hpb=c020b922b2b04878b04b8d7e84079087f1dc2abc diff --git a/lib/Gruntmaster/Daemon/Runner.pod b/lib/Gruntmaster/Daemon/Runner.pod new file mode 100644 index 0000000..44db619 --- /dev/null +++ b/lib/Gruntmaster/Daemon/Runner.pod @@ -0,0 +1,44 @@ +=encoding utf-8 + +=head1 NAME + +Gruntmaster::Daemon::Runner - Modules for running tests + +=head1 SYNOPSIS + + use Gruntmaster::Daemon::Runner::Foo; + Gruntmaster::Daemon::Runner::Foo::run(5, $meta); + +=head1 DESCRIPTION + +A runner is a module that runs a program on some input data, returning a verdict. Each runner has a subroutine, B(I<$test>, I<$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 C<"Ok">) or a number of points (such as C<"10">). Otherwise, the verdict is an array reference with two elements: an error code (see L for a list) and an error message. + +There are three runners in this distribution: + +=over + +=item L - Compare output with static text files + +=item L - Check the program output with a verifier + +=item L - Make an interactive verifier talk to the program + +=back + +=head1 AUTHOR + +Marius Gavrilescu Emarius@ieval.roE + +=head1 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. + + +=cut