Below is the list of changes that have just been committed into a local
5.0 repository of omer. When omer does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1963 05/06/09 11:01:23 obarnir@stripped +5 -0
Adding auxiliary scripts that allow to display messages in result files from within test
files
- show_msg.inc - displays a message followed by a line of '-' at the length of the
messgae
- show_msg80.inc - displays a message followed by a line of '-' with a fixed length of
80
BitKeeper/etc/logging_ok
1.323 05/06/09 11:01:22 obarnir@stripped +1 -0
Logging to logging@stripped accepted
mysql-test/include/show_msg80.inc
1.1 05/06/09 11:01:15 obarnir@stripped +23 -0
mysql-test/include/show_msg.inc
1.1 05/06/09 11:01:15 obarnir@stripped +19 -0
mysql-test/t/mysqltest.test
1.5 05/06/09 11:01:15 obarnir@stripped +20 -0
Added test cases to test the show_msg.inc and show_msg80.inc auxiliary files
mysql-test/r/mysqltest.result
1.5 05/06/09 11:01:15 obarnir@stripped +14 -0
Updated result file
mysql-test/include/show_msg80.inc
1.0 05/06/09 11:01:15 obarnir@stripped +0 -0
BitKeeper file /home/omer/source/src50_0609/mysql-test/include/show_msg80.inc
mysql-test/include/show_msg.inc
1.0 05/06/09 11:01:15 obarnir@stripped +0 -0
BitKeeper file /home/omer/source/src50_0609/mysql-test/include/show_msg.inc
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: obarnir
# Host: linux.site
# Root: /home/omer/source/src50_0609
--- 1.322/BitKeeper/etc/logging_ok 2005-06-07 06:37:40 -07:00
+++ 1.323/BitKeeper/etc/logging_ok 2005-06-09 11:01:22 -07:00
@@ -202,6 +202,7 @@
ndbdev@shark.
nick@stripped
nick@stripped
+obarnir@stripped
papa@stripped
patg@krsna.
patg@stripped
--- 1.4/mysql-test/r/mysqltest.result 2005-05-06 04:44:41 -07:00
+++ 1.5/mysql-test/r/mysqltest.result 2005-06-09 11:01:15 -07:00
@@ -148,3 +148,17 @@
select 'aaa\\','aa''a',"aa""a";
aaa\ aa'a aa"a
aaa\ aa'a aa"a
+SET @message = 'Here comes a message';
+
+Here comes a message
+--------------------
+SET @message = USER();
+
+root@localhost
+--------------
+SET @message = 'Here comes a very very long message that is longer then 80 characters
+on multiple lines';
+
+Here comes a very very long message that is longer then 80 characters
+on multiple lines
+--------------------------------------------------------------------------------
--- 1.4/mysql-test/t/mysqltest.test 2005-05-06 04:44:14 -07:00
+++ 1.5/mysql-test/t/mysqltest.test 2005-06-09 11:01:15 -07:00
@@ -295,3 +295,23 @@
# Test escaping of quotes
select 'aaa\\','aa''a',"aa""a";
+
+
+
+#
+# Check of include/show_msg.inc
+#
+
+# The message contains in most cases a string with the default character set
+SET @message = 'Here comes a message';
+--source include/show_msg.inc
+
+# The message could also contain a string with character set utf8
+SET @message = USER();
+--source include/show_msg.inc
+
+# The message contains more then 80 characters on multiple lines
+SET @message = 'Here comes a very very long message that is longer then 80 characters
+on multiple lines';
+--source include/show_msg80.inc
+
--- New file ---
+++ mysql-test/include/show_msg.inc 05/06/09 11:01:15
#### include/show_msg.inc
#
# This file writes the value set in @message into the
# a protocol file as part of executing a test sequence
#
# Usage:
# Add the following to any *.test file:
# :
# set @message="This is a message example";
# --source include/show_msg.inc
# :
#
--disable_query_log
SET @utf8_message = CONVERT(@message using utf8);
select @utf8_message as ""
union
select repeat(CONVERT('-' using utf8),char_length(@utf8_message));
--enable_query_log
--- New file ---
+++ mysql-test/include/show_msg80.inc 05/06/09 11:01:15
#### include/show_msg80.inc
#
# This file writes the value set in @message into the
# a protocol file as part of executing a test sequence
# with a dash line that is fixed on 80 characters.
# This can be used in the case of long messages,
# multi line messages that exceed 80 or if an 80 char
# line is desired for short messages.
#
# Usage:
# Add the following to any *.test file:
# :
# set @message="This is a message example";
# --source include/show_msg80.inc
# :
#
--disable_query_log
SET @utf8_message = CONVERT(@message using utf8);
select @utf8_message as ""
union
select repeat(CONVERT('-' using utf8),80);
--enable_query_log
| Thread |
|---|
| • bk commit into 5.0 tree (obarnir:1.1963) | obarnir | 10 Jun |