From c4a892ed9cba0c10e9e7257137acf4c7580f3b86 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 20 Oct 2014 11:05:46 +0000 Subject: [PATCH] use a variable for URL file --- test/widgets/Makefile | 3 ++- test/widgets/koha.url | 7 +++++++ test/widgets/url.txt | 7 ------- 3 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 test/widgets/koha.url delete mode 100644 test/widgets/url.txt diff --git a/test/widgets/Makefile b/test/widgets/Makefile index 70a19c0..5d731c0 100644 --- a/test/widgets/Makefile +++ b/test/widgets/Makefile @@ -7,6 +7,7 @@ SCREENSHOT_WIDTH_HEIGHT= 1000 1200 PERL_SCRIPTS= ../bin/bomb.pl PROG= ../phantom/screenshot.js MD5= $(shell which md5 md5sum) +URL_FILE= koha.url TIMEOUT=5 PHANTOMJS_URL= http://cph.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi @@ -29,7 +30,7 @@ screenshot: mv -f ${IMAGES}/tmp.$$file.png ${IMAGES}/$$file.png screenshots: clean - for i in $$(cat url.txt); do \ + for i in $$(cat ${URL_FILE}); do \ ${MAKE} PHANTOMJS_URL="$$i" TIMEOUT=4 screenshot; \ done; wait ${MAKE} index diff --git a/test/widgets/koha.url b/test/widgets/koha.url new file mode 100644 index 0000000..c5b8207 --- /dev/null +++ b/test/widgets/koha.url @@ -0,0 +1,7 @@ +http://cph.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi +http://demo.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi +http://demo.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi2 +http://boston.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi +http://example.indexdata.com/topic.html?q=sushi +http://example.indexdata.com/simple.html + diff --git a/test/widgets/url.txt b/test/widgets/url.txt deleted file mode 100644 index c5b8207..0000000 --- a/test/widgets/url.txt +++ /dev/null @@ -1,7 +0,0 @@ -http://cph.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi -http://demo.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi -http://demo.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi2 -http://boston.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi -http://example.indexdata.com/topic.html?q=sushi -http://example.indexdata.com/simple.html - -- 1.7.10.4