X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2FMakefile;h=1114eef91a334d4eb6a8d0f587acbfa94abeda66;hb=184ab14937ca310e83cc36261753babb47b18af1;hp=d4597df4f216f59d1a5e543061f8041ec7598b34;hpb=46011122542be3802f8c78f76c113059b9bc26da;p=mkws-moved-to-github.git diff --git a/test/Makefile b/test/Makefile index d4597df..1114eef 100644 --- a/test/Makefile +++ b/test/Makefile @@ -18,18 +18,18 @@ SCREENSHOT_WIDTH= 360 480 640 768 1024 1200 1440 2048 PERL_SCRIPTS= bin/bomb.pl TMP_DIR= ./logs APACHE_HTTPD:= $(shell env PATH=$$PATH:/usr/sbin which apache2 httpd false | head -1 ) +APACHE_PORT ?= 4040 all: check clean: rm -f mkws-error.png mkws-error.html rm -f images/*.png + make -C./widgets $@ distclean: clean clean-tmp clean-error rm -rf node_modules - rm -f ${TMP_DIR}/jasmine-dev rm -f libexec - make -C./widgets $@ clean-error: rm -f mkws-error.png.* mkws-error.html.* @@ -99,16 +99,17 @@ node_modules node-modules: apache-start: bin/apache-template-update - ${APACHE_HTTPD} -f `pwd`/${TMP_DIR}/jasmine-dev + ${APACHE_HTTPD} -f `pwd`/${TMP_DIR}/jasmine-dev-${APACHE_PORT}.conf +APACHE_PID_FILE=${TMP_DIR}/mkws-jasmine-${APACHE_PORT}.pid apache-stop: - @-if [ -e ${TMP_DIR}/mkws-jasmine.pid ]; then \ - kill `cat ${TMP_DIR}/mkws-jasmine.pid`; \ + @-if [ -e ${APACHE_PID_FILE} ]; then \ + kill `cat ${APACHE_PID_FILE}`; \ else \ killall apache2 2> /dev/null; \ fi @sleep 0.6 - rm -f ${TMP_DIR}/mkws-jasmine.pid + rm -f ${APACHE_PID_FILE} help: @echo "make [ all | check | clean | distclean ]"