X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=test%2Fwidgets%2FMakefile;h=55467fb6a1a94dcd72d685d4b7a3e49a2d17bbf6;hp=ec22408b7841d0cf9089f9d84c0427018e8b05d7;hb=662315e99481a373415236ab3a191728ec8bf1bd;hpb=0d027f85521454a58e4eaa766e524337f45446ad diff --git a/test/widgets/Makefile b/test/widgets/Makefile index ec22408..55467fb 100644 --- a/test/widgets/Makefile +++ b/test/widgets/Makefile @@ -35,31 +35,35 @@ 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 + ${MAKE} index-widgets tidy help-url help-url: @echo "" - @echo "Please check now: http://localhost/test/widgets/" + @echo "Please check now: http://localhost/test/widgets/index.html" 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: ( cd ${IMAGES}; ls -tr ${PREFIX}.*.png | perl -ne 'chomp; print qq{