Bug 827531 - Add a pip requirements.txt file for running B2G unit tests, r=aki
authorJonathan Griffin <jgriffin@mozilla.com>
Wed, 16 Jan 2013 14:14:10 -0800
changeset 119078 62123f318eddb44830d75916a3e7fb5c8cb7527b
parent 119077 a4b246fb54c1547205a50ef574273a4bd78e40bf
child 119079 aa2ffc52aa9b46a56224a329fe1c1eccac7ad04f
push id1298
push usermozilla@noorenberghe.ca
push dateFri, 18 Jan 2013 00:18:22 +0000
treeherderfx-team@b52c02f77cf5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaki
bugs827531
milestone21.0a1
Bug 827531 - Add a pip requirements.txt file for running B2G unit tests, r=aki
b2g/test/b2g-unittest-requirements.txt
testing/testsuite-targets.mk
new file mode 100644
--- /dev/null
+++ b/b2g/test/b2g-unittest-requirements.txt
@@ -0,0 +1,2 @@
+mozprocess==0.8
+mozdevice==0.18
--- a/testing/testsuite-targets.mk
+++ b/testing/testsuite-targets.mk
@@ -378,27 +378,34 @@ endif
 	cd $(PKG_STAGE) && \
 	  zip -rq9D "$(call core_abspath,$(DIST)/$(PKG_PATH)$(TEST_PACKAGE))" \
 	  * -x \*/.mkdir.done
 
 ifeq ($(MOZ_WIDGET_TOOLKIT),android)
 package-tests: stage-android
 endif
 
+ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
+package-tests: stage-b2g
+endif
+
 make-stage-dir:
 	rm -rf $(PKG_STAGE)
 	$(NSINSTALL) -D $(PKG_STAGE)
 	$(NSINSTALL) -D $(PKG_STAGE)/bin
 	$(NSINSTALL) -D $(PKG_STAGE)/bin/components
 	$(NSINSTALL) -D $(PKG_STAGE)/certs
 	$(NSINSTALL) -D $(PKG_STAGE)/jetpack
 	$(NSINSTALL) -D $(PKG_STAGE)/peptest
 	$(NSINSTALL) -D $(PKG_STAGE)/mozbase
 	$(NSINSTALL) -D $(PKG_STAGE)/modules
 
+stage-b2g: make-stage-dir
+	$(NSINSTALL) $(topsrcdir)/b2g/test/b2g-unittest-requirements.txt $(PKG_STAGE)/b2g
+
 robotium-id-map:
 ifeq ($(MOZ_BUILD_APP),mobile/android)
 	$(PYTHON) $(DEPTH)/build/mobile/robocop/parse_ids.py -i $(DEPTH)/mobile/android/base/R.java -o $(DEPTH)/build/mobile/robocop/fennec_ids.txt
 endif
 
 stage-mochitest: robotium-id-map
 stage-mochitest: make-stage-dir
 	$(MAKE) -C $(DEPTH)/testing/mochitest stage-package
@@ -457,16 +464,17 @@ stage-mozbase: make-stage-dir
   mochitest-ipcplugins \
   reftest \
   crashtest \
   xpcshell-tests \
   jstestbrowser \
   peptest \
   package-tests \
   make-stage-dir \
+  stage-b2g \
   stage-mochitest \
   stage-reftest \
   stage-xpcshell \
   stage-jstests \
   stage-android \
   stage-jetpack \
   stage-peptest \
   stage-mozbase \