Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.7 KB

usage.md

File metadata and controls

40 lines (28 loc) · 1.7 KB

Usage

!!! danger "About running as a non-root user" For now, please make sure that you are running the judger as sudo. This incident will be fixed in the future.

ubilo-judger [--help] [--version] [--checker VAR] [--langs VAR] [--sandbox-settings VAR] path-of-submission lang time-limit-in-seconds memory-limit-in-kb [files]...

Arguments

Positional arguments

  • path-of-submission: Path of the submission file [required]
  • lang: Language of the submission [required]
  • time-limit-in-seconds: Time limit in seconds [required]
  • memory-limit-in-kb: Memory limit in KB [required]
  • files: Input and expected output files in <input1> <expected-output1> <input2> <expected-output2> ... format [nargs: 0 or more]

Optional arguments

  • -h, --help: shows help message and exits
  • -v, --version: prints version information and exits
  • -c, --checker: Path of the checker file [nargs=0..1] [default: ""]
  • -l, --langs: Path of the language settings file (default: ~/.config/ubilo-judger/langs.toml) [nargs=0..1] [default: "/root/.config/ubilo-judger/langs.toml"]
  • --sandbox-settings: Path of the sandbox settings file (default: ~/.config/ubilo-judger/sandbox.toml) [nargs=0..1] [default: "/root/.config/ubilo-judger/sandbox.toml"]

Example usages

Without checker

ubilo-judger /path/to/submission.py PYTHON3 1 128000 /path/to/input/input1.txt /path/to/output/output1.txt /path/to/input/input2.txt /path/to/output/output2.txt

With checker

ubilo-judger /path/to/submission.py PYTHON3 1 128000 /path/to/input/input1.txt /path/to/output/output1.txt /path/to/input/input2.txt /path/to/output/output2.txt -c /path/to/checker.py