aboutsummaryrefslogtreecommitdiff
path: root/autograde-Makefile
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2018-09-13 13:09:35 -0400
committerRyan Kavanagh <rak@debian.org>2018-09-13 13:49:07 -0400
commit5e78c729407999bd26af4d446edf0edf7d0af94e (patch)
tree8e44695c03bd8974e4a9b0831272e845ffa940ad /autograde-Makefile
Import autograder from 15-317 f17
Diffstat (limited to 'autograde-Makefile')
-rw-r--r--autograde-Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/autograde-Makefile b/autograde-Makefile
new file mode 100644
index 0000000..e05a823
--- /dev/null
+++ b/autograde-Makefile
@@ -0,0 +1,10 @@
+# This file is called in a VM by the autograder
+all:
+ tar -mxf autograde.tar
+ # We are requied by AutoLab to always terminate
+ # by printing a valid score string. If ./run.sh
+ # exists with an error, this will not happen.
+ ./run.sh || \
+ ( echo "run.sh exited with non-zero exit code.";\
+ echo "Contact course staff."; \
+ echo "{\"score\": {}}" )