X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=test%2FMakefile;h=f92f26bd9cb3ada1b218a8fade52e860a97e4eac;hb=ba77a7964e15d91f0ce3647c0be76b91f1c9b464;hp=668d855f9205ba5a6a67c2e41427b5e8eef21c0e;hpb=54f01e1910f918a990a38c6108356f27dbc7b049;p=mkws-moved-to-github.git diff --git a/test/Makefile b/test/Makefile index 668d855..f92f26b 100644 --- a/test/Makefile +++ b/test/Makefile @@ -4,7 +4,7 @@ MIKE = PATH=$$PATH:/usr/local/lib/node-v0.10.24-linux-x64/bin #PHANTOMJS_URL=https://mkws-dev.indexdata.com/jasmine-popup.html -PHANTOMJS_URL=http://localhost:4040/jasmine-popup.html +PHANTOMJS_URL=http://localhost:4040/jasmine-local-popup.html PHANTOMJS_TIMEOUT=16 NPM_INSTALL_FLAGS=-q @@ -12,8 +12,9 @@ JASMINE_NODE= ./node_modules/jasmine-node/bin/jasmine-node PHANTOMJS= ./node_modules/phantomjs/bin/phantomjs IMAGES= ./images SCREENSHOT_WIDTH= 360 480 640 768 1024 1200 1440 2048 -PERL_SCRIPTS= bomb.pl +PERL_SCRIPTS= bin/bomb.pl TMP_DIR= ./logs +APACHE_HTTPD= /usr/sbin/apache2 all: check @@ -42,7 +43,7 @@ terse: $(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec phantomjs p: apache-stop apache-start - ./bomb.pl --timeout="${PHANTOMJS_TIMEOUT}.5" ${PHANTOMJS} phantom/run-jasmine.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT} + ./bin/bomb.pl --timeout="${PHANTOMJS_TIMEOUT}.5" ${PHANTOMJS} phantom/run-jasmine.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT} ${MAKE} apache-stop screenshot: @@ -75,7 +76,7 @@ node_modules node-modules: apache-start: bin/apache-template-update - /usr/sbin/apache2 -f `pwd`/${TMP_DIR}/jasmine-dev + ${APACHE_HTTPD} -f `pwd`/${TMP_DIR}/jasmine-dev apache-stop: @-if [ -e ${TMP_DIR}/mkws-jasmine.pid ]; then \ @@ -92,5 +93,5 @@ help: @echo " [ node-modules ]" @echo " [ apache-stop apache-start ]" @echo "" - @echo "DEBUG=1 make phantomjs PHANTOMJS_TIMEOUT=8 PHANTOMJS_URL=https://mkws-dev.indexdata.com/jasmine-popup.html" + @echo "DEBUG=1 make phantomjs PHANTOMJS_TIMEOUT=8 PHANTOMJS_URL=${PHANTOMJS_URL}"