Makefile revision 4078
341N/A#
341N/A# CDDL HEADER START
341N/A#
341N/A# The contents of this file are subject to the terms of the
910N/A# Common Development and Distribution License (the "License").
810N/A# You may not use this file except in compliance with the License.
341N/A#
341N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A
341N/Ainclude ../../../make-rules/shared-macros.mk
341N/A
341N/ACOMPONENT_NAME= nose
341N/ACOMPONENT_VERSION= 1.3.6
493N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
341N/ACOMPONENT_PROJECT_URL= https://github.com/nose-devs/nose
341N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
851N/ACOMPONENT_ARCHIVE_HASH= \
341N/A sha256:f61e0909a743eed37b1207e38a8e7b4a2fe0a82185e36f2be252ef1b3f901758
911N/ACOMPONENT_ARCHIVE_URL= https://pypi.python.org/packages/source/n/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
911N/ACOMPONENT_BUGDB= python-mod/nose
911N/A
911N/ATPNO= 22206
341N/A
341N/Ainclude $(WS_MAKE_RULES)/prep.mk
851N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
341N/Ainclude $(WS_MAKE_RULES)/ips.mk
341N/A
341N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
341N/A
341N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)
341N/ACOMPONENT_TEST_ARGS = selftest.py
341N/A
341N/A# Used to automatically run the Python 2.6 nose tests even though there was
392N/A# an error found when running one of the Python 2.7 ones.
604N/ACOMPONENT_TEST_ARGS += || true
646N/A
812N/A# Save an original copy of the test script to be able to edit it correctly
688N/A# for each version of Python and build the tests once.
688N/ACOMPONENT_POST_UNPACK_ACTION += \
688N/A ($(CP) $(SOURCE_DIR)/selftest.py $(SOURCE_DIR)/selftest.py.orig ; \
688N/A cd $(COMPONENT_TEST_DIR); $(COMPONENT_TEST_ENV_CMD) \
688N/A $(COMPONENT_TEST_ENV) \
688N/A $(COMPONENT_TEST_CMD) setup.py build_tests)
688N/A
688N/A# We need to adjust the script that is used to run the tests, to pick the
688N/A# appropriate nose in the proto area depending upon which version of Python
688N/A# we are running the tests against.
688N/ACOMPONENT_PRE_TEST_ACTION = \
688N/A $(GSED) -e "s|'build', 'lib\*'|'..', 'build', 'prototype', '$(MACH)', 'usr', 'lib', 'python$(PYTHON_VERSION)', 'vendor-packages\*'|" \
688N/A $(SOURCE_DIR)/selftest.py.orig > $(SOURCE_DIR)/selftest.py
688N/A
688N/A# The test output can contain non-deterministic results because "chances are
688N/A# you will experience odd, intermittent and unexplainable failures and errors"
688N/A# when using the multiprocess plug. See:
688N/A# http://nose.readthedocs.org/en/latest/plugins/multiprocess.html
688N/A# CR #20470423 has been filed to investigate these failures.
688N/A#
688N/A# Because of this we use nawk to just extract lines starting with:
688N/A# ERROR: ...
688N/A# Ran 3XX tests in ...
688N/A# FAILED ...
688N/A# OK
688N/A# stripping out the random portions (like time to complete the tests).
688N/ACOMPONENT_TEST_TRANSFORMER = $(NAWK)
851N/ACOMPONENT_TEST_TRANSFORMS = "'/^ERROR: / { print }; /^Ran / { sub(\" tests in .+s\", \" tests in\"); print }; /^FAILED / { print }; /^OK / { print };'"
688N/A
688N/Abuild: $(BUILD_NO_ARCH)
688N/A
688N/Ainstall: $(INSTALL_NO_ARCH)
688N/A
688N/Atest: $(TEST_NO_ARCH)
688N/A
688N/AREQUIRED_PACKAGES += library/python/setuptools-26
688N/AREQUIRED_PACKAGES += library/python/setuptools-27
688N/AREQUIRED_PACKAGES += library/python/setuptools-34
688N/A