summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bzrignore2
-rw-r--r--libmysql/libmysql.c2
-rw-r--r--libmysqld/examples/Makefile.am17
-rw-r--r--scripts/make_binary_distribution.sh4
-rw-r--r--tests/Makefile.am6
-rw-r--r--tests/mysql_client_test.c (renamed from tests/client_test.c)0
6 files changed, 18 insertions, 13 deletions
diff --git a/.bzrignore b/.bzrignore
index 54a8c8fd03a..40b7668cb64 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -1002,3 +1002,5 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
+tests/mysql_client_test
+tests/mysql_client_test
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 206fd8f77b4..3d84059e981 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -2978,7 +2978,7 @@ static my_bool int_is_null_false= 0;
values and mysql_stmt_execute() the statement.
See also: mysql_stmt_send_long_data() for sending long text/blob
- data in pieces, examples in tests/client_test.c.
+ data in pieces, examples in tests/mysql_client_test.c.
Next steps you might want to make:
- execute statement with mysql_stmt_execute(),
- reset statement using mysql_stmt_reset() or reprepare it with
diff --git a/libmysqld/examples/Makefile.am b/libmysqld/examples/Makefile.am
index 5b0a86e679c..c6759d99aab 100644
--- a/libmysqld/examples/Makefile.am
+++ b/libmysqld/examples/Makefile.am
@@ -1,6 +1,7 @@
-noinst_PROGRAMS = mysqltest mysql client_test
-client_sources = $(mysqltest_SOURCES) $(mysql_SOURCES)
-tests_sources= $(client_test_SOURCES)
+noinst_PROGRAMS = mysql
+bin_PROGRAMS = mysqltest_embedded mysql_client_test_embedded
+client_sources = $(mysqltest_embedded_SOURCES) $(mysql_SOURCES)
+tests_sources= $(mysql_client_test_SOURCES)
link_sources:
for f in $(client_sources); do \
@@ -19,16 +20,16 @@ INCLUDES = @MT_INCLUDES@ -I$(top_srcdir)/include -I$(srcdir) \
LIBS = @LIBS@ @WRAPLIBS@ @CLIENT_LIBS@
LDADD = @CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @innodb_system_libs@ @LIBDL@ $(CXXLDFLAGS)
-mysqltest_LINK = $(CXXLINK)
-mysqltest_SOURCES = mysqltest.c
-mysqltest_LDADD = $(LDADD) $(top_builddir)/regex/libregex.a
+mysqltest_embedded_LINK = $(CXXLINK)
+mysqltest_embedded_SOURCES = mysqltest.c
+mysqltest_embedded_LDADD = $(LDADD) $(top_builddir)/regex/libregex.a
mysql_SOURCES = mysql.cc readline.cc completion_hash.cc \
my_readline.h sql_string.h completion_hash.h
mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)
-client_test_LINK = $(CXXLINK)
-client_test_SOURCES = client_test.c
+mysql_client_test_embedded_LINK = $(CXXLINK)
+mysql_client_test_embedded_SOURCES = mysql_client_test.c
clean:
rm -f $(client_sources)
diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh
index 281ef9bd469..22b51168c23 100644
--- a/scripts/make_binary_distribution.sh
+++ b/scripts/make_binary_distribution.sh
@@ -127,6 +127,8 @@ else
client/.libs/mysqltest client/.libs/mysqlcheck \
client/.libs/mysqlbinlog client/.libs/mysqlmanagerc \
client/.libs/mysqlmanager-pwgen tools/.libs/mysqlmanager \
+ tests/.libs/mysql_client_test libmysqld/examples/mysql_client_test_embedded \
+ libmysqld/examples/mysqltest_embedded \
";
fi
@@ -187,7 +189,7 @@ fi
if [ $BASE_SYSTEM != "netware" ] ; then
if [ -d tests ] ; then
- $CP tests/client_test tests/*.res tests/*.tst tests/*.pl $BASE/tests
+ $CP tests/*.res tests/*.tst tests/*.pl $BASE/tests
fi
if [ -d man ] ; then
$CP man/*.1 $BASE/man/man1
diff --git a/tests/Makefile.am b/tests/Makefile.am
index df16ee789a5..de4fbb2a4f2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -26,7 +26,7 @@ EXTRA_DIST = auto_increment.res auto_increment.tst \
pmail.pl mail_to_db.pl table_types.pl \
udf_test udf_test.res myisam-big-rows.tst
-bin_PROGRAMS = client_test
+bin_PROGRAMS = mysql_client_test
noinst_PROGRAMS = insert_test select_test thread_test
#
@@ -35,8 +35,8 @@ noinst_PROGRAMS = insert_test select_test thread_test
INCLUDES = -I$(top_srcdir)/include $(openssl_includes)
LIBS = @CLIENT_LIBS@
LDADD = @CLIENT_EXTRA_LDFLAGS@ ../libmysql/libmysqlclient.la
-client_test_LDADD= $(LDADD) $(CXXLDFLAGS)
-client_test_SOURCES= client_test.c
+mysql_client_test_LDADD= $(LDADD) $(CXXLDFLAGS)
+mysql_client_test_SOURCES= mysql_client_test.c
insert_test_DEPENDENCIES= $(LIBRARIES) $(pkglib_LTLIBRARIES)
select_test_DEPENDENCIES= $(LIBRARIES) $(pkglib_LTLIBRARIES)
diff --git a/tests/client_test.c b/tests/mysql_client_test.c
index beaff795d0e..beaff795d0e 100644
--- a/tests/client_test.c
+++ b/tests/mysql_client_test.c