From d31ca36eb9416034bf9b4302cdddfe15a1763646 Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Mon, 14 Aug 2023 14:44:24 +0200 Subject: [PATCH] Fix manual runner --- tested/manual.py | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/tested/manual.py b/tested/manual.py index 033cbfce..d1344023 100644 --- a/tested/manual.py +++ b/tested/manual.py @@ -9,32 +9,32 @@ import time from pathlib import Path -from tested.configs import DodonaConfig +from tested.configs import DodonaConfig, Options from tested.main import run +from tested.testsuite import ExecutionMode -exercise_dir = "/home/niko/Ontwikkeling/universal-judge/tests/exercises/echo" +exercise_dir = ( + "/home/niko/Ontwikkeling/javascript-oefeningen/reeksen/07 objecten/akkoorden" +) def read_config() -> DodonaConfig: """Read the configuration from stdout""" - # noinspection PyArgumentList return DodonaConfig( - **{ - "memory_limit": 536870912, - "time_limit": 60, - "programming_language": "python", - "natural_language": "nl", - "resources": Path(exercise_dir, "evaluation"), - "source": Path(exercise_dir, "solution/run-error.py"), - "judge": Path("."), - "workdir": Path("workdir"), - "test_suite": "one.tson", - "options": { - "allow_fallback": False, - "mode": "batch", - "linter": False, - }, - } + memory_limit=536870912, + time_limit=60, + programming_language="javascript", + natural_language="nl", + resources=Path(exercise_dir, "evaluation"), + source=Path(exercise_dir, "solution/solution.nl.js"), + judge=Path("."), + workdir=Path("workdir"), + test_suite="suite.yaml", + options=Options( + allow_fallback=False, + mode=ExecutionMode.PRECOMPILATION, + linter=False, + ), ) @@ -52,6 +52,8 @@ def read_config() -> DodonaConfig: # Some modules are very verbose, hide those by default. logger = logging.getLogger("tested.judge.collector") logger.setLevel(logging.INFO) + logger = logging.getLogger("tested.parsing") + logger.setLevel(logging.INFO) # Create workdir if needed. config.workdir.mkdir(exist_ok=True)