Skip to content

Commit

Permalink
[Autograding] use containers for tutorial cpp examples (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcutler authored Oct 4, 2020
1 parent fd3bfa2 commit bf6287f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions examples/02_simple_cpp/config/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"autograding_method": "docker",
"container_options": {
"container_image": "submittyrpi/csci1200:default"
},

// For compiled languages, typically two testcases are used to allow points
// to be asssigned independently for compilation and execution.
"testcases" : [
Expand Down
5 changes: 5 additions & 0 deletions examples/05_cpp_static_analysis/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"submission_to_runner" : [ "*.cpp", "*.c", "*.hpp", "*.h", "*.c", "*.hpp" ]
},

"autograding_method": "docker",
"container_options": {
"container_image": "submittyrpi/csci1200:default"
},

// 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.
Expand Down
6 changes: 5 additions & 1 deletion examples/08_memory_debugging/config/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"testcases" : [
"autograding_method": "docker",
"container_options": {
"container_image": "submittyrpi/csci1200:default"
},

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

0 comments on commit bf6287f

Please sign in to comment.