summaryrefslogtreecommitdiff
path: root/mysql-test/suite/im/t/log.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/im/t/log.sh')
-rwxr-xr-xmysql-test/suite/im/t/log.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/suite/im/t/log.sh b/mysql-test/suite/im/t/log.sh
new file mode 100755
index 00000000000..33ef6d6701f
--- /dev/null
+++ b/mysql-test/suite/im/t/log.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+###########################################################################
+
+basename=`basename "$0"`
+dirname=`dirname "$0"`
+
+###########################################################################
+
+. "$dirname/utils.sh"
+
+###########################################################################
+
+if [ $# -lt 2 ]; then
+ echo "Usage: $basename <test id> log message ..."
+ exit 1
+fi
+
+test_id="$1"
+log_file="$MYSQLTEST_VARDIR/log/$test_id.script.log"
+
+shift
+
+log_debug "$*"