Makefile revision 4337
076b559b2ea7b2f1d303df992ae71cd6c6fe563cChristian Maeder# CDDL HEADER START
076b559b2ea7b2f1d303df992ae71cd6c6fe563cChristian Maeder# The contents of this file are subject to the terms of the
076b559b2ea7b2f1d303df992ae71cd6c6fe563cChristian Maeder# Common Development and Distribution License (the "License").
076b559b2ea7b2f1d303df992ae71cd6c6fe563cChristian Maeder# You may not use this file except in compliance with the License.
076b559b2ea7b2f1d303df992ae71cd6c6fe563cChristian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
076b559b2ea7b2f1d303df992ae71cd6c6fe563cChristian Maeder# or http://www.opensolaris.org/os/licensing.
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian Maeder# See the License for the specific language governing permissions
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian Maeder# and limitations under the License.
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian Maeder# When distributing Covered Code, include this CDDL HEADER in each
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e8ffec0fa3d3061061bdc16e44247b9cf96b050fChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
e8ffec0fa3d3061061bdc16e44247b9cf96b050fChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
e8ffec0fa3d3061061bdc16e44247b9cf96b050fChristian Maeder# CDDL HEADER END
ac510075311023bf24175f7a76b89ec2bbda0626Christian Maeder# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
c4e912fc181d72c8d0e0e38d0351278182f0d0b5Christian Maederinclude ../../../make-rules/shared-macros.mk
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian MaederCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian Maeder sha256:16c612ac01b9b5a31967e231c7f7d32b7263f151d5e3c617c69378170054805f
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian MaederCOMPONENT_PROJECT_URL= http://github.com/xattr/xattr
c18e9c3c6d5039618f1f2c05526ece84c7794ea3Christian MaederCOMPONENT_INSTALL_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB)
64558a09e6f6b95d2689d02dd5251339f8ac505bChristian MaederCOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB)
64558a09e6f6b95d2689d02dd5251339f8ac505bChristian Maeder# The test suite wants to use some unicode filenames, which don't work in the C
8a1f427564a5ae2db32332512237ef645289c34dChristian Maeder (cd $(PROTO_DIR)/usr/bin; $(MV) xattr xattr-$(PYTHON_VERSION))
613c474338a210f2aad9817376e5a3ce1fdde886Christian Maeder# Tests run under setuptools work very hard to run in the source directory
568a1ce407fd05a2007c5db3c5c57098bf13997fChristian Maeder# itself, and will thus blow up with an VerificationError (wrong ELF class)
8a1f427564a5ae2db32332512237ef645289c34dChristian Maeder# when running 64-bit tests after 32-bit or vice-versa. So copy the source off
6e5180855658f12f9059d9041f447bf0935de344Christian Maeder# to a target-specific directory and run the tests. Note that this will also
8a1f427564a5ae2db32332512237ef645289c34dChristian Maeder# rebuild the package, since it doesn't want to use what it should already be
e05956d1da3c97e4d808926f97c6841c4a561991Christian Maeder# finding in PYTHONPATH.
c18e9c3c6d5039618f1f2c05526ece84c7794ea3Christian MaederCOMPONENT_PRE_TEST_ACTION = $(CP) -r $(SOURCE_DIR) $(@D)/tests
613c474338a210f2aad9817376e5a3ce1fdde886Christian Maeder# common targets
76fa667489c5e0868ac68de9f0253ac10f73d0b5Christian Maedersystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
ac510075311023bf24175f7a76b89ec2bbda0626Christian MaederREQUIRED_PACKAGES += library/python/setuptools-26
8a1f427564a5ae2db32332512237ef645289c34dChristian MaederREQUIRED_PACKAGES += library/python/setuptools-27