From 5e78c729407999bd26af4d446edf0edf7d0af94e Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 13 Sep 2018 13:09:35 -0400 Subject: Import autograder from 15-317 f17 --- autograde-Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 autograde-Makefile (limited to 'autograde-Makefile') 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\": {}}" ) -- cgit v1.2.3