From 079d9083bce2b41727adc784726f08799ecd0640 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 8 Jan 2015 14:19:55 +0000 Subject: [PATCH] run screen shots in parallel (3 times faster) --- test/widgets/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 1.7.10.4