From 76268b7a8c8b5884b90d6ffd760d4d80ef656a9c Mon Sep 17 00:00:00 2001 From: Martin Polanka Date: Mon, 20 Mar 2017 13:05:40 +0100 Subject: [PATCH] change judges interface --- Implementation.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Implementation.md b/Implementation.md index 989a1f3..ec5438f 100644 --- a/Implementation.md +++ b/Implementation.md @@ -286,7 +286,7 @@ ReCodEx provides a few initial judges programs. They are mostly adopted from CodEx and installed automatically with the worker component. Judging programs have to meet some requirements. Basic ones are inspired by standard `diff` application -- two mandatory positional parameters which have to be the files -for comparison and exit code reflecting if the result is correct (0) of wrong +for comparison and exit code reflecting if the result is correct (0) or wrong (1). This interface lacks support for returning additional data by the judges, for @@ -300,11 +300,10 @@ implemented: - _comparison OK_ - exitcode: 0 - stdout: there is a single line with a double value which - should be 1.0 + should be quality percentage of the judged file - _comparison BAD_ - exitcode: 1 - - stdout: there is a single line with a double value which - should be quality percentage of the judged file + - stdout: can be empty - _error during execution_ - exitcode: 2 - stderr: there should be description of error