config/tests/src-simple/Makefile.in

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 #
     2 # This Source Code Form is subject to the terms of the Mozilla Public
     3 # License, v. 2.0. If a copy of the MPL was not distributed with this
     4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     6 LOCALE_SRCDIR = $(srcdir)/l10n
     8 EXTERNALLY_MANAGED_MAKE_FILE := 1
     9 STANDALONE_MAKEFILE := 1
    10 JAR_MANIFEST := $(srcdir)/jar.mn
    12 include $(topsrcdir)/config/config.mk
    14 XPI_NAME = test_jar_mn
    16 DEFINES += \
    17 	-DAB_CD=ab-X-stuff \
    18 	$(NULL)
    20 MY_MANIFEST = $(if $(USE_EXTENSION_MANIFEST), $(FINAL_TARGET)/chrome.manifest, $(FINAL_TARGET)/chrome/test.manifest)
    21 REF_MANIFEST = $(if $(USE_EXTENSION_MANIFEST),chrome.manifest,test.manifest)
    23 check-%::
    24 	if test -d $(FINAL_TARGET); then rm -rf $(FINAL_TARGET); fi;
    25 	$(MAKE) realchrome MOZ_CHROME_FILE_FORMAT=$*
    26 	@echo 'Comparing manifests...'
    27 	@if ! sort $(MY_MANIFEST) | diff --text -U 0 $(srcdir)/../$(REF_MANIFEST).$* - ; then \
    28 	  echo 'TEST-UNEXPECTED-FAIL | config/tests/$(REF_MANIFEST).$* | differing content in manifest!' ; \
    29 	  false; \
    30 	fi
    31 	@if [ $* = 'jar' ]; then \
    32 	  $(UNZIP) -d $(FINAL_TARGET)/chrome/test $(FINAL_TARGET)/chrome/test.jar; \
    33 	fi
    34 	@echo 'Comparing packages...'
    35 	@if ! diff -ur $(srcdir)/../ref-simple $(FINAL_TARGET)/chrome/test ; then\
    36 	  echo 'TEST-UNEXPECTED-FAIL | config/tests/ref-simple | different content in jar' ; \
    37 	  false; \
    38 	fi

mercurial