Makefile revision 6652
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White#
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White# CDDL HEADER START
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# The contents of this file are subject to the terms of the
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# Common Development and Distribution License (the "License").
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# You may not use this file except in compliance with the License.
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# or http://www.opensolaris.org/os/licensing.
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# See the License for the specific language governing permissions
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# and limitations under the License.
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# When distributing Covered Code, include this CDDL HEADER in each
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White# If applicable, add the following below this CDDL HEADER, with the
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White# fields enclosed by brackets "[]" replaced with your own identifying
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White# information: Portions Copyright [yyyy] [name of copyright owner]
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# CDDL HEADER END
1a71e5db977570fb40ad8689ee7a31ecc7540f11mental#
aded4b44e9194df7c9905c5787d1c7a9553d12cdMarkus Engel
d74e415b7dd25ccb70d40a9f11ec99f23b57ed63Markus Engel#
470cc275d97606f1c400867ef00fd79fbf349b66Markus Engel# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
470cc275d97606f1c400867ef00fd79fbf349b66Markus Engel#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
a2e796b608034e2c62290378d713058b8b58ef8fMarkus Engelinclude ../../../make-rules/shared-macros.mk
cdef31ce8c9e6d220e3a1a6b8a06ac0a3eb5d1edMarkus Engel
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxCOMPONENT_NAME= nose
470cc275d97606f1c400867ef00fd79fbf349b66Markus EngelCOMPONENT_VERSION= 1.3.7
470cc275d97606f1c400867ef00fd79fbf349b66Markus EngelCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1f6daa293cacc62d85a023412c70534a12f6e99aMarc JeanmouginCOMPONENT_PROJECT_URL= https://github.com/nose-devs/nose
f232be2471038c563c60f7311537aad1628d52baMarkus EngelCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxCOMPONENT_ARCHIVE_HASH= \
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux sha256:f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxCOMPONENT_ARCHIVE_URL= https://pypi.python.org/packages/source/n/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
470cc275d97606f1c400867ef00fd79fbf349b66Markus EngelCOMPONENT_BUGDB= python-mod/nose
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxTPNO= 31169
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
1a71e5db977570fb40ad8689ee7a31ecc7540f11mentalinclude $(WS_MAKE_RULES)/prep.mk
470cc275d97606f1c400867ef00fd79fbf349b66Markus Engelinclude $(WS_MAKE_RULES)/setup.py.mk
51dc158adbe2c9d1df3c941cbf78b90944d1afc2Markus Engelinclude $(WS_MAKE_RULES)/ips.mk
51dc158adbe2c9d1df3c941cbf78b90944d1afc2Markus Engel
51dc158adbe2c9d1df3c941cbf78b90944d1afc2Markus EngelASLR_MODE = $(ASLR_NOT_APPLICABLE)
203b91a85466178dd14a24236e0e42539bc4a24bMarkus Engel
203b91a85466178dd14a24236e0e42539bc4a24bMarkus Engel$(SOURCE_DIR)/.prep: PYTHON_VERSION=3.4
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxCOMPONENT_TEST_DIR = $(SOURCE_DIR)
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxCOMPONENT_TEST_ARGS = selftest.py
# Used to automatically run the Python 2.6 nose tests even though there was
# an error found when running one of the Python 2.7 ones.
COMPONENT_TEST_ARGS += || true
# Save an original copy of the test script to be able to edit it correctly
# for each version of Python and build the tests once.
COMPONENT_POST_UNPACK_ACTION += \
($(CP) $(SOURCE_DIR)/selftest.py $(SOURCE_DIR)/selftest.py.orig ; \
cd $(COMPONENT_TEST_DIR); $(COMPONENT_TEST_ENV_CMD) \
$(COMPONENT_TEST_ENV) \
$(COMPONENT_TEST_CMD) setup.py build_tests)
# We need to adjust the script that is used to run the tests, to pick the
# appropriate nose in the proto area depending upon which version of Python
# we are running the tests against.
COMPONENT_PRE_TEST_ACTION = \
$(GSED) -e "s|'build', 'lib\*'|'..', 'build', 'prototype', '$(MACH)', 'usr', 'lib', 'python$(PYTHON_VERSION)', 'vendor-packages\*'|" \
$(SOURCE_DIR)/selftest.py.orig > $(SOURCE_DIR)/selftest.py
# The test output can contain non-deterministic results because "chances are
# you will experience odd, intermittent and unexplainable failures and errors"
# when using the multiprocess plug. See:
# http://nose.readthedocs.org/en/latest/plugins/multiprocess.html
# CR #20470423 has been filed to investigate these failures.
#
# Because of this we use nawk to just extract lines starting with:
# ERROR: ...
# Ran 3XX tests in ...
# FAILED ...
# OK
# stripping out the random portions (like time to complete the tests).
COMPONENT_TEST_TRANSFORMER = $(NAWK)
COMPONENT_TEST_TRANSFORMS = "'/^ERROR: / { print }; /^Ran / { sub(\" tests in .+s\", \" tests in\"); print }; /^FAILED / { print }; /^OK / { print };'"
COMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)
COMPONENT_SYSTEM_TEST_ENV =
COMPONENT_SYSTEM_TEST_ARGS = selftest.py
build: $(BUILD_NO_ARCH)
install: $(INSTALL_NO_ARCH)
test: $(TEST_NO_ARCH)
system-test: $(SYSTEM_TEST_NO_ARCH)
REQUIRED_PACKAGES += library/python/setuptools-27
REQUIRED_PACKAGES += library/python/setuptools-34