Makefile revision 7391
842ae4bd224140319ae7feec1872b93dfd491143fielding# CDDL HEADER START
842ae4bd224140319ae7feec1872b93dfd491143fielding# The contents of this file are subject to the terms of the
842ae4bd224140319ae7feec1872b93dfd491143fielding# Common Development and Distribution License (the "License").
842ae4bd224140319ae7feec1872b93dfd491143fielding# You may not use this file except in compliance with the License.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# See the License for the specific language governing permissions
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# and limitations under the License.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# When distributing Covered Code, include this CDDL HEADER in each
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1f728f035fca81594193e198b40bfa732b1c02ebtrawick# If applicable, add the following below this CDDL HEADER, with the
1f728f035fca81594193e198b40bfa732b1c02ebtrawick# fields enclosed by brackets "[]" replaced with your own identifying
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# information: Portions Copyright [yyyy] [name of copyright owner]
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# CDDL HEADER END
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
1f728f035fca81594193e198b40bfa732b1c02ebtrawick# This variable has no impact on perl build, it is here merely to satisfy
1f728f035fca81594193e198b40bfa732b1c02ebtrawick# "modernized" gate infrastructure. The bitness of the module is driven by the
1f728f035fca81594193e198b40bfa732b1c02ebtrawick# bitness of perl interpreter itself. That is hardcoded in
1f728f035fca81594193e198b40bfa732b1c02ebtrawick# $(WS_MAKE_RULES)/makemaker.mk
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb sha256:a3438bba3cce02b13870b146b9db76a519b98e978d9dfe8516a63daff2989040
2a503ad7fa6fc3572647e915a0d7f31a17d11b1drbbCOMPONENT_ARCHIVE_URL= http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/$(COMPONENT_ARCHIVE)
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletcCOMPONENT_PROJECT_URL= https://github.com/perl5-dbi/DBD-mysql
1f728f035fca81594193e198b40bfa732b1c02ebtrawick# MySQL 5.7 is not available in S11.
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawickCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc '-e "s/[0-9][0-9]* wallclock secs (.*CPU)$$/<TIMINGS REMOVED>/" ' \
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc '-e "s/^\(\# mysql_[a-z][a-z]* is: \).*/\1<REMOVED>/" ' \
c6a06ed5b9ec5600bedefc11bbc22919fe170ad4jailletc '-e "s/^\(\# SQL_DBMS_VER is \).*/\1<REMOVED>/" ' \
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawick '-e "s/^\(\# Driver version is \).*/\1<REMOVED>/" ' \
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawick '-e "/chmod 644 \"mysql.bs\"/d"' \
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawick '-e "/Running Mkbootstrap/d"'
8d290205047d88e37555019fe9a26f1c5ece7023gregamesMYSQL_TEST_DATADIR = $(COMPONENT_TEST_BUILD_DIR)/test_datadir
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawickCONFIGURE_OPTIONS += --mysql_config="$(MYSQL_BINDIR)/mysql_config"
67f6dca9f3c35eb904c7b29a220db6c4482374dctrawickCONFIGURE_OPTIONS += --testpassword=$(MYSQL_TEST_PASSWORD)
8d290205047d88e37555019fe9a26f1c5ece7023gregames# !!!!!!!!! workaround for 22552923
db3fa7db7c7910f2f23c3e3ffe0cf9f41a1899b9trawickMYSQL_LIBS = $(shell $(MYSQL_BINDIR)/mysql_config --libs)
12d7cc79eeb598697b4c9046991035d91fac2476nd# !!!!!!!!! workaround for 22552923
12d7cc79eeb598697b4c9046991035d91fac2476nd# For the testing we need to run mysql database first. The database needs it's
12d7cc79eeb598697b4c9046991035d91fac2476nd# directory, which will be $(MYSQL_TEST_DATADIR). The directory will also
1f728f035fca81594193e198b40bfa732b1c02ebtrawick# contain socket over which the testing will be performed. Problem is that the
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# path can be maximally 107 characters long. To overcome that limit, we'll
SET_X = set -x;
SET_X =
--initialize-insecure \
--skip-networking \
--gdb \
sleep 10; \
create test; \
( $(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); \