master
Martin Polanka 8 years ago
parent 24db440c01
commit 899a8d0c4b

@ -36,7 +36,11 @@ Basic information about tasks is on [Assignments overview](https://github.com/Re
## Judges ## Judges
Judges are treated as normal external command, so there is no special task for them. All judges are adopted from old Codex with only very small modifications. Judges base directory is in `${JUDGES_DIR}` variable, which can be used in job config file. Judges are treated as normal external command, so there is no special task for them. They should be used for comparision of outputted files from execution tasks and sample outputs. Results of this comparision should be at least information if files are same or not. Extension for this is percentual results based on similarity of given files.
All packed judges are adopted from old Codex with only very small modifications. ReCodEx judges base directory is in `${JUDGES_DIR}` variable, which can be used in job config file.
### Judges interface
For future extensibility is **critical** that judges have some shared **interface** of calling and return values. For future extensibility is **critical** that judges have some shared **interface** of calling and return values.
- Parameters: There are two mandatory positional parameters which has to be files for comparision - Parameters: There are two mandatory positional parameters which has to be files for comparision
@ -48,6 +52,10 @@ For future extensibility is **critical** that judges have some shared **interfac
- exitcode: 1 - exitcode: 1
- stderr: there should be description of error - stderr: there should be description of error
### ReCodEx judges
Below is list of judges which is packed with ReCodEx project and comply above requirements.
**recodex-judge-normal** is base judge used by most of exercises. This judge compares two text files. It compares only text tokens regardless amount of whitespace between them. **recodex-judge-normal** is base judge used by most of exercises. This judge compares two text files. It compares only text tokens regardless amount of whitespace between them.
``` ```
Usage: recodex-judge-normal [-r | -n | -rn] <file1> <file2> Usage: recodex-judge-normal [-r | -n | -rn] <file1> <file2>

Loading…
Cancel
Save