Makefile revision 7391
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# CDDL HEADER START
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# The contents of this file are subject to the terms of the
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# Common Development and Distribution License (the "License").
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# You may not use this file except in compliance with the License.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# See the License for the specific language governing permissions
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# and limitations under the License.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# When distributing Covered Code, include this CDDL HEADER in each
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# If applicable, add the following below this CDDL HEADER, with the
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# fields enclosed by brackets "[]" replaced with your own identifying
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# information: Portions Copyright [yyyy] [name of copyright owner]
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# CDDL HEADER END
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# This variable has no impact on perl build, it is here merely to satisfy
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# "modernized" gate infrastructure. The bitness of the module is driven by the
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# bitness of perl interpreter itself. That is hardcoded in
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# $(WS_MAKE_RULES)/makemaker.mk
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire sha256:a3438bba3cce02b13870b146b9db76a519b98e978d9dfe8516a63daff2989040
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguireCOMPONENT_ARCHIVE_URL= http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/$(COMPONENT_ARCHIVE)
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguireCOMPONENT_PROJECT_URL= https://github.com/perl5-dbi/DBD-mysql
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# MySQL 5.7 is not available in S11.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguireCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire '-e "s/[0-9][0-9]* wallclock secs (.*CPU)$$/<TIMINGS REMOVED>/" ' \
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire '-e "s/^\(\# mysql_[a-z][a-z]* is: \).*/\1<REMOVED>/" ' \
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire '-e "s/^\(\# SQL_DBMS_VER is \).*/\1<REMOVED>/" ' \
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire '-e "s/^\(\# Driver version is \).*/\1<REMOVED>/" ' \
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire '-e "/chmod 644 \"mysql.bs\"/d"' \
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire '-e "/Running Mkbootstrap/d"'
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguireMYSQL_TEST_DATADIR = $(COMPONENT_TEST_BUILD_DIR)/test_datadir
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguireCONFIGURE_OPTIONS += --mysql_config="$(MYSQL_BINDIR)/mysql_config"
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguireCONFIGURE_OPTIONS += --testpassword=$(MYSQL_TEST_PASSWORD)
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# !!!!!!!!! workaround for 22552923
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguireMYSQL_LIBS = $(shell $(MYSQL_BINDIR)/mysql_config --libs)
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# !!!!!!!!! workaround for 22552923
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# For the testing we need to run mysql database first. The database needs it's
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire# directory, which will be $(MYSQL_TEST_DATADIR). The directory will also
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); \