diff --git a/joj3_config_generator/main.py b/joj3_config_generator/main.py index e705e9c..76b95d9 100644 --- a/joj3_config_generator/main.py +++ b/joj3_config_generator/main.py @@ -66,5 +66,5 @@ def convert( # distribution on json # need a get folder path function - distribute_json(root.absolute(), repo_obj, root) + # distribute_json(root.absolute(), repo_obj, root) return result_dict diff --git a/tests/convert/basic/task.json b/tests/convert/basic/task.json index 4f06d2f..5f705a5 100644 --- a/tests/convert/basic/task.json +++ b/tests/convert/basic/task.json @@ -2,6 +2,7 @@ "name": "hw7 ex2", "logPath": "/home/nuvole0217/.cache/joj3/homework/h7/e2.log", "expireUnixTimestamp": 1735574399, + "effectiveUnixTimestamp": -1, "actorCsvPath": "/home/nuvole0217/.config/joj/students.csv", "maxTotalScore": 100, "stage": { @@ -746,142 +747,6 @@ "stdout", "stderr" ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case2.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case3.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case4.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case5.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case6.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case7.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case8.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case9.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] } ] } @@ -915,1208 +780,6 @@ "compareSpace": false } ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case2.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case3.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 10, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case4.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 10, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case5.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case6.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case7.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case8.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case9.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - } - ] - } - }, - { - "name": "result-detail", - "with": { - "score": 0, - "comment": "", - "showFiles": [ - "stderr" - ], - "showExitStatus": true, - "showRuntime": true, - "showMemory": true - } - } - ] - }, - { - "name": "[joj] ex2-msan", - "group": "joj", - "executor": { - "name": "sandbox", - "with": { - "default": { - "args": [ - "./h7/build/ex2-msan", - "-a" - ], - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdout": { - "name": "stdout", - "max": 800000000000000 - }, - "stderr": { - "name": "stderr", - "max": 800000000000000 - }, - "cpuLimit": 1000000000000000, - "realCpuLimit": 0, - "clockLimit": 2000000000000000, - "memoryLimit": 95656304705536, - "stackLimit": 0, - "procLimit": 50, - "cpuRateLimit": 0, - "cpuSetLimit": "", - "copyIn": {}, - "copyInCached": { - "h7/build/ex2": "h7/build/ex2", - "h7/build/ex2-asan": "h7/build/ex2-asan", - "h7/build/ex2-ubsan": "h7/build/ex2-ubsan", - "h7/build/ex2-msan": "h7/build/ex2-msan", - "h7/build/compile_commands.json": "h7/build/compile_commands.json" - }, - "copyInDir": ".", - "copyOut": [ - "stdout", - "stderr" - ], - "copyOutCached": [], - "copyOutMax": 0, - "copyOutDir": "", - "tty": false, - "strictMemoryLimit": false, - "dataSegmentLimit": false, - "addressSpaceLimit": false - }, - "cases": [ - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case0.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case1.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case2.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case3.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case4.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case5.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case6.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case7.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case8.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case9.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - } - ] - } - }, - "parsers": [ - { - "name": "diff", - "with": { - "name": "diff", - "cases": [ - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case0.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case1.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case2.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case3.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 10, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case4.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 10, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case5.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case6.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case7.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case8.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case9.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - } - ] - } - }, - { - "name": "result-detail", - "with": { - "score": 0, - "comment": "", - "showFiles": [ - "stderr" - ], - "showExitStatus": true, - "showRuntime": true, - "showMemory": true - } - } - ] - }, - { - "name": "[joj] ex2-ubsan", - "group": "joj", - "executor": { - "name": "sandbox", - "with": { - "default": { - "args": [ - "./h7/build/ex2-ubsan", - "-a" - ], - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdout": { - "name": "stdout", - "max": 800000000000000 - }, - "stderr": { - "name": "stderr", - "max": 800000000000000 - }, - "cpuLimit": 1000000000000000, - "realCpuLimit": 0, - "clockLimit": 2000000000000000, - "memoryLimit": 838860800, - "stackLimit": 0, - "procLimit": 50, - "cpuRateLimit": 0, - "cpuSetLimit": "", - "copyIn": {}, - "copyInCached": { - "h7/build/ex2": "h7/build/ex2", - "h7/build/ex2-asan": "h7/build/ex2-asan", - "h7/build/ex2-ubsan": "h7/build/ex2-ubsan", - "h7/build/ex2-msan": "h7/build/ex2-msan", - "h7/build/compile_commands.json": "h7/build/compile_commands.json" - }, - "copyInDir": ".", - "copyOut": [ - "stdout", - "stderr" - ], - "copyOutCached": [], - "copyOutMax": 0, - "copyOutDir": "", - "tty": false, - "strictMemoryLimit": false, - "dataSegmentLimit": false, - "addressSpaceLimit": false - }, - "cases": [ - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case0.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case1.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case2.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case3.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case4.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case5.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case6.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case7.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case8.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case9.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - } - ] - } - }, - "parsers": [ - { - "name": "diff", - "with": { - "name": "diff", - "cases": [ - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case0.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case1.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case2.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case3.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 10, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case4.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 10, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case5.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case6.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case7.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case8.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case9.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - } - ] - } - }, - { - "name": "result-detail", - "with": { - "score": 0, - "comment": "", - "showFiles": [ - "stderr" - ], - "showExitStatus": true, - "showRuntime": true, - "showMemory": true - } - } - ] - }, - { - "name": "[joj] ex2", - "group": "joj", - "executor": { - "name": "sandbox", - "with": { - "default": { - "args": [ - "./h7/build/ex2" - ], - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdout": { - "name": "stdout", - "max": 800000000000000 - }, - "stderr": { - "name": "stderr", - "max": 800000000000000 - }, - "cpuLimit": 1000000000000000, - "realCpuLimit": 0, - "clockLimit": 2000000000000000, - "memoryLimit": 838860800, - "stackLimit": 0, - "procLimit": 50, - "cpuRateLimit": 0, - "cpuSetLimit": "", - "copyIn": {}, - "copyInCached": { - "h7/build/ex2": "h7/build/ex2", - "h7/build/ex2-asan": "h7/build/ex2-asan", - "h7/build/ex2-ubsan": "h7/build/ex2-ubsan", - "h7/build/ex2-msan": "h7/build/ex2-msan", - "h7/build/compile_commands.json": "h7/build/compile_commands.json" - }, - "copyInDir": ".", - "copyOut": [ - "stdout", - "stderr" - ], - "copyOutCached": [], - "copyOutMax": 0, - "copyOutDir": "", - "tty": false, - "strictMemoryLimit": false, - "dataSegmentLimit": false, - "addressSpaceLimit": false - }, - "cases": [ - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case0.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case1.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case2.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case3.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case4.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case5.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case6.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case7.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case8.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - }, - { - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "src": "/home/nuvole0217/./homework/h7/e2/case9.in", - "max": 419430400 - }, - "cpuLimit": 1000000000, - "clockLimit": 2000000000, - "memoryLimit": 95656304705536, - "procLimit": 50, - "copyOut": [ - "stdout", - "stderr" - ] - } - ] - } - }, - "parsers": [ - { - "name": "diff", - "with": { - "name": "diff", - "cases": [ - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case0.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case1.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case2.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 5, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case3.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 10, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case4.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 10, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case5.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case6.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case7.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case8.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] - }, - { - "outputs": [ - { - "score": 15, - "fileName": "stdout", - "answerPath": "/home/nuvole0217/./homework/h7/e2/case9.out", - "forceQuitOnDiff": false, - "alwaysHide": false, - "compareSpace": false - } - ] } ] } diff --git a/tests/convert/basic/task.toml b/tests/convert/basic/task.toml index d8fd1ff..2dc7f07 100644 --- a/tests/convert/basic/task.toml +++ b/tests/convert/basic/task.toml @@ -100,342 +100,3 @@ case1.diff.output.ignorespaces = true #case1.limit.stdout = 8 #case1.command = "./h7/build/ex2" case1.in = "case1.in" - -case2.diff.output.score = 5 -case2.limit.cpu = 1 -case2.limit.mem = 91224961 -case2.diff.output.ignorespaces = true -#case2.limit.stdout = 8 -#case2.command = "./h7/build/ex2" -case2.in = "case2.in" - -case3.diff.output.score = 5 -case3.limit.cpu = 1 -case3.limit.mem = 91224961 -case3.diff.output.ignorespaces = true -#case3.limit.stdout = 8 -#case3.command = "./h7/build/ex2" -case3.in = "case3.in" - -case4.diff.output.score = 10 -case4.limit.cpu = 1 -case4.limit.mem = 91224961 -case4.diff.output.ignorespaces = true -#case4.limit.stdout = 8 -#case4.command = "./h7/build/ex2" -case4.in = "case4.in" - -case5.diff.output.score = 10 -case5.limit.cpu = 1 -case5.limit.mem = 91224961 -case5.diff.output.ignorespaces = true -#case5.limit.stdout = 8 -#case5.command = "./h7/build/ex2" -case5.in = "case5.in" - -case6.diff.output.score = 15 -case6.limit.cpu = 1 -case6.limit.mem = 91224961 -case6.diff.output.ignorespaces = true -#case6.limit.stdout = 8 -#case6.command = "./h7/build/ex2" -case6.in = "case6.in" - -case7.diff.output.score = 15 -case7.limit.cpu = 1 -case7.limit.mem = 91224961 -case7.diff.output.ignorespaces = true -#case7.limit.stdout = 8 -#case7.command = "./h7/build/ex2" -case7.in = "case7.in" - -case8.diff.output.score = 15 -case8.limit.cpu = 1 -case8.limit.mem = 91224961 -case8.diff.output.ignorespaces = true -#case8.limit.stdout = 8 -#case8.command = "./h7/build/ex2" -case8.in = "case8.in" - -case9.diff.output.score = 15 -case9.limit.cpu = 1 -case9.limit.mem = 91224961 -case9.diff.output.ignorespaces = true -#case9.limit.stdout = 8 -#case9.command = "./h7/build/ex2" -case9.in = "case9.in" - -[[stages]] -name = "[joj] ex2-msan" -command="./h7/build/ex2-msan -a" -files.import = [ "h7/build/ex2-msan" ] -limit.mem = 91224961 - -parsers = [ "diff", "result-detail" ] -result-detail.exitstatus = true -result-detail.stderr = true - -# will be removed as long as the name is fixed -case0.diff.output.score = 5 -case0.limit.cpu = 1 -case0.limit.mem = 91224961 -case0.diff.output.ignorespaces = true -#case0.limit.stdout = 8 -#case0.command = "./h7/build/ex2" -case0.in = "case0.in" - -case1.diff.output.score = 5 -case1.limit.cpu = 1 -case1.limit.mem = 91224961 -case1.diff.output.ignorespaces = true -#case1.limit.stdout = 8 -#case1.command = "./h7/build/ex2" -case1.in = "case1.in" - -case2.diff.output.score = 5 -case2.limit.cpu = 1 -case2.limit.mem = 91224961 -case2.diff.output.ignorespaces = true -#case2.limit.stdout = 8 -#case2.command = "./h7/build/ex2" -case2.in = "case2.in" - -case3.diff.output.score = 5 -case3.limit.cpu = 1 -case3.limit.mem = 91224961 -case3.diff.output.ignorespaces = true -#case3.limit.stdout = 8 -#case3.command = "./h7/build/ex2" -case3.in = "case3.in" - -case4.diff.output.score = 10 -case4.limit.cpu = 1 -case4.limit.mem = 91224961 -case4.diff.output.ignorespaces = true -#case4.limit.stdout = 8 -#case4.command = "./h7/build/ex2" -case4.in = "case4.in" - -case5.diff.output.score = 10 -case5.limit.cpu = 1 -case5.limit.mem = 91224961 -case5.diff.output.ignorespaces = true -#case5.limit.stdout = 8 -#case5.command = "./h7/build/ex2" -case5.in = "case5.in" - -case6.diff.output.score = 15 -case6.limit.cpu = 1 -case6.limit.mem = 91224961 -case6.diff.output.ignorespaces = true -#case6.limit.stdout = 8 -#case6.command = "./h7/build/ex2" -case6.in = "case6.in" - -case7.diff.output.score = 15 -case7.limit.cpu = 1 -case7.limit.mem = 91224961 -case7.diff.output.ignorespaces = true -#case7.limit.stdout = 8 -#case7.command = "./h7/build/ex2" -case7.in = "case7.in" - -case8.diff.output.score = 15 -case8.limit.cpu = 1 -case8.limit.mem = 91224961 -case8.diff.output.ignorespaces = true -#case8.limit.stdout = 8 -#case8.command = "./h7/build/ex2" -case8.in = "case8.in" - -case9.diff.output.score = 15 -case9.limit.cpu = 1 -case9.limit.mem = 91224961 -case9.diff.output.ignorespaces = true -#case9.limit.stdout = 8 -#case9.command = "./h7/build/ex2" -case9.in = "case9.in" - - -[[stages]] -name = "[joj] ex2-ubsan" -command="./h7/build/ex2-ubsan -a" -files.import = [ "h7/build/ex2-ubsan" ] - -parsers = [ "diff", "result-detail" ] -result-detail.exitstatus = true -result-detail.stderr = true - -# will be removed as long as the name is fixed -case0.diff.output.score = 5 -case0.limit.cpu = 1 -case0.limit.mem = 91224961 -case0.diff.output.ignorespaces = true -#case0.limit.stdout = 8 -#case0.command = "./h7/build/ex2" -case0.in = "case0.in" - -case1.diff.output.score = 5 -case1.limit.cpu = 1 -case1.limit.mem = 91224961 -case1.diff.output.ignorespaces = true -#case1.limit.stdout = 8 -#case1.command = "./h7/build/ex2" -case1.in = "case1.in" - -case2.diff.output.score = 5 -case2.limit.cpu = 1 -case2.limit.mem = 91224961 -case2.diff.output.ignorespaces = true -#case2.limit.stdout = 8 -#case2.command = "./h7/build/ex2" -case2.in = "case2.in" - -case3.diff.output.score = 5 -case3.limit.cpu = 1 -case3.limit.mem = 91224961 -case3.diff.output.ignorespaces = true -#case3.limit.stdout = 8 -#case3.command = "./h7/build/ex2" -case3.in = "case3.in" - -case4.diff.output.score = 10 -case4.limit.cpu = 1 -case4.limit.mem = 91224961 -case4.diff.output.ignorespaces = true -#case4.limit.stdout = 8 -#case4.command = "./h7/build/ex2" -case4.in = "case4.in" - -case5.diff.output.score = 10 -case5.limit.cpu = 1 -case5.limit.mem = 91224961 -case5.diff.output.ignorespaces = true -#case5.limit.stdout = 8 -#case5.command = "./h7/build/ex2" -case5.in = "case5.in" - -case6.diff.output.score = 15 -case6.limit.cpu = 1 -case6.limit.mem = 91224961 -case6.diff.output.ignorespaces = true -#case6.limit.stdout = 8 -#case6.command = "./h7/build/ex2" -case6.in = "case6.in" - -case7.diff.output.score = 15 -case7.limit.cpu = 1 -case7.limit.mem = 91224961 -case7.diff.output.ignorespaces = true -#case7.limit.stdout = 8 -#case7.command = "./h7/build/ex2" -case7.in = "case7.in" - -case8.diff.output.score = 15 -case8.limit.cpu = 1 -case8.limit.mem = 91224961 -case8.diff.output.ignorespaces = true -#case8.limit.stdout = 8 -#case8.command = "./h7/build/ex2" -case8.in = "case8.in" - -case9.diff.output.score = 15 -case9.limit.cpu = 1 -case9.limit.mem = 91224961 -case9.diff.output.ignorespaces = true -#case9.limit.stdout = 8 -#case9.command = "./h7/build/ex2" -case9.in = "case9.in" - - -[[stages]] -name = "[joj] ex2" -command="./h7/build/ex2" -files.import = [ "h7/build/ex2" ] -score = 10 - -parsers = [ "diff", "result-detail" ] -result-detail.exitstatus = true -result-detail.stderr = true -result-status.forcequit = true - -# will be removed as long as the name is fixed -case0.diff.output.score = 5 -case0.limit.cpu = 1 -case0.limit.mem = 91224961 -case0.diff.output.ignorespaces = true -#case0.limit.stdout = 8 -#case0.command = "./h7/build/ex2" -case0.in = "case0.in" - -case1.diff.output.score = 5 -case1.limit.cpu = 1 -case1.limit.mem = 91224961 -case1.diff.output.ignorespaces = true -#case1.limit.stdout = 8 -#case1.command = "./h7/build/ex2" -case1.in = "case1.in" - -case2.diff.output.score = 5 -case2.limit.cpu = 1 -case2.limit.mem = 91224961 -case2.diff.output.ignorespaces = true -#case2.limit.stdout = 8 -#case2.command = "./h7/build/ex2" -case2.in = "case2.in" - -case3.diff.output.score = 5 -case3.limit.cpu = 1 -case3.limit.mem = 91224961 -case3.diff.output.ignorespaces = true -#case3.limit.stdout = 8 -#case3.command = "./h7/build/ex2" -case3.in = "case3.in" - -case4.diff.output.score = 10 -case4.limit.cpu = 1 -case4.limit.mem = 91224961 -case4.diff.output.ignorespaces = true -#case4.limit.stdout = 8 -#case4.command = "./h7/build/ex2" -case4.in = "case4.in" - -case5.diff.output.score = 10 -case5.limit.cpu = 1 -case5.limit.mem = 91224961 -case5.diff.output.ignorespaces = true -#case5.limit.stdout = 8 -#case5.command = "./h7/build/ex2" -case5.in = "case5.in" - -case6.diff.output.score = 15 -case6.limit.cpu = 1 -case6.limit.mem = 91224961 -case6.diff.output.ignorespaces = true -#case6.limit.stdout = 8 -#case6.command = "./h7/build/ex2" -case6.in = "case6.in" - -case7.diff.output.score = 15 -case7.limit.cpu = 1 -case7.limit.mem = 91224961 -case7.diff.output.ignorespaces = true -#case7.limit.stdout = 8 -#case7.command = "./h7/build/ex2" -case7.in = "case7.in" - -case8.diff.output.score = 15 -case8.limit.cpu = 1 -case8.limit.mem = 91224961 -case8.diff.output.ignorespaces = true -#case8.limit.stdout = 8 -#case8.command = "./h7/build/ex2" -case8.in = "case8.in" - -case9.diff.output.score = 15 -case9.limit.cpu = 1 -case9.limit.mem = 91224961 -case9.diff.output.ignorespaces = true -#case9.limit.stdout = 8 -#case9.command = "./h7/build/ex2" -case9.in = "case9.in"