Skip to content
Browse files

Bug 817040 - Add a build target to package gaia ui tests, r=mwu, a=te…

…sts-only
  • Loading branch information...
1 parent 69bbfcf commit f6a4722ea0adf4716c630e2475cb422d6821a046 @jonallengriffin jonallengriffin 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 f6a4722

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