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
1 changed files with 7 additions and 6 deletions

View File

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