X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fwidgets%2FMakefile;h=9e560c2a05723214487c99650c58781cf29fc397;hb=bae34b9123e38a229e76533df59ee25407919111;hp=6463ae82c6d49707619b4840e87ddbe67c74a2be;hpb=caddda9e4b96e995bad36c41380d6a5e9afd65fa;p=mkws-moved-to-github.git
diff --git a/test/widgets/Makefile b/test/widgets/Makefile
index 6463ae8..9e560c2 100644
--- a/test/widgets/Makefile
+++ b/test/widgets/Makefile
@@ -3,7 +3,7 @@
PHANTOMJS_TIMEOUT=18
PHANTOMJS= ../node_modules/phantomjs/bin/phantomjs
IMAGES= ./images
-SCREENSHOT_WIDTH_HEIGHT= 1400 800
+SCREENSHOT_WIDTH_HEIGHT= 1000 1200
PERL_SCRIPTS= ../bin/bomb.pl
PROG= ../phantom/screenshot.js
MD5= $(shell which md5 md5sum)
@@ -12,7 +12,7 @@ TIMEOUT=5
PHANTOMJS_URL= http://cph.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi
PHANTOMJS_URL= http://www.indexdata.com/
-all: check
+all: help
clean:
rm -f mkws-error.png mkws-error.html
@@ -24,7 +24,7 @@ distclean: clean
test: check
screenshot:
- file=$$(echo "${PHANTOMJS_URL}" | ${MD5} | perl -npe 's,\s.*,,'); \
+ file=$$(echo "${PHANTOMJS_URL}" | perl -npe 's,(\W),-,g'); \
${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT}
screenshots:
@@ -34,10 +34,11 @@ screenshots:
make index
index:
- cd ${IMAGES}; ls *.png | perl -ne 'chomp; print qq{$$_