2011-11-27 03:24:39 +09:00
|
|
|
# Fetch the paths to browsers that are going to be used in testing.
|
|
|
|
MANIFEST=../resources/browser_manifests/browser_manifest.json
|
2011-12-11 21:18:40 +09:00
|
|
|
BROWSERS=$(shell echo `sed -n 's/.*"path":\(.*\)/\1,/p' $(MANIFEST) | tr -d '\n' | \
|
|
|
|
sed 's/\(Google Chrome\.app\)/\1\/Contents\/MacOS\/Google Chrome/' | \
|
2011-12-13 05:12:33 +09:00
|
|
|
sed 's/\(Aurora\.app\)/\1\/Contents\/MacOS\/firefox-bin/' | \
|
2011-12-11 21:18:40 +09:00
|
|
|
sed 's/\(Firefox[ Beta]*\.app\)/\1\/Contents\/MacOS\/firefox-bin/' \
|
|
|
|
`)
|
2011-11-27 03:24:39 +09:00
|
|
|
|
|
|
|
# Command to invoke the unit test.
|
|
|
|
PROG=java \
|
|
|
|
-Xms512m \
|
|
|
|
-Xmx1024m \
|
|
|
|
-jar ../../external/jsTestDriver/JsTestDriver-1.3.3d.jar \
|
2011-12-13 05:31:10 +09:00
|
|
|
--config ./jsTestDriver.conf \
|
2011-11-27 03:24:39 +09:00
|
|
|
--reset \
|
|
|
|
--port 4224 \
|
|
|
|
--browser $(BROWSERS) \
|
|
|
|
--tests all \
|
|
|
|
--testOutput ./test_reports/
|
2011-11-24 07:03:17 +09:00
|
|
|
|
|
|
|
test:
|
2011-11-27 03:24:39 +09:00
|
|
|
$(PROG)
|
2011-11-24 07:03:17 +09:00
|
|
|
|
|
|
|
.phony:: test
|
|
|
|
|