mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
b125770aaa
Consequently, rename HAVE_purify to HAVE_valgrind, and related changes. Leave some comments about purify when not clear that they apply also to Valgrind. Fix redundant IF_VALGRIND declaration. Misc. small fixes: - Fixes for pool-of-threads patch. - Fixes for push of PBXT storage engine. - mysql-test-run.pl fix. - Fix build problem in compile-pentium64-max. BUILD/SETUP.sh: Rename purify -> valgrind. BUILD/build_mccge.sh: Rename purify -> valgrind. BUILD/compile-dist: Fix that PBXT was missing in source tarball after `BUILD/compile-dist && make dist` BUILD/compile-pentium64-max: Fix a build problem with BUILD/compile-pentium64-max on CentOS/Fedora Core 10 amd64. On these systems, there is libz.so but no libz.a. Finding libz.so, ./configure decides to use system zlib. But since BUILD/compile-pentium64-max builds a fully static binary with -all-static, the link of mysqld fails due to missing libz.a. Fix by using bundled zlib in the build script. BUILD/compile-solaris-sparc-purify: Rename purify -> valgrind. include/m_string.h: Rename purify -> valgrind. include/my_global.h: Rename purify -> valgrind. mysql-test/Makefile.am: Fix that PBXT test suite was missing from `make dist` source tarball. mysql-test/lib/mtr_unique.pm: Better fix to avoid races when chmod'ing the semaphore file. (Though using chmod 666 shared files in /tmp/ is still not a very good solution). mysql-test/t/pool_of_threads.cnf: Fix that test case pool_of_threads fails if run on mysqld with no --with-libevent support. mysys/mf_qsort.c: Rename purify -> valgrind. mysys/my_alloc.c: Rename purify -> valgrind. mysys/my_init.c: Rename purify -> valgrind. mysys/my_rnd.c: Rename purify -> valgrind. mysys/safemalloc.c: Rename purify -> valgrind. scripts/mysql_config.pl.in: Rename purify -> valgrind. scripts/mysql_config.sh: Rename purify -> valgrind. sql/field_conv.cc: Rename purify -> valgrind. sql/filesort.cc: Rename purify -> valgrind. sql/ha_partition.cc: Rename purify -> valgrind. sql/hostname.cc: Rename purify -> valgrind. sql/item_timefunc.cc: Rename purify -> valgrind. sql/log_event.cc: Rename purify -> valgrind. sql/log_event_old.cc: Rename purify -> valgrind. sql/my_decimal.h: Rename purify -> valgrind. sql/mysqld.cc: Rename purify -> valgrind. Fix redundant IF_VALGRIND declaration. sql/opt_range.cc: Rename purify -> valgrind. sql/opt_range.h: Rename purify -> valgrind. sql/records.cc: Rename purify -> valgrind. sql/rpl_rli.cc: Rename purify -> valgrind. sql/rpl_rli.h: Rename purify -> valgrind. sql/set_var.cc: Fix missing static declaration on pool_of_threads. sql/slave.cc: Rename purify -> valgrind. sql/sql_base.cc: Rename purify -> valgrind. sql/sql_binlog.cc: Rename purify -> valgrind. sql/sql_class.cc: Rename purify -> valgrind. sql/sql_list.h: Rename purify -> valgrind. sql/sql_load.cc: Rename purify -> valgrind. sql/sql_select.cc: Rename purify -> valgrind. sql/table.cc: Rename purify -> valgrind. storage/archive/azio.c: Rename purify -> valgrind. storage/innobase/buf/buf0buf.c: Rename purify -> valgrind. storage/innobase/include/univ.i: Rename purify -> valgrind. storage/innobase/srv/srv0start.c: Rename purify -> valgrind. storage/maria/ha_maria.cc: Rename purify -> valgrind. storage/maria/ma_blockrec.c: Rename purify -> valgrind. storage/maria/ma_check.c: Rename purify -> valgrind. storage/maria/ma_loghandler.c: Rename purify -> valgrind. storage/maria/ma_packrec.c: Rename purify -> valgrind. storage/maria/ma_page.c: Rename purify -> valgrind. storage/maria/ma_pagecrc.c: Rename purify -> valgrind. storage/maria/ma_search.c: Rename purify -> valgrind. storage/myisam/mi_check.c: Rename purify -> valgrind. storage/myisam/mi_page.c: Rename purify -> valgrind. storage/myisam/mi_search.c: Rename purify -> valgrind. storage/myisammrg/ha_myisammrg.cc: Rename purify -> valgrind. strings/bcmp.c: Rename purify -> valgrind. strings/decimal.c: Rename purify -> valgrind. strings/strmake.c: Rename purify -> valgrind.
141 lines
4.1 KiB
Makefile
141 lines
4.1 KiB
Makefile
# Copyright (C) 2000-2006 MySQL AB
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Library General Public
|
|
# License as published by the Free Software Foundation; version 2
|
|
# of the License.
|
|
#
|
|
# This library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Library General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Library General Public
|
|
# License along with this library; if not, write to the Free
|
|
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
# MA 02111-1307, USA
|
|
|
|
## Process this file with automake to create Makefile.in
|
|
|
|
testdir = $(prefix)/mysql-test
|
|
|
|
test_SCRIPTS = mtr \
|
|
mysql-test-run \
|
|
mysql-test-run.pl \
|
|
mysql-stress-test.pl
|
|
|
|
nobase_test_DATA = \
|
|
lib/v1/mysql-test-run.pl \
|
|
lib/v1/mtr_cases.pl \
|
|
lib/v1/mtr_io.pl \
|
|
lib/v1/mtr_report.pl \
|
|
lib/v1/My/Config.pm \
|
|
lib/v1/mtr_gcov.pl \
|
|
lib/v1/mtr_match.pl \
|
|
lib/v1/mtr_stress.pl \
|
|
lib/v1/ndb_config_1_node.ini \
|
|
lib/v1/ndb_config_2_node.ini \
|
|
lib/v1/mtr_gprof.pl \
|
|
lib/v1/mtr_misc.pl \
|
|
lib/v1/mtr_timer.pl \
|
|
lib/v1/mtr_im.pl \
|
|
lib/v1/mtr_process.pl \
|
|
lib/v1/mtr_unique.pl \
|
|
\
|
|
lib/mtr_cases.pm \
|
|
lib/mtr_gcov.pl \
|
|
lib/mtr_gprof.pl \
|
|
lib/mtr_io.pl \
|
|
lib/mtr_match.pm \
|
|
lib/mtr_misc.pl \
|
|
lib/mtr_process.pl \
|
|
lib/mtr_report.pm \
|
|
lib/mtr_stress.pl \
|
|
lib/mtr_unique.pm \
|
|
lib/My/ConfigFactory.pm \
|
|
lib/My/Config.pm \
|
|
lib/My/Find.pm \
|
|
lib/My/Handles.pm \
|
|
lib/My/Options.pm \
|
|
lib/My/Test.pm \
|
|
lib/My/Platform.pm \
|
|
lib/My/SafeProcess.pm \
|
|
lib/My/File/Path.pm \
|
|
lib/My/SysInfo.pm \
|
|
lib/My/CoreDump.pm \
|
|
lib/My/SafeProcess/Base.pm \
|
|
lib/My/SafeProcess/safe_process.pl
|
|
|
|
SUBDIRS = lib/My/SafeProcess
|
|
|
|
EXTRA_DIST = README \
|
|
valgrind.supp \
|
|
$(test_SCRIPTS) \
|
|
$(nobase_test_DATA)
|
|
|
|
# List of directories containing test + result files and the
|
|
# related test data files that should be copied
|
|
TEST_DIRS = t r include std_data std_data/parts \
|
|
std_data/ndb_backup50 std_data/ndb_backup51 \
|
|
std_data/ndb_backup51_data_be std_data/ndb_backup51_data_le \
|
|
std_data/funcs_1 \
|
|
extra/binlog_tests/ extra/rpl_tests \
|
|
suite/binlog suite/binlog/t suite/binlog/r suite/binlog/std_data \
|
|
suite/bugs/data suite/bugs/t suite/bugs/r \
|
|
suite/federated \
|
|
suite/funcs_1 suite/funcs_1/bitdata \
|
|
suite/funcs_1/include suite/funcs_1/lib suite/funcs_1/r \
|
|
suite/funcs_1/t suite/funcs_1/views suite/funcs_1/cursors \
|
|
suite/funcs_1/datadict suite/funcs_1/storedproc suite/funcs_1/triggers \
|
|
suite/funcs_2 suite/funcs_2/charset suite/funcs_2/data \
|
|
suite/funcs_2/include suite/funcs_2/lib suite/funcs_2/r \
|
|
suite/funcs_2/t \
|
|
suite/jp suite/jp/t suite/jp/r suite/jp/std_data \
|
|
suite/manual/t suite/manual/r \
|
|
suite/ndb_team suite/ndb_team/t suite/ndb_team/r \
|
|
suite/rpl suite/rpl/data suite/rpl/include suite/rpl/r \
|
|
suite/rpl/t suite/maria/t suite/maria/r \
|
|
suite/stress/include suite/stress/t suite/stress/r \
|
|
suite/ndb suite/ndb/t suite/ndb/r \
|
|
suite/rpl_ndb suite/rpl_ndb/t suite/rpl_ndb/r \
|
|
suite/parts suite/parts/t suite/parts/r suite/parts/inc \
|
|
suite/pbxt/t suite/pbxt/r
|
|
|
|
# Used by dist-hook and install-data-local to copy all
|
|
# test files into either dist or install directory
|
|
install_test_files:
|
|
@if test -z "$(INSTALL_TO_DIR)"; then \
|
|
echo "Set INSTALL_TO_DIR!" && exit 1; \
|
|
fi
|
|
@for dir in $(TEST_DIRS); do \
|
|
from_dir="$(srcdir)/$$dir"; \
|
|
to_dir="$(INSTALL_TO_DIR)/$$dir"; \
|
|
$(mkinstalldirs) "$$to_dir"; \
|
|
for f in `(cd $$from_dir && ls)`; do \
|
|
if test -f "$$from_dir/$$f"; then \
|
|
$(INSTALL_DATA) "$$from_dir/$$f" "$$to_dir/$$f" ; \
|
|
fi; \
|
|
done \
|
|
done
|
|
|
|
dist-hook:
|
|
$(MAKE) INSTALL_TO_DIR="$(distdir)" install_test_files
|
|
|
|
install-data-local:
|
|
$(MAKE) INSTALL_TO_DIR="$(DESTDIR)$(testdir)" install_test_files
|
|
|
|
uninstall-local:
|
|
@RM@ -f -r $(DESTDIR)$(testdir)
|
|
|
|
# mtr - a shortcut for executing mysql-test-run.pl
|
|
mtr:
|
|
$(RM) -f mtr
|
|
$(LN_S) mysql-test-run.pl mtr
|
|
|
|
# mysql-test-run - a shortcut for executing mysql-test-run.pl
|
|
mysql-test-run:
|
|
$(RM) -f mysql-test-run
|
|
$(LN_S) mysql-test-run.pl mysql-test-run
|
|
|
|
# Don't update the files from bitkeeper
|
|
%::SCCS/s.%
|