feat(runner): add the own code runner contract, client and nsjail service
This commit is contained in:
1 parent
5e1db37746
commit
cdf6bcbb91
109 files changed
+24084
-28
No files matched your search
+91
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"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": ""}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user