-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.json
More file actions
48 lines (45 loc) · 1.77 KB
/
config.json
File metadata and controls
48 lines (45 loc) · 1.77 KB
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
{
// explicitly grab the necessary submitted files for static analysis
"autograding" : {
"submission_to_runner" : [ "*.cpp", "*.c", "*.hpp", "*.h", "*.c", "*.hpp" ]
},
"autograding_method": "docker",
"container_options": {
"container_image": "submitty/autograding-default:latest"
},
// Static analysis can also be performed upon C++ code.
// Here, no compilation is performed at all; instead, student code is examined to
// ensure that it does not use either the "goto" or "auto" keywords.
"testcases" : [
{
"title" : "Check for goto and auto",
"command" : [ "submitty_count_ts -l cpp node goto *.cpp",
"submitty_count_ts -l cpp node auto *.cpp" ],
"points" : 2,
"validation" : [
{
// number of goto must be 0
"method" : "intComparison",
"actual_file" : "STDOUT_0.txt",
"description" : "Number of `goto`",
"comparison" : "eq",
"term" : 0,
"failure_message" : "You must not use the `goto` keyword.",
"show_message" : "on_failure",
"show_actual" : "never"
},
{
// number of auto must be 0
"method" : "intComparison",
"actual_file" : "STDOUT_1.txt",
"description" : "Number of `auto`",
"comparison" : "eq",
"term" : 0,
"failure_message" : "You must not use the `auto` keyword.",
"show_message" : "on_failure",
"show_actual" : "never"
}
]
}
]
}