A DSL for generating test data groups for Kattis programming problems
  • Python 43.7%
  • Shell 32.7%
  • C++ 23.6%
Find a file
Arnar Bjarni Arnarson ca39b16b23
Update gen.sh
Co-authored-by: Simon Lindholm <simon.lindholm10@gmail.com>
2024-10-25 15:25:04 +00:00
examples Update examples/ninetynine/data/generator.sh 2024-10-25 15:24:25 +00:00
input_validators/validator Add IO::Word to input validator lib 2023-04-22 22:54:01 +02:00
.gitignore gitignore 2019-09-24 17:16:44 +02:00
analyzetestgroups.py Add --no-status flag to analyzetestgroups (#15) 2023-03-29 22:47:01 +02:00
gen.sh Update gen.sh 2024-10-25 15:25:04 +00:00
gen_random.py Example generator 2019-09-24 16:14:45 +02:00
generator_example.sh Missed some examples to ignore sourcing error 2024-10-16 21:23:38 +00:00
generator_example_acm.sh Fix comment to ignore sourcing 2024-10-16 21:28:14 +00:00
README.md Add analyzetestgroups script (#13) 2020-08-15 17:15:50 +02:00

Testdata Tools

gen.sh contains bash helper functions for working with problems for the Kattis format, particularly ones that use multiple test groups.

See generator_example.sh or generator_example_acm.sh for example usage, and examples/ for complete example problems.

There used to be CMS support. If you need that, look at the repo history.

gen.sh (or the whole repo, whatever is most convenient) is intended to be copied into your contest's repo and committed. gen.sh may be changed freely if needed.

analyzetestgroups.py performs some checks based on the log generated by Kattis/problemtools/verifyproblem, allowing submissions to hint at expected grades using a comment line like @EXPECTED_GRADES@ AC WA TLE TLE to indicate that the grader should produce, e.g., grade WA on secret test group 2. Run

   python3 analyzetestgroups.py examples/arithmetic

for an example.

License: CC0