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/.
6 # Shortcut for mochitest* and xpcshell-tests targets,
7 # replaces 'EXTRA_TEST_ARGS=--test-path=...'.
9 TEST_PATH_ARG
:= --test-path
="$(TEST_PATH)"
10 PEPTEST_PATH_ARG
:= --test-path
="$(TEST_PATH)"
11 IPCPLUGINS_PATH_ARG
:= --test-path
="$(TEST_PATH)"
14 PEPTEST_PATH_ARG
:= --test-path
=_tests
/peptest
/tests
/firefox
/firefox_all.ini
15 IPCPLUGINS_PATH_ARG
:= --test-path
=dom
/plugins
/test
18 # include automation-build.mk to get the path to the binary
19 TARGET_DEPTH
= $(DEPTH
)
20 include $(topsrcdir
)/build
/binary-location.mk
22 SYMBOLS_PATH
:= --symbols-path
=$(DIST
)/crashreporter-symbols
24 # Usage: |make [TEST_PATH=...] [EXTRA_TEST_ARGS=...] mochitest*|.
25 MOCHITESTS
:= mochitest-plain mochitest-chrome mochitest-a11y mochitest-ipcplugins
26 mochitest
:: $(MOCHITESTS
)
28 ifndef TEST_PACKAGE_NAME
29 TEST_PACKAGE_NAME
:= $(ANDROID_PACKAGE_NAME
)
32 RUN_MOCHITEST_B2G_DESKTOP
= \
34 $(PYTHON
) _tests
/testing
/mochitest
/runtestsb2g.py
--autorun
--close-when-done \
35 --console-level
=INFO
--log-file
=.
/$@.log
--file-level
=INFO \
36 --desktop
--profile
${GAIA_PROFILE_DIR} \
37 --failure-file
=$(call core_abspath
,_tests
/testing
/mochitest
/makefailures.json
) \
38 $(TEST_PATH_ARG
) $(EXTRA_TEST_ARGS
)
42 $(PYTHON
) _tests
/testing
/mochitest
/runtests.py
--autorun
--close-when-done \
43 --console-level
=INFO
--log-file
=.
/$@.log
--file-level
=INFO \
44 --failure-file
=$(call core_abspath
,_tests
/testing
/mochitest
/makefailures.json
) \
45 --testing-modules-dir
=$(call core_abspath
,_tests
/modules
) \
46 --extra-profile-file
=$(DIST
)/plugins \
47 --build-info-json
=$(call core_abspath
,$(DEPTH
)/mozinfo.json
) \
48 $(SYMBOLS_PATH
) $(TEST_PATH_ARG
) $(EXTRA_TEST_ARGS
)
52 $(PYTHON
) _tests
/testing
/mochitest
/runtests.py
--autorun
--close-when-done \
53 --console-level
=INFO
--log-file
=.
/$@.log
--file-level
=INFO \
54 --run-only-tests
=makefailures.json \
55 --testing-modules-dir
=$(call core_abspath
,_tests
/modules
) \
56 --extra-profile-file
=$(DIST
)/plugins \
57 --build-info-json
=$(call core_abspath
,$(DEPTH
)/mozinfo.json
) \
58 $(SYMBOLS_PATH
) $(TEST_PATH_ARG
) $(EXTRA_TEST_ARGS
)
60 RUN_MOCHITEST_REMOTE
= \
62 $(PYTHON
) _tests
/testing
/mochitest
/runtestsremote.py
--autorun
--close-when-done \
63 --console-level
=INFO
--log-file
=.
/$@.log
--file-level
=INFO
$(DM_FLAGS
) --dm_trans
=$(DM_TRANS
) \
64 --app
=$(TEST_PACKAGE_NAME
) --deviceIP
=${TEST_DEVICE} --xre-path
=${MOZ_HOST_BIN} \
65 --testing-modules-dir
=$(call core_abspath
,_tests
/modules
) --httpd-path
=. \
66 $(SYMBOLS_PATH
) $(TEST_PATH_ARG
) $(EXTRA_TEST_ARGS
)
68 RUN_MOCHITEST_ROBOCOP
= \
70 $(PYTHON
) _tests
/testing
/mochitest
/runtestsremote.py \
71 --robocop-apk
=$(DEPTH
)/build
/mobile
/robocop
/robocop-debug.apk \
72 --robocop-ids
=$(DEPTH
)/mobile
/android
/base
/fennec_ids.txt \
73 --robocop-ini
=$(DEPTH
)/build
/mobile
/robocop
/robocop.ini \
74 --console-level
=INFO
--log-file
=.
/$@.log
--file-level
=INFO
$(DM_FLAGS
) --dm_trans
=$(DM_TRANS
) \
75 --app
=$(TEST_PACKAGE_NAME
) --deviceIP
=${TEST_DEVICE} --xre-path
=${MOZ_HOST_BIN} \
77 $(SYMBOLS_PATH
) $(TEST_PATH_ARG
) $(EXTRA_TEST_ARGS
)
79 ifndef NO_FAIL_ON_TEST_ERRORS
80 define check_test_error_internal
81 @errors
=`grep "TEST-UNEXPECTED-" $@.log` ;\
82 if
test "$$errors" ; then \
85 $(if
$(1),echo
$(1)) \
89 CHECK_TEST_ERROR
= $(call check_test_error_internal
)
90 CHECK_TEST_ERROR_RERUN
= $(call check_test_error_internal
,"To rerun your failures please run 'make $@-rerun-failures'")
93 mochitest-remote
: DM_TRANS?
=adb
95 @if
[ ! -f
${MOZ_HOST_BIN}/xpcshell
]; then \
96 echo
"please prepare your host with the environment variable MOZ_HOST_BIN"; \
97 elif
[ "${TEST_DEVICE}" = "" -a
"$(DM_TRANS)" != "adb" ]; then \
98 echo
"please prepare your host with the environment variable TEST_DEVICE"; \
100 $(RUN_MOCHITEST_REMOTE
); \
103 mochitest-robotium
: mochitest-robocop
104 @echo
"mochitest-robotium is deprecated -- please use mochitest-robocop"
106 mochitest-robocop
: DM_TRANS?
=adb
108 @if
[ ! -f
${MOZ_HOST_BIN}/xpcshell
]; then \
109 echo
"please prepare your host with the environment variable MOZ_HOST_BIN"; \
110 elif
[ "${TEST_DEVICE}" = "" -a
"$(DM_TRANS)" != "adb" ]; then \
111 echo
"please prepare your host with the environment variable TEST_DEVICE"; \
113 $(RUN_MOCHITEST_ROBOCOP
); \
118 @if
[ "${GAIA_PROFILE_DIR}" = "" ]; then \
119 echo
"please specify the GAIA_PROFILE_DIR env variable"; \
121 $(RUN_MOCHITEST_B2G_DESKTOP
); \
122 $(CHECK_TEST_ERROR_RERUN
); \
127 $(CHECK_TEST_ERROR_RERUN
)
130 mochitest-plain-rerun-failures
:
132 $(CHECK_TEST_ERROR_RERUN
)
134 # Allow mochitest-1 ... mochitest-5 for developer ease
135 mochitest-1 mochitest-2 mochitest-3 mochitest-4 mochitest-5
: mochitest-
%:
136 echo
"mochitest: $* / 5"
137 $(RUN_MOCHITEST
) --chunk-by-dir
=4 --total-chunks
=5 --this-chunk
=$*
141 $(RUN_MOCHITEST
) --chrome
145 $(RUN_MOCHITEST
) --a11y
148 mochitest-ipcplugins
:
149 ifeq (Darwin
,$(OS_ARCH
))
150 ifeq (i386
,$(TARGET_CPU
))
151 $(RUN_MOCHITEST
) --setpref
=dom.ipc.plugins.enabled.i386.
test.plugin
=false
$(IPCPLUGINS_PATH_ARG
)
153 ifeq (x86_64
,$(TARGET_CPU
))
154 $(RUN_MOCHITEST
) --setpref
=dom.ipc.plugins.enabled.x86_64.
test.plugin
=false
$(IPCPLUGINS_PATH_ARG
)
156 ifeq (powerpc
,$(TARGET_CPU
))
157 $(RUN_MOCHITEST
) --setpref
=dom.ipc.plugins.enabled.ppc.
test.plugin
=false
$(IPCPLUGINS_PATH_ARG
)
160 $(RUN_MOCHITEST
) --setpref
=dom.ipc.plugins.enabled
=false
--test-path
=dom
/plugins
/test
164 ifeq ($(OS_ARCH
),Darwin
)
165 webapprt_stub_path
= $(TARGET_DIST
)/$(MOZ_MACBUNDLE_NAME
)/Contents
/MacOS
/webapprt-stub
$(BIN_SUFFIX
)
167 ifeq ($(OS_ARCH
),WINNT
)
168 webapprt_stub_path
= $(TARGET_DIST
)/bin
/webapprt-stub
$(BIN_SUFFIX
)
170 ifeq ($(MOZ_WIDGET_TOOLKIT
),gtk2
)
171 webapprt_stub_path
= $(TARGET_DIST
)/bin
/webapprt-stub
$(BIN_SUFFIX
)
174 ifdef webapprt_stub_path
175 webapprt-test-content
:
176 $(RUN_MOCHITEST
) --webapprt-content
--appname
$(webapprt_stub_path
)
178 webapprt-test-chrome
:
179 $(RUN_MOCHITEST
) --webapprt-chrome
--appname
$(webapprt_stub_path
) --browser-arg
-test-mode
183 # Usage: |make [EXTRA_TEST_ARGS=...] *test|.
184 RUN_REFTEST
= rm -f .
/$@.log
&& $(PYTHON
) _tests
/reftest
/runreftest.py \
185 --extra-profile-file
=$(DIST
)/plugins \
186 $(SYMBOLS_PATH
) $(EXTRA_TEST_ARGS
) $(1) | tee .
/$@.log
188 REMOTE_REFTEST
= rm -f .
/$@.log
&& $(PYTHON
) _tests
/reftest
/remotereftest.py \
189 --dm_trans
=$(DM_TRANS
) --ignore-window-size \
190 --app
=$(TEST_PACKAGE_NAME
) --deviceIP
=${TEST_DEVICE} --xre-path
=${MOZ_HOST_BIN} \
191 --httpd-path
=_tests
/reftest
/reftest
/components \
192 $(SYMBOLS_PATH
) $(EXTRA_TEST_ARGS
) "$(1)" | tee .
/$@.log
194 RUN_REFTEST_B2G
= rm -f .
/$@.log
&& $(PYTHON
) _tests
/reftest
/runreftestb2g.py \
195 --remote-webserver
=10.0.2.2 --b2gpath
=${B2G_PATH} --adbpath
=${ADB_PATH} \
196 --xre-path
=${MOZ_HOST_BIN} $(SYMBOLS_PATH
) --ignore-window-size \
197 --httpd-path
=_tests
/reftest
/reftest
/components \
198 $(EXTRA_TEST_ARGS
) "$(1)" | tee .
/$@.log
200 ifeq ($(OS_ARCH
),WINNT
) #{
201 # GPU-rendered shadow layers are unsupported here
202 OOP_CONTENT
= --setpref
=browser.tabs.remote
=true
--setpref
=layers.acceleration.disabled
=true
205 OOP_CONTENT
= --setpref
=browser.tabs.remote
=true
206 GPU_RENDERING
= --setpref
=layers.acceleration.force-enabled
=true
209 reftest
: TEST_PATH?
=layout
/reftests
/reftest.list
211 $(call RUN_REFTEST
,"$(topsrcdir)/$(TEST_PATH)")
214 reftest-remote
: TEST_PATH?
=layout
/reftests
/reftest.list
215 reftest-remote
: DM_TRANS?
=adb
217 @if
[ ! -f
${MOZ_HOST_BIN}/xpcshell
]; then \
218 echo
"please prepare your host with the environment variable MOZ_HOST_BIN"; \
219 elif
[ "${TEST_DEVICE}" = "" -a
"$(DM_TRANS)" != "adb" ]; then \
220 echo
"please prepare your host with the environment variable TEST_DEVICE"; \
222 ln
-s
$(abspath
$(topsrcdir
)) _tests
/reftest
/tests
; \
223 $(call REMOTE_REFTEST
,tests
/$(TEST_PATH
)); \
224 $(CHECK_TEST_ERROR
); \
227 reftest-b2g
: TEST_PATH?
=layout
/reftests
/reftest.list
229 @if
[ ! -f
${MOZ_HOST_BIN}/xpcshell
]; then \
230 echo
"please set the MOZ_HOST_BIN environment variable"; \
231 elif
[ "${B2G_PATH}" = "" -o
"${ADB_PATH}" = "" ]; then \
232 echo
"please set the B2G_PATH and ADB_PATH environment variables"; \
234 ln
-s
$(abspath
$(topsrcdir
)) _tests
/reftest
/tests
; \
235 if
[ "${REFTEST_PATH}" != "" ]; then \
236 $(call RUN_REFTEST_B2G
,tests
/${REFTEST_PATH}); \
238 $(call RUN_REFTEST_B2G
,tests
/$(TEST_PATH
)); \
240 $(CHECK_TEST_ERROR
); \
243 reftest-ipc
: TEST_PATH?
=layout
/reftests
/reftest.list
245 $(call RUN_REFTEST
,"$(topsrcdir)/$(TEST_PATH)" $(OOP_CONTENT
))
248 reftest-ipc-gpu
: TEST_PATH?
=layout
/reftests
/reftest.list
250 $(call RUN_REFTEST
,"$(topsrcdir)/$(TEST_PATH)" $(OOP_CONTENT
) $(GPU_RENDERING
))
253 crashtest
: TEST_PATH?
=testing
/crashtest
/crashtests.list
255 $(call RUN_REFTEST
,"$(topsrcdir)/$(TEST_PATH)")
258 crashtest-ipc
: TEST_PATH?
=testing
/crashtest
/crashtests.list
260 $(call RUN_REFTEST
,"$(topsrcdir)/$(TEST_PATH)" $(OOP_CONTENT
))
263 crashtest-ipc-gpu
: TEST_PATH?
=testing
/crashtest
/crashtests.list
265 $(call RUN_REFTEST
,"$(topsrcdir)/$(TEST_PATH)" $(OOP_CONTENT
) $(GPU_RENDERING
))
268 jstestbrowser
: TESTS_PATH?
=test-package-stage
/jsreftest
/tests
/
270 $(MAKE
) -C
$(DEPTH
)/config
271 $(MAKE
) -C
$(DEPTH
)/js
/src
/config
272 $(MAKE
) stage-jstests
273 $(call RUN_REFTEST
,"$(DIST)/$(TESTS_PATH)/jstests.list" --extra-profile-file
=$(DIST
)/test-package-stage
/jsreftest
/tests
/user.js
)
276 GARBAGE
+= $(addsuffix .log
,$(MOCHITESTS
) reftest crashtest jstestbrowser
)
278 # Execute all xpcshell tests in the directories listed in the manifest.
279 # See also config/rules.mk 'xpcshell-tests' target for local execution.
280 # Usage: |make [TEST_PATH=...] [EXTRA_TEST_ARGS=...] xpcshell-tests|.
282 $(PYTHON
) -u
$(topsrcdir
)/config
/pythonpath.py \
284 -I
$(topsrcdir
)/build \
285 -I
$(DEPTH
)/_tests
/mozbase
/mozinfo \
286 $(topsrcdir
)/testing
/xpcshell
/runxpcshelltests.py \
287 --manifest
=$(DEPTH
)/_tests
/xpcshell
/xpcshell.ini \
288 --build-info-json
=$(DEPTH
)/mozinfo.json \
290 --test-plugin-path
="$(DIST)/plugins" \
291 --tests-root-dir
=$(call core_abspath
,_tests
/xpcshell
) \
292 --testing-modules-dir
=$(call core_abspath
,_tests
/modules
) \
293 --xunit-file
=$(call core_abspath
,_tests
/xpcshell
/results.xml
) \
294 --xunit-suite-name
=xpcshell \
296 $(TEST_PATH_ARG
) $(EXTRA_TEST_ARGS
) \
297 $(LIBXUL_DIST
)/bin
/xpcshell
301 $(PYTHON
) -u
$(topsrcdir
)/config
/pythonpath.py \
303 -I
$(topsrcdir
)/build \
304 $(topsrcdir
)/testing
/xpcshell
/runtestsb2g.py \
305 --manifest
=$(DEPTH
)/_tests
/xpcshell
/xpcshell.ini \
306 --build-info-json
=$(DEPTH
)/mozinfo.json \
311 $$EXTRA_XPCSHELL_ARGS \
312 --b2gpath
=${B2G_HOME} \
313 $(TEST_PATH_ARG
) $(EXTRA_TEST_ARGS
)
315 xpcshell-tests-b2g
: ADB_PATH?
=$(shell which adb
)
317 @if
[ "${B2G_HOME}" = "" ]; then \
318 echo
"Please set the B2G_HOME variable"; exit
1; \
319 elif
[ ! -f
"${ADB_PATH}" ]; then \
320 echo
"Please set the ADB_PATH variable"; exit
1; \
321 elif
[ "${EMULATOR}" != "" ]; then \
322 EXTRA_XPCSHELL_ARGS
=--emulator
=${EMULATOR}; \
323 $(call B2G_XPCSHELL
); \
326 EXTRA_XPCSHELL_ARGS
=--address
=localhost
:2828; \
327 $(call B2G_XPCSHELL
); \
331 xpcshell-tests-remote
: DM_TRANS?
=adb
332 xpcshell-tests-remote
:
333 @if
[ "${TEST_DEVICE}" != "" -o
"$(DM_TRANS)" = "adb" ]; \
334 then
$(PYTHON
) -u
$(topsrcdir
)/testing
/xpcshell
/remotexpcshelltests.py \
335 --manifest
=$(DEPTH
)/_tests
/xpcshell
/xpcshell_android.ini \
336 --build-info-json
=$(DEPTH
)/mozinfo.json \
338 --testing-modules-dir
=$(call core_abspath
,_tests
/modules
) \
339 --dm_trans
=$(DM_TRANS
) \
340 --deviceIP
=${TEST_DEVICE} \
343 $(TEST_PATH_ARG
) $(EXTRA_TEST_ARGS
); \
344 $(CHECK_TEST_ERROR
); \
346 echo
"please prepare your host with environment variables for TEST_DEVICE"; \
349 # Runs peptest, for usage see: https://developer.mozilla.org/en/Peptest#Running_Tests
352 $(PYTHON
) _tests
/peptest
/runtests.py
--binary
=$(browser_path
) \
353 $(PEPTEST_PATH_ARG
) \
354 --proxy
=_tests
/peptest
/tests
/firefox
/server-locations.txt \
356 --server-path
=_tests
/peptest
/tests
/firefox
/server \
357 --log-file
=.
/$@.log
$(SYMBOLS_PATH
) $(EXTRA_TEST_ARGS
)
363 REMOTE_CPPUNITTESTS
= \
364 $(PYTHON
) -u
$(topsrcdir
)/testing
/remotecppunittests.py \
365 --xre-path
=$(DEPTH
)/dist/bin \
366 --localLib
=$(DEPTH
)/dist/fennec \
367 --dm_trans
=$(DM_TRANS
) \
368 --deviceIP
=${TEST_DEVICE} \
369 $(TEST_PATH
) $(EXTRA_TEST_ARGS
)
371 # Usage: |make [TEST_PATH=...] [EXTRA_TEST_ARGS=...] cppunittests-remote|.
372 cppunittests-remote
: DM_TRANS?
=adb
374 @if
[ "${TEST_DEVICE}" != "" -o
"$(DM_TRANS)" = "adb" ]; \
375 then
$(call REMOTE_CPPUNITTESTS
); \
377 echo
"please prepare your host with environment variables for TEST_DEVICE"; \
381 $(PYTHON
) $(topsrcdir
)/addon-sdk
/source
/bin
/cfx
-b
$(browser_path
) --parseable testpkgs
384 # -- --trace-malloc malloc.log --shutdown-leaks=sdleak.log
386 $(PYTHON
) _leaktest
/leaktest.py
$(LEAKTEST_ARGS
)
389 $(PYTHON
) $(topsrcdir
)/build
/pgo
/profileserver.py
$(EXTRA_TEST_ARGS
)
391 # Package up the tests and test harnesses
392 include $(topsrcdir
)/toolkit
/mozapps
/installer
/package-name.mk
394 ifndef UNIVERSAL_BINARY
395 PKG_STAGE
= $(DIST
)/test-package-stage
411 # This staging area has been built for us by universal/flight.mk
412 PKG_STAGE
= $(DIST
)/universal
/test-package-stage
416 @
rm -f
"$(DIST)/$(PKG_PATH)$(TEST_PACKAGE)"
417 ifndef UNIVERSAL_BINARY
418 $(NSINSTALL
) -D
$(DIST
)/$(PKG_PATH
)
420 #building tests.jar (bug 543800) fails on unify, so we build tests.jar after unify is run
421 $(MAKE
) -C
$(DEPTH
)/testing
/mochitest stage-chromejar PKG_STAGE
=$(DIST
)/universal
423 find
$(PKG_STAGE
) -name
"*.pyc" -exec
rm {} \
;
425 zip
-rq9D
"$(call core_abspath,$(DIST)/$(PKG_PATH)$(TEST_PACKAGE))" \
428 ifeq ($(MOZ_WIDGET_TOOLKIT
),android
)
429 package-tests
: stage-android
432 ifeq ($(MOZ_WIDGET_TOOLKIT
),gonk
)
433 package-tests
: stage-b2g
438 $(NSINSTALL
) -D
$(PKG_STAGE
)
439 $(NSINSTALL
) -D
$(PKG_STAGE
)/bin
440 $(NSINSTALL
) -D
$(PKG_STAGE
)/bin
/components
441 $(NSINSTALL
) -D
$(PKG_STAGE
)/certs
442 $(NSINSTALL
) -D
$(PKG_STAGE
)/config
443 $(NSINSTALL
) -D
$(PKG_STAGE
)/jetpack
444 $(NSINSTALL
) -D
$(PKG_STAGE
)/peptest
445 $(NSINSTALL
) -D
$(PKG_STAGE
)/mozbase
446 $(NSINSTALL
) -D
$(PKG_STAGE
)/modules
448 stage-b2g
: make-stage-dir
449 $(NSINSTALL
) $(topsrcdir
)/b2g
/test/b2g-unittest-requirements.txt
$(PKG_STAGE
)/b2g
451 stage-config
: make-stage-dir
452 $(NSINSTALL
) $(topsrcdir
)/testing
/config
/mozharness_config.py
$(PKG_STAGE
)/config
454 stage-mochitest
: make-stage-dir
455 $(MAKE
) -C
$(DEPTH
)/testing
/mochitest stage-package
456 ifeq ($(MOZ_BUILD_APP
),mobile
/android
)
457 $(NSINSTALL
) $(DEPTH
)/mobile
/android
/base
/fennec_ids.txt
$(PKG_STAGE
)/mochitest
460 stage-reftest
: make-stage-dir
461 $(MAKE
) -C
$(DEPTH
)/layout
/tools
/reftest stage-package
463 stage-xpcshell
: make-stage-dir
464 $(MAKE
) -C
$(DEPTH
)/testing
/xpcshell stage-package
466 stage-jstests
: make-stage-dir
467 $(MAKE
) -C
$(DEPTH
)/js
/src
/tests stage-package
469 stage-android
: make-stage-dir
470 ifdef MOZ_ENABLE_SZIP
471 # Tinderbox scripts are not unzipping everything, so the file needs to be in a directory it unzips
472 $(NSINSTALL
) $(DIST
)/host
/bin
/szip
$(PKG_STAGE
)/bin
/host
474 $(NSINSTALL
) $(DEPTH
)/build
/mobile
/sutagent
/android
/sutAgentAndroid.apk
$(PKG_STAGE
)/bin
475 $(NSINSTALL
) $(DEPTH
)/build
/mobile
/sutagent
/android
/watcher
/Watcher.apk
$(PKG_STAGE
)/bin
476 $(NSINSTALL
) $(DEPTH
)/build
/mobile
/sutagent
/android
/fencp
/FenCP.apk
$(PKG_STAGE
)/bin
477 $(NSINSTALL
) $(DEPTH
)/build
/mobile
/sutagent
/android
/ffxcp
/FfxCP.apk
$(PKG_STAGE
)/bin
479 stage-jetpack
: make-stage-dir
480 $(MAKE
) -C
$(DEPTH
)/addon-sdk stage-tests-package
482 stage-peptest
: make-stage-dir
483 $(MAKE
) -C
$(DEPTH
)/testing
/peptest stage-package
485 stage-tps
: make-stage-dir
486 $(NSINSTALL
) -D
$(PKG_STAGE
)/tps
/tests
487 @
(cd
$(topsrcdir
)/testing
/tps
&& tar $(TAR_CREATE_FLAGS
) - *) |
(cd
$(PKG_STAGE
)/tps
&& tar -xf
-)
488 @
(cd
$(topsrcdir
)/services
/sync
/tps
&& tar $(TAR_CREATE_FLAGS
) - *) |
(cd
$(PKG_STAGE
)/tps
&& tar -xf
-)
489 (cd
$(topsrcdir
)/services
/sync
/tests
/tps
&& tar $(TAR_CREATE_FLAGS
) - *) |
(cd
$(PKG_STAGE
)/tps
/tests
&& tar -xf
-)
491 stage-modules
: make-stage-dir
492 $(NSINSTALL
) -D
$(PKG_STAGE
)/modules
493 cp
-RL
$(DEPTH
)/_tests
/modules
$(PKG_STAGE
)
495 CPP_UNIT_TEST_BINS
=$(wildcard $(DIST
)/cppunittests
/*)
498 $(NSINSTALL
) -D
$(PKG_STAGE
)/cppunittests
500 $(foreach bin
,$(CPP_UNIT_TEST_BINS
),$(OBJCOPY
) --strip-unneeded
$(bin
) $(bin
:$(DIST
)/%=$(PKG_STAGE
)/%);)
502 cp
-RL
$(DIST
)/cppunittests
$(PKG_STAGE
)
504 $(NSINSTALL
) $(topsrcdir
)/testing
/runcppunittests.py
$(PKG_STAGE
)/cppunittests
505 $(NSINSTALL
) $(topsrcdir
)/testing
/remotecppunittests.py
$(PKG_STAGE
)/cppunittests
507 MARIONETTE_DIR
=$(PKG_STAGE
)/marionette
508 stage-marionette
: make-stage-dir
509 $(NSINSTALL
) -D
$(MARIONETTE_DIR
)/tests
510 @
(cd
$(topsrcdir
)/testing
/marionette
/client
&& tar --exclude marionette
/tests
$(TAR_CREATE_FLAGS
) - *) |
(cd
$(MARIONETTE_DIR
) && tar -xf
-)
511 $(PYTHON
) $(topsrcdir
)/testing
/marionette
/client
/marionette
/tests
/print-manifest-dirs.py \
513 $(topsrcdir
)/testing
/marionette
/client
/marionette
/tests
/unit-tests.ini \
514 |
(cd
$(topsrcdir
) && xargs
tar $(TAR_CREATE_FLAGS
) -) \
515 |
(cd
$(MARIONETTE_DIR
)/tests
&& tar -xf
-)
517 stage-mozbase
: make-stage-dir
518 $(MAKE
) -C
$(DEPTH
)/testing
/mozbase stage-package
524 mochitest-ipcplugins \