diff options
author | unknown <obarnir@mysql.com> | 2005-06-09 11:01:23 -0700 |
---|---|---|
committer | unknown <obarnir@mysql.com> | 2005-06-09 11:01:23 -0700 |
commit | a1650deab6a1685dc81535ab332c28fb706ee1c8 (patch) | |
tree | c0e25802dc44e48228be48f7488898e141606eef /mysql-test/include/show_msg80.inc | |
parent | 9227cf4254dc9e9ece41d9eabc164b05a621638a (diff) | |
download | mariadb-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_msg80.inc')
-rwxr-xr-x | mysql-test/include/show_msg80.inc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/include/show_msg80.inc b/mysql-test/include/show_msg80.inc new file mode 100755 index 00000000000..d9a59c5517a --- /dev/null +++ b/mysql-test/include/show_msg80.inc @@ -0,0 +1,23 @@ +#### 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 |