summaryrefslogtreecommitdiff
path: root/mysql-test/include/show_msg.inc
diff options
context:
space:
mode:
authorunknown <obarnir@mysql.com>2005-06-09 11:01:23 -0700
committerunknown <obarnir@mysql.com>2005-06-09 11:01:23 -0700
commita1650deab6a1685dc81535ab332c28fb706ee1c8 (patch)
treec0e25802dc44e48228be48f7488898e141606eef /mysql-test/include/show_msg.inc
parent9227cf4254dc9e9ece41d9eabc164b05a621638a (diff)
downloadmariadb-git-a1650deab6a1685dc81535ab332c28fb706ee1c8.tar.gz
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 mysql-test/r/mysqltest.result: Updated result file mysql-test/t/mysqltest.test: Added test cases to test the show_msg.inc and show_msg80.inc auxiliary files BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'mysql-test/include/show_msg.inc')
-rwxr-xr-xmysql-test/include/show_msg.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/include/show_msg.inc b/mysql-test/include/show_msg.inc
new file mode 100755
index 00000000000..5a29541edcf
--- /dev/null
+++ b/mysql-test/include/show_msg.inc
@@ -0,0 +1,19 @@
+#### 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