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 --- skel/test_checks.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 skel/test_checks.sh (limited to 'skel/test_checks.sh') diff --git a/skel/test_checks.sh b/skel/test_checks.sh new file mode 100755 index 0000000..975ea4c --- /dev/null +++ b/skel/test_checks.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +make -s autograde + +for f in test_handins/*.tar; do + base=`basename -s .tar ${f}` + tmp=`mktemp -d` + cp ../autograde.tar ${tmp} + cp test_handins/${base}.tar ${tmp}/handin.tar + cp ../autograde-Makefile ${tmp} + echo "\e[41m!!!!!!! Last 10 output lines for test ${base}:\e[0m" + (cd ${tmp}; make -s -f autograde-Makefile | tail -n 10) + echo "\e[42m!!!!!!! Expected result:\e[0m" + cat test_handins/${base}.exp + rm -fr ${tmp} +done -- cgit v1.2.3