CSE

1. How do I use the Bodek system to automatically check submissions to a Moodle assignment?




How do I use the Bodek system to automatically check submissions to a Moodle assignment?
  1. If you have not already done so, create a CourseAdmin assignment as follows:
    1. su to the course account: su - <course>
    2. Add a line to ~/course-admin/results/grade-parameters. Let's say
        ex1
    3. If your automatic tests will use CourseAdmin errorcodes, create file ~/course-admin/results/ex1.errorcodes.
      See Grading an assignment under Tools for CSE courses
    4. On the Moodle course page, click on the link in the CourseAdmin preview block in order to load everything into CourseAdmin
  2. In the Moodle assignment:
    1. In the top section, set CourseAdmin assignment name to ex1
    2. In section Submission types, ensure that File submissions is checked, Maximum number of uploaded file is set to 1 and Only a Bodek archive file is checked
  3. You must now wait for at least one student to submit to the assignment.
    You can, if you wish, use a test account and submit as a test user. See Question 14 in the FAQ for teachers
  4. You will see that a directory hierarchy ~/course-admin/bodek/assignments/ex1 has been created
  5. Create your tests in ~/course-admin/bodek/assignments/ex1/presubmission and/or ~/course-admin/bodek/assignments/ex1/final.
    See Automatic tests under Tools for CSE courses