Fix: skip on errors

This commit is contained in:
Dorian Zedler 2022-07-20 12:35:46 +02:00
parent 332b2a8b7c
commit 186ea1f272
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -38,19 +38,20 @@ t/%:
benchmarks.csv: md2 ${TESTFILES}
@rm -f $@
@for i in 0 2 3; do \
@for i in 0 1 2 3; do \
echo ;\
echo "=== Testing implementation $$i ===";\
for t in $(TESTFILES_SIZES); do \
echo -n "- with $${t}MB ... "; \
if ! rr=$$(./md2 t/$${t} -B1 -V$${i}); then \
echo; \
echo "ERROR!"; \
exit 1; \
fi; \
echo "SKIPPED!"; \
echo "$${i};$${t};0" >> $@; \
else \
r=$$(echo $$rr | xargs | sed -e 's/.*took \(.*\) seconds.*/\1/'); \
echo "$${r}s"; \
echo "$${i};$${t};$${r}" >> $@; \
fi; \
done; \
echo "=== done ===";\
echo;\