components/python/twisted-web2/Makefile
changeset 3771 f82d2dc12afc
parent 1948 2d1537e7942d
child 3817 30b42c38bbc4
equal deleted inserted replaced
3770:ca450a806cc1 3771:f82d2dc12afc
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		TwistedWeb2
    28 COMPONENT_NAME=		TwistedWeb2
    42 
    42 
    43 include $(WS_TOP)/make-rules/prep.mk
    43 include $(WS_TOP)/make-rules/prep.mk
    44 include $(WS_TOP)/make-rules/setup.py.mk
    44 include $(WS_TOP)/make-rules/setup.py.mk
    45 include $(WS_TOP)/make-rules/ips.mk
    45 include $(WS_TOP)/make-rules/ips.mk
    46 
    46 
       
    47 # Master test results are the same for all versions of Python, so override
       
    48 # here, rather than create multiple identical master files.
       
    49 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
       
    50 
       
    51 # Use nawk to just extract lines:
       
    52 # containing "[OK]" or "[ERROR]"
       
    53 # starting with "Ran . tests in"
       
    54 # starting with "FAILED" or "PASSED"
       
    55 # and stripping out the random portions (like time to complete the tests).
       
    56 COMPONENT_TEST_TRANSFORMER =    $(NAWK)
       
    57 COMPONENT_TEST_TRANSFORMS = "'/\[ERROR\]/ { print }; /\[OK\]/ { print }; /^Ran / { sub(\" tests in .+s\", \" tests in\"); print }; /^FAILED / { print }; /^PASSED / { print };'"
       
    58 
       
    59 COMPONENT_TEST_DIR =	$(COMPONENT_SRC)
       
    60 COMPONENT_TEST_CMD =	/usr/demo/twisted-python$(PYTHON_VERSION)/trial
       
    61 COMPONENT_TEST_ARGS =	twisted/web2/test/test_xmlrpc.py
       
    62 
    47 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    63 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    48 
    64 
    49 # common targets
       
    50 build:          $(BUILD_NO_ARCH)
    65 build:          $(BUILD_NO_ARCH)
    51 
    66 
    52 install:        $(INSTALL_NO_ARCH)
    67 install:        $(INSTALL_NO_ARCH)
    53 
    68 
    54 test:           $(NO_TESTS)
    69 test:           $(TEST_NO_ARCH)
    55 
    70 
    56 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
    71 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
    57 
    72 
    58 include $(WS_TOP)/make-rules/depend.mk
    73 include $(WS_TOP)/make-rules/depend.mk