|
|
# Automatic evaluation of students submission.
|
|
|
|
|
|
## Create entry in dbabgabe.
|
|
|
## Create entry in frontend.
|
|
|
|
|
|
1. Go to [dbabgabe](https://dbabgabe.cosy.sbg.ac.at/admin/).
|
|
|
2. Add a new Duty (mostly self-explained):
|
|
|
Add a new Duty (mostly self-explained):
|
|
|
- add Relpath - subdirectory on the server where evaluation files will be stored
|
|
|
- do not set Isevaluate
|
|
|
|
... | ... | @@ -37,7 +36,7 @@ testinput="$2" |
|
|
cp "$scripttoexecute" "$testinput" $testarea
|
|
|
chmod +rx "$testarea/$(basename $scripttoexecute)"
|
|
|
|
|
|
# Execute the student's script in the safe tet area.
|
|
|
# Execute the student's script in the safe test area.
|
|
|
$savetest python -B $testarea_local/"$(basename $scripttoexecute)" $testarea_local/"$(basename $testinput)"
|
|
|
# '$?' returns the last executed command's return value. Store it ant return at the end.
|
|
|
ret=$?
|
... | ... | @@ -50,10 +49,10 @@ exit $ret |
|
|
|
|
|
## Enable automatic evaluation.
|
|
|
|
|
|
6. Copy to `inhander@dodo ~/testscripts/<COURSE>/<RELPATH>` (RELPATH given in point 2) all files from point 5 and test cases with correct outputs (generated with a script from point 4).
|
|
|
6. Copy to `inhander_youruser@dodo ~/testscripts/<COURSE>/<RELPATH>` (RELPATH given in point 2) all files from point 5 and test cases with correct outputs (generated with a script from point 4).
|
|
|
7. Make necessary file executable.
|
|
|
8. Create a symbolic link from tester.sh to the verification script (if it has a different name), for example, `ln -s tester.py tester.sh`.
|
|
|
9. Set Isevaluate in dbabgabe.
|
|
|
9. Set Isevaluate for duty.
|
|
|
|
|
|
## Examples.
|
|
|
|
... | ... | |