-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8aee932
commit cc7701a
Showing
11 changed files
with
155 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../api/testdata/courses/assignments/submit/courses_assignments_submissions_submit_base.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...stdata/courses/assignments/submit/courses_assignments_submissions_submit_epoch_allow.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"module": "autograder.api.courses.assignments.submissions.submit", | ||
"arguments": { | ||
"course": "course-languages", | ||
"assignment": "bash", | ||
"allow-late": true | ||
}, | ||
"files": [ | ||
"__DATA_DIR__(assignment.sh)" | ||
], | ||
"output-modifier": "clean_output_timestamps", | ||
"output": { | ||
"rejected": false, | ||
"message": "", | ||
"grading-success": true, | ||
"result": { | ||
"id": "course-languages::bash::[email protected]::1234567890123", | ||
"short-id": "1234567890123", | ||
"course-id": "course-languages", | ||
"assignment-id": "bash", | ||
"user": "[email protected]", | ||
"message": "", | ||
"max_points": 10, | ||
"score": 10, | ||
"name": "bash", | ||
"questions": [ | ||
{ | ||
"name": "Task 1: add()", | ||
"max_points": 10, | ||
"score": 10, | ||
"message": "", | ||
"grading_start_time": 1234567890123, | ||
"grading_end_time": 1234567890123 | ||
} | ||
], | ||
"grading_start_time": 1234567890123, | ||
"grading_end_time": 1234567890123, | ||
"additional-info": null | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ata/courses/assignments/submit/courses_assignments_submissions_submit_epoch_no_allow.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"module": "autograder.api.courses.assignments.submissions.submit", | ||
"arguments": { | ||
"course": "course-languages", | ||
"assignment": "bash", | ||
"allow-late": false | ||
}, | ||
"files": [ | ||
"__DATA_DIR__(assignment.sh)" | ||
], | ||
"output-modifier": "clean_output_timestamps", | ||
"output": { | ||
"rejected": true, | ||
"message": "Attempting to submit assignment (A Simple Bash Assignment) late without the 'allow late' option. It was due on <timestamp:1234567890123> (which was <time-delta:1234567890123> ago). Use the 'allow late' option to submit an assignment late. See your interface's documentation for more information.", | ||
"grading-success": false, | ||
"result": null | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...estdata/courses/assignments/submit/courses_assignments_submissions_submit_no_compile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...estdata/courses/assignments/submit/courses_assignments_submissions_submit_epoch_allow.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"cli": "autograder.cli.courses.assignments.submissions.submit", | ||
"output-check": "content_equals_ignore_time", | ||
"arguments": [ | ||
"--course", "course-languages", | ||
"--assignment", "bash", | ||
"--allow-late", | ||
"__DATA_DIR__(assignment.sh)" | ||
] | ||
} | ||
--- | ||
Autograder transcript for assignment: bash. | ||
Grading started at <TIME> and ended at <TIME>. | ||
Task 1: add(): 10 / 10 | ||
|
||
Total: 10 / 10 |
15 changes: 15 additions & 0 deletions
15
...data/courses/assignments/submit/courses_assignments_submissions_submit_epoch_no_allow.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"cli": "autograder.cli.courses.assignments.submissions.submit", | ||
"output-check": "content_equals_ignore_time", | ||
"arguments": [ | ||
"--course", "course-languages", | ||
"--assignment", "bash", | ||
"__DATA_DIR__(assignment.sh)" | ||
], | ||
"exit-status": 1 | ||
} | ||
--- | ||
--- Message from Autograder --- | ||
Attempting to submit assignment (A Simple Bash Assignment) late without the 'allow late' option. It was due on <TIME> (which was <time-delta:1234567890123> ago). Use the 'allow late' option to submit an assignment late. See your interface's documentation for more information. | ||
------------------------------- | ||
Submission was rejected by the autograder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function add() { | ||
local a=$1 | ||
local b=$2 | ||
echo $((a + b)) | ||
} |