1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 TESTADDONS
= source
/test/addons
6 ADDONSRC
= $(srcdir)/$(TESTADDONS
)
7 TESTROOT
= $(CURDIR
)/$(DEPTH
)/_tests
/testing
/mochitest
/jetpack-addon
/$(relativesrcdir
)/$(TESTADDONS
)
9 # Build a list of the test add-ons
10 ADDONS
= $(patsubst $(ADDONSRC
)/%/package.json
,$(TESTADDONS
)/%.xpi
,$(wildcard $(ADDONSRC
)/*/package.json
))
12 INSTALL_TARGETS
+= test_addons
13 test_addons_FILES
= $(ADDONS
)
14 test_addons_DEST
= $(TESTROOT
)
15 test_addons_TARGET
:= misc
17 sinclude
$(topsrcdir
)/config
/rules.mk
19 # This can switch to just zipping the files when native jetpacks land
20 $(TESTADDONS
)/%.xpi
: FORCE
$(call mkdir_deps
,$(CURDIR
)/$(TESTADDONS
)) $(ADDONSRC
)/%
21 $(PYTHON
) $(srcdir)/source
/bin
/cfx xpi
--pkgdir
=$(lastword
$^
) --output-file
=$@
26 $(srcdir)/source
/app-extension \
27 $(srcdir)/source
/bin \
28 $(srcdir)/source
/python-lib \
29 $(srcdir)/source
/test \
30 $(srcdir)/source
/package.json \
31 $(srcdir)/source
/mapping.json \
34 # Remove this once the test harness uses the APIs built into Firefox
35 TEST_FILES
+= $(srcdir)/source
/lib
37 PKG_STAGE
= $(DIST
)/test-stage
39 stage-tests-package
:: $(TEST_FILES
)
40 $(INSTALL
) $^
$(PKG_STAGE
)/jetpack