config/tests/src-simple/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config/tests/src-simple/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +#
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +LOCALE_SRCDIR = $(srcdir)/l10n
    1.10 +
    1.11 +EXTERNALLY_MANAGED_MAKE_FILE := 1
    1.12 +STANDALONE_MAKEFILE := 1
    1.13 +JAR_MANIFEST := $(srcdir)/jar.mn
    1.14 +
    1.15 +include $(topsrcdir)/config/config.mk
    1.16 +
    1.17 +XPI_NAME = test_jar_mn
    1.18 +
    1.19 +DEFINES += \
    1.20 +	-DAB_CD=ab-X-stuff \
    1.21 +	$(NULL)
    1.22 +
    1.23 +MY_MANIFEST = $(if $(USE_EXTENSION_MANIFEST), $(FINAL_TARGET)/chrome.manifest, $(FINAL_TARGET)/chrome/test.manifest)
    1.24 +REF_MANIFEST = $(if $(USE_EXTENSION_MANIFEST),chrome.manifest,test.manifest)
    1.25 +
    1.26 +check-%::
    1.27 +	if test -d $(FINAL_TARGET); then rm -rf $(FINAL_TARGET); fi;
    1.28 +	$(MAKE) realchrome MOZ_CHROME_FILE_FORMAT=$*
    1.29 +	@echo 'Comparing manifests...'
    1.30 +	@if ! sort $(MY_MANIFEST) | diff --text -U 0 $(srcdir)/../$(REF_MANIFEST).$* - ; then \
    1.31 +	  echo 'TEST-UNEXPECTED-FAIL | config/tests/$(REF_MANIFEST).$* | differing content in manifest!' ; \
    1.32 +	  false; \
    1.33 +	fi
    1.34 +	@if [ $* = 'jar' ]; then \
    1.35 +	  $(UNZIP) -d $(FINAL_TARGET)/chrome/test $(FINAL_TARGET)/chrome/test.jar; \
    1.36 +	fi
    1.37 +	@echo 'Comparing packages...'
    1.38 +	@if ! diff -ur $(srcdir)/../ref-simple $(FINAL_TARGET)/chrome/test ; then\
    1.39 +	  echo 'TEST-UNEXPECTED-FAIL | config/tests/ref-simple | different content in jar' ; \
    1.40 +	  false; \
    1.41 +	fi

mercurial