Fix: skip on errors
This commit is contained in:
parent
332b2a8b7c
commit
186ea1f272
1 changed files with 7 additions and 6 deletions
|
@ -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" >> $@; \
|
||||||
fi; \
|
else \
|
||||||
r=$$(echo $$rr | xargs | sed -e 's/.*took \(.*\) seconds.*/\1/'); \
|
r=$$(echo $$rr | xargs | sed -e 's/.*took \(.*\) seconds.*/\1/'); \
|
||||||
echo "$${r}s"; \
|
echo "$${r}s"; \
|
||||||
echo "$${i};$${t};$${r}" >> $@; \
|
echo "$${i};$${t};$${r}" >> $@; \
|
||||||
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
echo "=== done ===";\
|
echo "=== done ===";\
|
||||||
echo;\
|
echo;\
|
||||||
|
|
Loading…
Reference in a new issue