Skip to content
Browse files

Merge pull request #6870 from jonallengriffin/bug817040

Bug 817040 - Add a build target to package gaia ui tests, r=mwu, a=tests...
  • Loading branch information...
2 parents b866237 + f6a4722 commit f3973d3d9834ed851b9987efb2a8ef9dbd7b32a4 @michaelwu michaelwu committed Dec 6, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 Android.mk
View
10 Android.mk
@@ -45,6 +45,16 @@ ifneq ($(GAIA_PROFILE_INSTALL_PARENT), $(GAIA_APP_INSTALL_PARENT))
mv $(GAIA_PROFILE_INSTALL_PARENT)/webapps $(GAIA_APP_INSTALL_PARENT)
endif
+GAIA_TESTS_STAGE := $(GAIA_PATH)/tests-stage
+
+.PHONY: gaia-tests-zip
+gaia-tests-zip:
+ rm -rf $(GAIA_TESTS_STAGE)
+ mkdir -p $(GAIA_TESTS_STAGE)/gaiatest/gaiatest/atoms
+ @(cd $(GAIA_PATH)/tests/python && tar -chf - *) | (cd $(GAIA_TESTS_STAGE)/gaiatest && tar -xf -)
+ @(cd $(GAIA_PATH)/tests/atoms && tar -chf - *) | (cd $(GAIA_TESTS_STAGE)/gaiatest/gaiatest/atoms && tar -xf -)
+ (cd $(GAIA_TESTS_STAGE) && zip -r $(GAIA_PATH)/gaia-tests.zip *)
+
.PHONY: $(LOCAL_PATH)/profile.tar.gz
$(LOCAL_PATH)/profile.tar.gz:
ifeq ($(CLEAN_PROFILE), 1)

0 comments on commit f3973d3

Please sign in to comment.
Something went wrong with that request. Please try again.