Skip to content

Commit bf6287f

Browse files
authored
[Autograding] use containers for tutorial cpp examples (#32)
1 parent fd3bfa2 commit bf6287f

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

examples/02_simple_cpp/config/config.json

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
"autograding_method": "docker",
3+
"container_options": {
4+
"container_image": "submittyrpi/csci1200:default"
5+
},
6+
27
// For compiled languages, typically two testcases are used to allow points
38
// to be asssigned independently for compilation and execution.
49
"testcases" : [

examples/05_cpp_static_analysis/config/config.json

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"submission_to_runner" : [ "*.cpp", "*.c", "*.hpp", "*.h", "*.c", "*.hpp" ]
55
},
66

7+
"autograding_method": "docker",
8+
"container_options": {
9+
"container_image": "submittyrpi/csci1200:default"
10+
},
11+
712
// Static analysis can also be performed upon C++ code.
813
// Here, no compilation is performed at all; instead, student code is examined to
914
// ensure that it does not use either the "goto" or "auto" keywords.

examples/08_memory_debugging/config/config.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
2-
"testcases" : [
2+
"autograding_method": "docker",
3+
"container_options": {
4+
"container_image": "submittyrpi/csci1200:default"
5+
},
36

7+
"testcases" : [
48
// Grading of C++ code can also be supplemented with the use of a memory
59
// debugger. Here, the tool Dr. Memory is used to penalize student code
610
// containing memory errors.

0 commit comments

Comments
 (0)