Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | # Run selftests |
michael@0 | 7 | PYTHON_UNIT_TESTS := \ |
michael@0 | 8 | selftest.py |
michael@0 | 9 | $(NULL) |
michael@0 | 10 | |
michael@0 | 11 | include $(topsrcdir)/config/rules.mk |
michael@0 | 12 | |
michael@0 | 13 | # Harness files from the srcdir |
michael@0 | 14 | TEST_HARNESS_FILES := \ |
michael@0 | 15 | runxpcshelltests.py \ |
michael@0 | 16 | remotexpcshelltests.py \ |
michael@0 | 17 | runtestsb2g.py \ |
michael@0 | 18 | head.js \ |
michael@0 | 19 | node-spdy \ |
michael@0 | 20 | moz-spdy \ |
michael@0 | 21 | node-http2 \ |
michael@0 | 22 | moz-http2 \ |
michael@0 | 23 | $(NULL) |
michael@0 | 24 | |
michael@0 | 25 | # Extra files needed from $(topsrcdir)/build |
michael@0 | 26 | EXTRA_BUILD_FILES := \ |
michael@0 | 27 | automationutils.py \ |
michael@0 | 28 | manifestparser.py \ |
michael@0 | 29 | $(NULL) |
michael@0 | 30 | |
michael@0 | 31 | MOZDEVICE_FILES := \ |
michael@0 | 32 | devicemanager.py \ |
michael@0 | 33 | devicemanagerADB.py \ |
michael@0 | 34 | devicemanagerSUT.py \ |
michael@0 | 35 | Zeroconf.py \ |
michael@0 | 36 | $(NULL) |
michael@0 | 37 | |
michael@0 | 38 | # Components / typelibs that don't get packaged with |
michael@0 | 39 | # the build, but that we need for the test harness. |
michael@0 | 40 | TEST_HARNESS_COMPONENTS := \ |
michael@0 | 41 | httpd.js \ |
michael@0 | 42 | httpd.manifest \ |
michael@0 | 43 | $(NULL) |
michael@0 | 44 | |
michael@0 | 45 | MOZINFO_FILES := \ |
michael@0 | 46 | mozinfo.py |
michael@0 | 47 | |
michael@0 | 48 | # Rules for staging the necessary harness bits for a test package |
michael@0 | 49 | PKG_STAGE = $(DIST)/test-package-stage |
michael@0 | 50 | |
michael@0 | 51 | libs:: |
michael@0 | 52 | $(INSTALL) $(srcdir)/xpcshell_b2g.ini $(DEPTH)/_tests/xpcshell |
michael@0 | 53 | $(INSTALL) $(srcdir)/xpcshell_android.ini $(DEPTH)/_tests/xpcshell |
michael@0 | 54 | cp $(DEPTH)/_tests/xpcshell/xpcshell.ini $(DEPTH)/_tests/xpcshell/all-test-dirs.list |
michael@0 | 55 | |
michael@0 | 56 | stage-package: |
michael@0 | 57 | $(NSINSTALL) -D $(PKG_STAGE)/xpcshell/tests |
michael@0 | 58 | @(cd $(topsrcdir)/testing/mozbase/mozinfo/mozinfo && tar $(TAR_CREATE_FLAGS) - $(MOZINFO_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -) |
michael@0 | 59 | @(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -) |
michael@0 | 60 | @(cd $(topsrcdir)/build && tar $(TAR_CREATE_FLAGS) - $(EXTRA_BUILD_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -) |
michael@0 | 61 | @cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/xpcshell |
michael@0 | 62 | @cp $(DEPTH)/build/automation.py $(PKG_STAGE)/xpcshell |
michael@0 | 63 | @(cd $(topsrcdir)/testing/mozbase/mozdevice/mozdevice && tar $(TAR_CREATE_FLAGS) - $(MOZDEVICE_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -) |
michael@0 | 64 | (cd $(DEPTH)/_tests/xpcshell/ && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/xpcshell/tests && tar -xf -) |
michael@0 | 65 | @(cd $(DIST)/bin/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -) |