pdf.js/test/unit/Makefile
Kalervo Kujala 190432f252 Remove unit_test.html.
JsTestDriver has made it obsolete. Also add explicitly the used config to
the Makefile.
2011-12-12 22:31:10 +02:00

26 lines
710 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' | \
sed 's/\(Google Chrome\.app\)/\1\/Contents\/MacOS\/Google Chrome/' | \
sed 's/\(Aurora\.app\)/\1\/Contents\/MacOS\/firefox-bin/' | \
sed 's/\(Firefox[ Beta]*\.app\)/\1\/Contents\/MacOS\/firefox-bin/' \
`)
# Command to invoke the unit test.
PROG=java \
-Xms512m \
-Xmx1024m \
-jar ../../external/jsTestDriver/JsTestDriver-1.3.3d.jar \
--config ./jsTestDriver.conf \
--reset \
--port 4224 \
--browser $(BROWSERS) \
--tests all \
--testOutput ./test_reports/
test:
$(PROG)
.phony:: test