Files
lincodex/runner/testdata/hostile/manifest.json
T

92 lines
2.6 KiB
JSON

{
"schema": "lincodex.runner-hostile-fixtures/v1",
"description": "Programs that a sandbox run must stop or contain. Each case runs as one public group with one test; expect.limit is the termination limit, or empty when the program ends by itself.",
"default_limits": {
"time_limit_ms": 1000,
"memory_limit_mb": 64,
"output_limit_kb": 64
},
"cases": [
{
"name": "correct_sum",
"language": "python3",
"source": "python/sum_correct.py",
"input": "1 2 3\n",
"expected_output": "6\n",
"expect": {"outcome": "accepted", "limit": ""}
},
{
"name": "syntax_error",
"language": "python3",
"source": "python/syntax_error.py",
"input": "",
"expected_output": "",
"expect": {"outcome": "compile_error", "limit": ""}
},
{
"name": "infinite_loop",
"language": "python3",
"source": "python/infinite_loop.py",
"input": "",
"expected_output": "",
"expect": {"outcome": "time_limit_exceeded", "limit": "cpu_time"}
},
{
"name": "sleep_forever",
"language": "python3",
"source": "python/sleep_forever.py",
"input": "",
"expected_output": "",
"expect": {"outcome": "time_limit_exceeded", "limit": "wall_time"}
},
{
"name": "memory_leak",
"language": "python3",
"source": "python/memory_leak.py",
"input": "",
"expected_output": "",
"expect": {"outcome": "memory_limit_exceeded", "limit": "memory"}
},
{
"name": "huge_output",
"language": "python3",
"source": "python/huge_output.py",
"input": "",
"expected_output": "",
"expect": {"outcome": "output_limit_exceeded", "limit": "output"}
},
{
"name": "fork_bomb",
"language": "python3",
"source": "python/fork_bomb.py",
"input": "",
"expected_output": "",
"expect": {"outcome": "runtime_error", "limit": "processes"}
},
{
"name": "network_probe",
"language": "python3",
"source": "python/network_probe.py",
"input": "",
"expected_output": "blocked\n",
"expect": {"outcome": "accepted", "limit": ""}
},
{
"name": "filesystem_probe",
"language": "python3",
"source": "python/filesystem_probe.py",
"input": "",
"expected_output": "isolated\n",
"expect": {"outcome": "accepted", "limit": ""}
},
{
"name": "privilege_probe",
"language": "python3",
"source": "python/privilege_probe.py",
"input": "",
"expected_output": "unprivileged\n",
"expect": {"outcome": "accepted", "limit": ""}
}
]
}