-
Notifications
You must be signed in to change notification settings - Fork 0
/
submtterPseudo.txt
59 lines (58 loc) · 1.62 KB
/
submtterPseudo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set submission values from cfg files
display assessment name submission message.
if requiredFilesForSubmissionExist then
if copyTesterFromProfessor then
#copy the tester files
if not successful, then
error
EXIT
endif
endif
if compileNeeded then
#compile the code
#save result in err.txt
if compile OK then
if executionNeeded then
if InstructionNeeded then
if InstruciotnAvilabe then
#display insturcion
else
errro insturctionMissing
EXIT
endif instructionAvailable
endif instructionNeeded
if Script then
#display Script Instruction
#Start Script and capture output
else
#execute and capture output
endif Script
if matchingOutputNeeded then
#compare the ouput
if notMatched then
error show difference
EXIT
endif notMatched
end matchingOuput
endif Execution Needed
else
error compile error
EXIT
endif compile OK
endif compileNeeded
if submissionFilesExist then
if compileWasNeeded then
add err.txt to email
if executionWasNeeded then
add output capture to email
endif executionWasNeeded
endif compileWasNeeded
#Send Email to prof
#Message success
else
error files missing
endif submissionFilesExist
else
error missing files
endif requiredFilesForSubmssionExist
EXIT