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}
|
||||
@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; \
|
||||
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; \
|
||||
r=$$(echo $$rr | xargs | sed -e 's/.*took \(.*\) seconds.*/\1/'); \
|
||||
echo "$${r}s"; \
|
||||
echo "$${i};$${t};$${r}" >> $@; \
|
||||
done; \
|
||||
echo "=== done ===";\
|
||||
echo;\
|
||||
|
|
Loading…
Reference in a new issue