Makefile revision 1247
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater# CDDL HEADER START
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# The contents of this file are subject to the terms of the
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# Common Development and Distribution License (the "License").
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# You may not use this file except in compliance with the License.
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# or http://www.opensolaris.org/os/licensing.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# CDDL HEADER END
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-common/
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington sha256:c92db7d6bbac880969a439027a8239827a02a90815dbfba6bd4c031d85f4cd61
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterCOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/common/$(COMPONENT_ARCHIVE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# rename pytest to its versioned name; mediated links (depending on
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater# the python version) in the manifest will create the link from pytest
9d330c054e02f52cefd8dc0e71550b0fe07e077eAutomatic Updater# to the correct pytest-${PYTHON_VERSION}
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater (cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION))
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# common targets
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# The tests are run using python 2.7 only and require that the
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# python-27 package is installed (does not have to be the default python).
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Testing using python-26 is done manually, since it requires
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# downloading and installing the unittest2 component (not part of Solaris).
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# which provides python 2.7 functionality to the unittest python library
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater# in the python2.6 package.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Expected failures for test target:
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# 413 test cases, 1 error, 1 failures, 22 skipped
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# 21 modules OK (2 failed)
4d0520004a9663324a6a30f2d1716565e6d0024cAutomatic Updater# failures: unittest_shellutils [1/23], unittest_date [1/45]