bug 483062 - figure out how to get crash stacks from xpcshell tests - followup to fix packaged-tests. r=bsmedberg
authorTed Mielczarek <ted.mielczarek@gmail.com>
Thu, 14 May 2009 07:37:40 -0400
changeset 28382 bacdfbdea382d808d259f6d38a7827f9628ff242
parent 28381 62e0aedc34c327b0b420588c0172492bd144adeb
child 28383 5c05c9d7c710b690fb39b50ada3a717259b1ae99
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs483062
milestone1.9.2a1pre
bug 483062 - figure out how to get crash stacks from xpcshell tests - followup to fix packaged-tests. r=bsmedberg
testing/xpcshell/Makefile.in
--- a/testing/xpcshell/Makefile.in
+++ b/testing/xpcshell/Makefile.in
@@ -55,22 +55,28 @@ include $(topsrcdir)/config/rules.mk
 
 # Harness files from the srcdir
 TEST_HARNESS_FILES := \
   runxpcshelltests.py \
   head.js \
   tail.js \
   $(NULL)
 
+# Extra files needed from $(topsrcdir)/build
+EXTRA_BUILD_FILES := \
+  automationutils.py \
+  $(NULL)
+
 # Components / typelibs that don't get packaged with
 # the build, but that we need for the test harness.
 TEST_HARNESS_COMPONENTS := \
   httpd.js \
   $(NULL)
 
 # Rules for staging the necessary harness bits for a test package
 PKG_STAGE = $(DIST)/test-package-stage
 
 stage-package:
 	$(NSINSTALL) -D $(PKG_STAGE)/xpcshell/tests
 	@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
+	@(cd $(topsrcdir)/build && tar $(TAR_CREATE_FLAGS) - $(EXTRA_BUILD_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
 	@(cd $(DEPTH)/_tests/xpcshell/ && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/xpcshell/tests && tar -xf -)
 	@(cd $(DIST)/bin/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)