1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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
This commit is contained in:
obarnir@mysql.com
2005-06-09 11:01:23 -07:00
parent 36a4f39bc6
commit 156d351e1d
5 changed files with 77 additions and 0 deletions

19
mysql-test/include/show_msg.inc Executable file
View File

@ -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