projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added "mike-test" target for PhantomJS invocation.
[mkws-moved-to-github.git]
/
test
/
Makefile
diff --git
a/test/Makefile
b/test/Makefile
index
7cd3e14
..
b89b4e1
100644
(file)
--- a/
test/Makefile
+++ b/
test/Makefile
@@
-19,12
+19,16
@@
APACHE_HTTPD= /usr/sbin/apache2
all: check
clean:
all: check
clean:
- rm -f mkws-error.png mkws-error.html images/*.png
+ rm -f mkws-error.png mkws-error.html
+ rm -f images/*.png
-distclean: clean clean-tmp
+distclean: clean clean-tmp clean-error
rm -rf node_modules
rm -f ${TMP_DIR}/jasmine-dev
rm -rf node_modules
rm -f ${TMP_DIR}/jasmine-dev
+clean-error:
+ rm -f mkws-error.png.* mkws-error.html.*
+
clean-tmp:
rm -rf ${TMP_DIR}
mkdir -p ${TMP_DIR}
clean-tmp:
rm -rf ${TMP_DIR}
mkdir -p ${TMP_DIR}
@@
-42,9
+46,13
@@
test: check
terse:
$(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec
terse:
$(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec
-phantomjs p: apache-stop apache-start
+phantomjs p: apache-stop apache-start _phantomjs apache-stop
+
+_phantomjs:
./bin/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
+
+mike-test:
+ $(MAKE) _phantomjs PHANTOMJS_URL=http://x.example.indexdata.com/jasmine-popup.html
screenshot:
${PHANTOMJS} phantom/screenshot.js ${PHANTOMJS_URL} ${IMAGES}/screenshot.png 1200 1000
screenshot:
${PHANTOMJS} phantom/screenshot.js ${PHANTOMJS_URL} ${IMAGES}/screenshot.png 1200 1000