1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 12:25:46 +01:00

Add experimental Mozmill functional tests.

--HG--
extra : rebase_source : eb8095f9d17f9c97706f93f670dd880c2b56f050
This commit is contained in:
Doug Kearns
2011-01-25 22:17:52 +11:00
parent 685a0f5d30
commit 35e0ab9cf4
32 changed files with 8382 additions and 260 deletions

View File

@@ -9,6 +9,9 @@ GOOGLE = https://$(GOOGLE_PROJ).googlecode.com/files
VERSION ?= $(shell sed -n 's/.*em:version\(>\|="\)\(.*\)["<].*/\2/p' $(TOP)/install.rdf | sed 1q)
UUID := $(shell sed -n 's/.*em:id\(>\|="\)\(.*\)["<].*/\2/p' $(TOP)/install.rdf | sed 1q)
MANGLE := $(shell date '+%s' | awk '{ printf "%x", $$1 }')
MOZMILL = mozmill
HOSTAPP_PATH = $(shell which $(HOSTAPP))
TEST_DIR = $(BASE)/tests/functional
LOCALEDIR = locale
DOC_FILES = $(wildcard $(LOCALEDIR)/*/*.xml)
@@ -48,7 +51,7 @@ CURL ?= curl
#### rules
TARGETS = all help info jar xpi install clean distclean install installxpi $(CHROME) $(JAR)
TARGETS = all help info jar xpi install clean distclean install installxpi test $(CHROME) $(JAR)
$(TARGETS:%=\%.%):
echo MAKE $* $(@:$*.%=%)
$(MAKE) -C $* $(@:$*.%=%)
@@ -71,6 +74,7 @@ help:
@echo " make dist - uploads to Google Code (this is not for you)"
@echo " make clean - clean up"
@echo " make distclean - clean up more"
@echo " make test - run functional tests"
@echo
@echo "running some commands with V=1 will show more build details"
@@ -158,6 +162,11 @@ distclean:
@echo "More $(NAME) cleanup..."
rm -rf $(BUILD_DIR)
# TODO: generalize log path
test: $(XPI)
@echo "Running functional tests..."
$(MOZMILL) --show-all -l /tmp/dactyl-test.log -b $(HOSTAPP_PATH) --addons $(XPI) -t $(TEST_DIR)
#### xpi
$(XPI): $(CHROME)