Makefile revision 6532
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# CDDL HEADER START
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# The contents of this file are subject to the terms of the
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Common Development and Distribution License (the "License").
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# You may not use this file except in compliance with the License.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# See the License for the specific language governing permissions
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# and limitations under the License.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# When distributing Covered Code, include this CDDL HEADER in each
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# If applicable, add the following below this CDDL HEADER, with the
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# fields enclosed by brackets "[]" replaced with your own identifying
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# information: Portions Copyright [yyyy] [name of copyright owner]
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# CDDL HEADER END
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# This variable has no impact on perl build, it is here merely to satisfy
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# "modernized" gate infrastructure. The bitness of the module is driven by the
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# bitness of perl interpreter itself. That is hardcoded in
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# $(WS_MAKE_RULES)/makemaker.mk
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest sha256:b7eca365ea16bcf4c96c2fc0221304ff9c4995e7a551886837804a8f66b61937
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestCOMPONENT_ARCHIVE_URL= http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/$(COMPONENT_ARCHIVE)
3d8ee1629200b24b539b887a7feaec640fe610a8Kajetan HemzaczekCOMPONENT_PROJECT_URL= https://github.com/perl5-dbi/DBD-mysql
3d8ee1629200b24b539b887a7feaec640fe610a8Kajetan HemzaczekBUILD_TARGET= $(BUILD_$(MK_BITS)) $(LICENSE)
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest '-e "s/[0-9][0-9]* wallclock secs (.*CPU)$$/<TIMINGS REMOVED>/" ' \
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest '-e "s/^\(\# mysql_[a-z][a-z]* is: \).*/\1<REMOVED>/" ' \
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest '-e "s/^\(\# SQL_DBMS_VER is \).*/\1<REMOVED>/" ' \
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest '-e "s/^\(\# Driver version is \).*/\1<REMOVED>/" ' \
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest '-e "/chmod 644 \"mysql.bs\"/d"' \
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest '-e "/Running Mkbootstrap/d"'
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestMYSQL_BINDIR = $(USRDIR)/mysql/$(MYSQL_VERSION)/bin
3d8ee1629200b24b539b887a7feaec640fe610a8Kajetan HemzaczekMYSQL_TEST_DATADIR = $(COMPONENT_TEST_BUILD_DIR)/test_datadir
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestCOMPONENT_TEST_ENV += MYSQL_HISTFILE=/dev/null
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestCONFIGURE_OPTIONS += --mysql_config="$(MYSQL_BINDIR)/mysql_config"
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestCONFIGURE_OPTIONS += --testuser=$(MYSQL_TEST_USER)
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestCONFIGURE_OPTIONS += --testpassword=$(MYSQL_TEST_PASSWORD)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# !!!!!!!!! workaround for 22552923
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestMYSQL_LIBS = $(shell $(MYSQL_BINDIR)/mysql_config --libs)
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestCONFIGURE_OPTIONS += --libs="$(MYSQL_LIBS) -lCrun"
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# !!!!!!!!! workaround for 22552923
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# For the testing we need to run mysql database first. The database needs it's
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# directory, which will be $(MYSQL_TEST_DATADIR). The directory will also
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# contain socket over which the testing will be performed. Problem is that the
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# path can be maximally 107 characters long. To overcome that limit, we'll
SET_X = set -x;
SET_X =
--skip-networking \
--gdb \
sleep 10; \
( $(SET_X) PID=`cat $(MYSQL_TEST_DATADIR)/pid`; [ -n "$$PID" ] && ps -p $$PID && kill $$PID || : ) $(SILENT); \
( $(SET_X) PID=`cat $(MYSQL_TEST_DATADIR)/pid_of_guard`; [ -n "$$PID" ] && ps -p $$PID && kill $$PID || : ) $(SILENT); \
( $(SET_X) if [ -e "$(MYSQL_TEST_DATADIR)/test_link" ]; then rm -f `cat "$(MYSQL_TEST_DATADIR)/test_link"`; fi ) $(SILENT); \