Makefile revision 3661
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# common targets
2b4d1b54f6ca406b8233d9e6fea9593df6dad035Tinderbox User# The tests are run using python 2.7 only and require that
2b4d1b54f6ca406b8233d9e6fea9593df6dad035Tinderbox User# the python-27 package is installed (does not have to be the default python).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Testing using python-26 is done manually, since it requires
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# downloading and installing the unittest2 component (not part of Solaris).
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# which provides python 2.7 functionality to the unittest python library
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# in the python2.6 package.
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Use the python 2.7 libraries for testing.
44d0f0256fbdce130a18655023c3b06bacacbd61Automatic Updater# logilab-common is a runtime dependency of logilab-astng,
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and we need to use its latest version from the workspace.
6f64d4ab8e68f9b2333bcbfc755396d29a4a9d7cAutomatic Updater# We can't just add its install target as a dependency here,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# so just run "gmake install" in the logilab-common component directory
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# before running logilab-astng tests.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Run pytest-2.7 from logilab-common's proto area for now, until the
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# new version of logilab-common containing pytest is in CBE.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION).
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION)
6f64d4ab8e68f9b2333bcbfc755396d29a4a9d7cAutomatic Updater# Expected failures for test target:
44d0f0256fbdce130a18655023c3b06bacacbd61Automatic Updater# 242 test cases, 2 failures, 6 skipped
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# 8 modules OK (1 failed)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# failures: unittest_builder [2/55]
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# 242 test cases, 4 failures, 8 skipped
bbbf2e27d3a981163dab139497d6b2dc85449db0Tinderbox User# 6 modules OK (3 failed)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# failures: unittest_builder [2/55], unittest_lookup [1/21],
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# unittest_inference [1/75]