michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: PYTHON_UNIT_TESTS := \ michael@0: test.py \ michael@0: $(NULL) michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: # Harness packages from the srcdir michael@0: MOZBASE_PACKAGES = \ michael@0: manifestdestiny \ michael@0: mozcrash \ michael@0: mozfile \ michael@0: mozhttpd \ michael@0: mozinfo \ michael@0: mozinstall \ michael@0: mozlog \ michael@0: mozprocess \ michael@0: mozprofile \ michael@0: mozrunner \ michael@0: mozdevice \ michael@0: moznetwork \ michael@0: mozsystemmonitor \ michael@0: moztest \ michael@0: mozversion \ michael@0: $(NULL) michael@0: michael@0: MOZBASE_EXTRAS = \ michael@0: setup_development.py \ michael@0: test.py \ michael@0: test-manifest.ini \ michael@0: $(NULL) michael@0: michael@0: _DEST_DIR = $(DEPTH)/_tests/mozbase michael@0: libs:: $(MOZBASE_PACKAGES) michael@0: $(PYTHON) $(topsrcdir)/config/nsinstall.py $^ $(_DEST_DIR) michael@0: libs:: $(MOZBASE_EXTRAS) michael@0: $(PYTHON) $(topsrcdir)/config/nsinstall.py $^ $(_DEST_DIR) michael@0: michael@0: stage-package: PKG_STAGE = $(DIST)/test-package-stage michael@0: stage-package: michael@0: $(NSINSTALL) -D $(PKG_STAGE)/mozbase michael@0: @(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(MOZBASE_PACKAGES)) | (cd $(PKG_STAGE)/mozbase && tar -xf -) michael@0: @(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(MOZBASE_EXTRAS)) | (cd $(PKG_STAGE)/mozbase && tar -xf -)