Fixed test suit: advent needs adventure.data or adventure.txt in current directory to run successfully

This commit is contained in:
NHOrus 2017-05-26 08:54:23 +03:00
parent 196a9e1a49
commit 3b9f29742f
8 changed files with 591 additions and 4 deletions

View file

@ -42,7 +42,7 @@ buildregress:
regress:
@for file in $(TESTLOADS); do \
$(ECHO) -n " $${file} "; grep --text '##' $${file}.log || echo ' ## (no description)'; \
if advent $${file}.log >/tmp/regress$$$$ 2>&1; \
if advent < $${file}.log >/tmp/regress$$$$ 2>&1; \
then diff --text -u $${file}.chk /tmp/regress$$$$ || exit 1; \
else echo "*** Nonzero return status on $${file}!"; exit 1; fi \
done