summaryrefslogtreecommitdiff
path: root/yaksh/settings.py
diff options
context:
space:
mode:
authoradityacp2016-06-02 14:24:57 +0530
committeradityacp2016-07-27 22:52:23 +0530
commitf5ea9ecf903360c2860293639d1c6ba7a78b2339 (patch)
tree05d7b2c516851874d82b1c14efdd52b5945316fc /yaksh/settings.py
parent344e1e804cee214c0d0f5c41ca16d871e786d4c3 (diff)
downloadonline_test-f5ea9ecf903360c2860293639d1c6ba7a78b2339.tar.gz
online_test-f5ea9ecf903360c2860293639d1c6ba7a78b2339.tar.bz2
online_test-f5ea9ecf903360c2860293639d1c6ba7a78b2339.zip
c,cpp,java evaluators with test cases
Diffstat (limited to 'yaksh/settings.py')
-rw-r--r--yaksh/settings.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/yaksh/settings.py b/yaksh/settings.py
index 70e5471..13860b6 100644
--- a/yaksh/settings.py
+++ b/yaksh/settings.py
@@ -11,7 +11,7 @@ SERVER_PORTS = [8001] # range(8001, 8026)
SERVER_POOL_PORT = 53579
# Timeout for the code to run in seconds. This is an integer!
-SERVER_TIMEOUT = 2
+SERVER_TIMEOUT = 4
# The root of the URL, for example you might be in the situation where you
# are not hosted as host.org/exam/ but as host.org/foo/exam/ for whatever
@@ -23,9 +23,12 @@ code_evaluators = {
"python": {"standardtestcase": "python_assertion_evaluator.PythonAssertionEvaluator",
"stdoutbasedtestcase": "python_stdout_evaluator.PythonStdoutEvaluator"
},
- "c": {"standardtestcase": "cpp_code_evaluator.CppCodeEvaluator"},
- "cpp": {"standardtestcase": "cpp_code_evaluator.CppCodeEvaluator"},
- "java": {"standardtestcase": "java_code_evaluator.JavaCodeEvaluator"},
+ "c": {"standardtestcase": "cpp_code_evaluator.CppCodeEvaluator",
+ "stdiobasedtestcase": "cpp_stdio_evaluator.CppStdioEvaluator"},
+ "cpp": {"standardtestcase": "cpp_code_evaluator.CppCodeEvaluator",
+ "stdiobasedtestcase": "cpp_stdio_evaluator.CppStdioEvaluator"},
+ "java": {"standardtestcase": "java_code_evaluator.JavaCodeEvaluator",
+ "stdiobasedtestcase": "java_stdio_evaluator.JavaStdioEvaluator"},
"bash": {"standardtestcase": "bash_code_evaluator.BashCodeEvaluator"},
"scilab": {"standardtestcase": "scilab_code_evaluator.ScilabCodeEvaluator"},
}