pdf.js/test/unit/Makefile
Kalervo Kujala 27ba65dc6f Add unit-test to master Makefile.
And add unit-test to test-target. Also fetch the paths to browsers that are
going to be used in testing from the browser_manifest.json.
2011-11-26 20:24:39 +02:00

21 lines
466 B
Makefile

# Fetch the paths to browsers that are going to be used in testing.
MANIFEST=../resources/browser_manifests/browser_manifest.json
BROWSERS=$(shell echo `sed -n 's/.*"path":\(.*\)/\1,/p' $(MANIFEST) | tr -d '\n'`)
# Command to invoke the unit test.
PROG=java \
-Xms512m \
-Xmx1024m \
-jar ../../external/jsTestDriver/JsTestDriver-1.3.3d.jar \
--reset \
--port 4224 \
--browser $(BROWSERS) \
--tests all \
--testOutput ./test_reports/
test:
$(PROG)
.phony:: test