AutoMark: Format for Marking Scripts

Sample Script

<markingguide>
   <tries>100</tries>
   <question>
      <compile>rm *.class; javac Question1.java 2&gt;&amp;1</compile>
      <run>java Question1 &gt; testoutput.out &lt; testinput.in 2&gt;&amp;1</run>
      <check>
         <file1>testoutput.test</file1>
         <file2>testoutput.out</file2>
      </check>
      <marks>100</marks>
      <trial>
         <file name="testinput.in">
1 2 3 4 5 6 7 8 9
         </file>
         <file name="testoutput.test">
1 2 3
4 5 6
7 8 9
         </file>
      </trial>
      <trial>
         <fixedfile name="testinput.in.2" targetfilename="testinput.in"/>
         <file name="testoutput.test">
0 0 0
0 111 0
0 0 0
         </file>
      </trial>
   </question>
</markingguide>

Fields

FieldAttributesDescriptionRepeatableMandatory
markingguide containing the whole assignment M
markingguide/tries number of submissions allowed  
markingguide/question for each questionR 
question/fixedfile, trial/fixedfilename, targetfilenamecopies named file to program directory before compilation or before each trial. can appear within question or within trial. if targetfilename is specified, file is renamed to this when it is copied.R 
question/compile, trial/compile command to compile programR 
question/run, trial/run command to execute programR 
question/check, trial/checkprintCheck (optional)specify which 2 files are to be compared in each trial. printCheck=0 will not print actual and expected output/input  
question/checkScript, trial/checkScript specify the name of the checking script. this script will be invoked for every trial and should output a mark [0-100] in trialscore.dat. any output to stdout will appear in the report  
check/file1 name of expected output file M
check/file2 name of output file produced by program M
question/marks, trial/marks marks for question or trial. can appear within question or trial. defaults to 100. if no marks are specified, all trials are equal and all questions are equal - for a scaled total of 100.  
question/trial specification of input/output for each test caseR 
trial/filenamestores data into the file with specified name before the trial is conductedR 
question/maximumCPU, trial/maximumCPU specifies maximum number of seconds of execution time (default: 30s)  
question/maximumMemory, trial/maximumMemory specifies maximum amount of memory usable (default: 10MB)  
question/maximumFile, trial/maximumFile specifies maximum size of each file created by the program (default: 1MB)  

Notes

hussein, 2 september 2009