From: Wolfram Schneider Date: Thu, 8 Jan 2015 14:19:55 +0000 (+0000) Subject: run screen shots in parallel (3 times faster) X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;ds=sidebyside;h=079d9083bce2b41727adc784726f08799ecd0640;p=mkws-moved-to-github.git run screen shots in parallel (3 times faster) --- diff --git a/test/widgets/Makefile b/test/widgets/Makefile index 45e8951..b59bf67 100644 --- a/test/widgets/Makefile +++ b/test/widgets/Makefile @@ -35,8 +35,8 @@ screenshots: clean estimate-time iframe set -e; \ for t in ${TESTS}; do \ for i in $$(cat url.$$t); do \ - ${MAKE} PHANTOMJS_URL="$$i" TIMEOUT=4 PREFIX=$$t screenshot; \ - done; \ + ${MAKE} PHANTOMJS_URL="$$i" TIMEOUT=4 PREFIX=$$t screenshot & sleep 1; \ + done; wait; \ ${MAKE} PREFIX=$$t index; \ done ${MAKE} tidy help-url @@ -46,7 +46,7 @@ help-url: @echo "Please check now: http://localhost/test/widgets/" estimate-time: - @wc -l url.* | tail -n1 | awk '{print "Estimeate run time: " $$1 * (1 + '${TIMEOUT}'), "seconds" }' + @wc -l url.* | tail -n1 | awk '{print "Estimeate run time: " $$1 * (1 + '${TIMEOUT}') * 0.5, "seconds" }' @echo "" index: