projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
09bc6df
)
working screenshots, MKWS-276
author
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 9 Oct 2014 14:28:13 +0000
(14:28 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 9 Oct 2014 14:28:13 +0000
(14:28 +0000)
test/widgets/Makefile
patch
|
blob
|
history
diff --git
a/test/widgets/Makefile
b/test/widgets/Makefile
index
1e4d41d
..
6463ae8
100644
(file)
--- a/
test/widgets/Makefile
+++ b/
test/widgets/Makefile
@@
-3,7
+3,7
@@
PHANTOMJS_TIMEOUT=18
PHANTOMJS= ../node_modules/phantomjs/bin/phantomjs
IMAGES= ./images
PHANTOMJS_TIMEOUT=18
PHANTOMJS= ../node_modules/phantomjs/bin/phantomjs
IMAGES= ./images
-SCREENSHOT_WIDTH_HEIGHT= 1200 1000
+SCREENSHOT_WIDTH_HEIGHT= 1400 800
PERL_SCRIPTS= ../bin/bomb.pl
PROG= ../phantom/screenshot.js
MD5= $(shell which md5 md5sum)
PERL_SCRIPTS= ../bin/bomb.pl
PROG= ../phantom/screenshot.js
MD5= $(shell which md5 md5sum)
@@
-16,7
+16,8
@@
all: check
clean:
rm -f mkws-error.png mkws-error.html
clean:
rm -f mkws-error.png mkws-error.html
- rm -f images/*.png
+ rm -f ${IMAGES}/*.png
+ rm -f ${IMAGES}/index.html
distclean: clean
distclean: clean
@@
-26,8
+27,17
@@
screenshot:
file=$$(echo "${PHANTOMJS_URL}" | ${MD5} | perl -npe 's,\s.*,,'); \
${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT}
file=$$(echo "${PHANTOMJS_URL}" | ${MD5} | perl -npe 's,\s.*,,'); \
${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT}
+screenshots:
+ for i in $$(cat url.txt); do \
+ make PHANTOMJS_URL="$$i" TIMEOUT=4 screenshot; \
+ done; wait
+ make index
+
+index:
+ cd ${IMAGES}; ls *.png | perl -ne 'chomp; print qq{<img src="$$_">$$_</img><hr/>\n}' > index.html
+
help:
@echo "make [ all | clean | distclean ]"
help:
@echo "make [ all | clean | distclean ]"
- @echo " [ screenshots ]"
+ @echo " [ screenshot | index | screenshots ]"
@echo ""
@echo ""