components/python/nose/Makefile
changeset 3752 a1cd93fa2e49
parent 3735 70e97c209ac8
child 3817 30b42c38bbc4
equal deleted inserted replaced
3750:60902b5c3237 3752:a1cd93fa2e49
    63 # we are running the tests against.
    63 # we are running the tests against.
    64 COMPONENT_PRE_TEST_ACTION = \
    64 COMPONENT_PRE_TEST_ACTION = \
    65 	$(GSED) -e "s|'build', 'lib\*'|'..', 'build', 'prototype', '$(MACH)', 'usr', 'lib', 'python$(PYTHON_VERSION)', 'vendor-packages\*'|" \
    65 	$(GSED) -e "s|'build', 'lib\*'|'..', 'build', 'prototype', '$(MACH)', 'usr', 'lib', 'python$(PYTHON_VERSION)', 'vendor-packages\*'|" \
    66 		$(SOURCE_DIR)/selftest.py.orig > $(SOURCE_DIR)/selftest.py
    66 		$(SOURCE_DIR)/selftest.py.orig > $(SOURCE_DIR)/selftest.py
    67 
    67 
    68 # common targets
    68 # The test output can contain non-deterministic results because "chances are
       
    69 # you will experience odd, intermittent and unexplainable failures and errors"
       
    70 # when using the multiprocess plug. See:
       
    71 # http://nose.readthedocs.org/en/latest/plugins/multiprocess.html
       
    72 # CR #20470423 has been filed to investigate these failures.
       
    73 #
       
    74 # Because of this we use nawk to just extract lines starting with:
       
    75 # ERROR: ...
       
    76 # Ran 3XX tests in ...
       
    77 # FAILED ...
       
    78 # OK
       
    79 # stripping out the random portions (like time to complete the tests).
       
    80 COMPONENT_TEST_TRANSFORMER =	$(NAWK)
       
    81 COMPONENT_TEST_TRANSFORMS = "'/^ERROR: / { print }; /^Ran / { sub(\" tests in .+s\", \" tests in\"); print }; /^FAILED / { print }; /^OK / { print };'"
       
    82 
    69 build:		$(BUILD_NO_ARCH)
    83 build:		$(BUILD_NO_ARCH)
    70 
    84 
    71 install:	$(INSTALL_NO_ARCH)
    85 install:	$(INSTALL_NO_ARCH)
    72 
       
    73 # Note that it is currently not feasible to add master test file(s) for this
       
    74 # component because "chances are you will experience odd, intermittent and
       
    75 # unexplainable failures and errors" when using the multiprocess plug. See:
       
    76 # http://nose.readthedocs.org/en/latest/plugins/multiprocess.html
       
    77 # CR #20470423 has been filed to investigate these failures.
       
    78 
    86 
    79 test:		$(TEST_NO_ARCH)
    87 test:		$(TEST_NO_ARCH)
    80 
    88 
    81 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    89 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    82 
    90