diff options
author | Prabhu Ramachandran | 2011-11-24 02:11:40 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-24 02:11:40 +0530 |
commit | 11a2eaefaba6d2b547d35afbee3e85b18520afd2 (patch) | |
tree | f05aef4423f613c4d38232569df77a88c66978e7 /docs/sample_questions.xml | |
parent | 30f56443790841901f15b5ab435f97fba1c81d85 (diff) | |
download | online_test-11a2eaefaba6d2b547d35afbee3e85b18520afd2.tar.gz online_test-11a2eaefaba6d2b547d35afbee3e85b18520afd2.tar.bz2 online_test-11a2eaefaba6d2b547d35afbee3e85b18520afd2.zip |
ENH/TMP: Preliminary support for bash scripts.
- Changing the Question model to add a language attribute.
- Moving python_server.py -> code_server.py.
- Adding functionality to test for Shell scripts. This is still
incomplete since the shell code checker seems to have some problems.
- Modified the xmlrpc_clients to support multiple languages and right
now two.
- Using setgid/setuid instead of setegid/seteuid in the code_server.py..
- Adding a bash example to the sample_questions.py.
The shell script support doesn't quite work yet but this is really a
code_server/checking issue.
Diffstat (limited to 'docs/sample_questions.xml')
-rw-r--r-- | docs/sample_questions.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/sample_questions.xml b/docs/sample_questions.xml index 104ea32..cad205b 100644 --- a/docs/sample_questions.xml +++ b/docs/sample_questions.xml @@ -10,6 +10,7 @@ and returns the factorial of the number. For example fact(3) -> 6 </description> <points>2</points> +<language>python</language> <test> assert fact(0) == 1 assert fact(5) == 120 @@ -26,6 +27,7 @@ returns the square of the argument For example sqr(3) -> 9. </description> <points>1</points> +<language>python</language> <test> import math assert sqr(3) == 9 |