diff options
author | msvensson@neptunus.(none) <> | 2006-10-06 01:00:35 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2006-10-06 01:00:35 +0200 |
commit | 3eaeeca6ded26dd08f413d89a0b23be1f1dde36b (patch) | |
tree | e7f7202b93cf18506bd6c17b9a89056f7dba9b12 | |
parent | 7fb9bac13a07ddf15bb4a337fd9b3598080a2a04 (diff) | |
parent | ae4df31df49ba8055aa197d7c292abab9490a9d3 (diff) | |
download | mariadb-git-3eaeeca6ded26dd08f413d89a0b23be1f1dde36b.tar.gz |
Merge neptunus.(none):/home/msvensson/mysql/same_tools/my41-same_tools
into neptunus.(none):/home/msvensson/mysql/same_tools/my50-same_tools
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | client/mysqltest.c | 13 | ||||
-rw-r--r-- | mysql-test/include/ctype_like_escape.inc | 4 | ||||
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 20 |
4 files changed, 30 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am index d48f0e24966..d74615b624d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -125,6 +125,11 @@ test-force-pl: ./mysql-test-run.pl --force && \ ./mysql-test-run.pl --ps-protocol --force +test-force-pl-mem: + cd mysql-test; \ + ./mysql-test-run.pl --force --mem && \ + ./mysql-test-run.pl --ps-protocol --force --mem + # Don't update the files from bitkeeper %::SCCS/s.% diff --git a/client/mysqltest.c b/client/mysqltest.c index cf3afced427..8d8c20c3e8f 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -818,6 +818,9 @@ void verbose_msg(const char *fmt, ...) va_start(args, fmt); fprintf(stderr, "mysqltest: "); + if (cur_file && cur_file != file_stack) + fprintf(stderr, "In included file \"%s\": ", + cur_file->file_name); if (start_lineno != 0) fprintf(stderr, "At line %u: ", start_lineno); vfprintf(stderr, fmt, args); @@ -839,7 +842,15 @@ void warning_msg(const char *fmt, ...) dynstr_append(&ds_warning_messages, "mysqltest: "); if (start_lineno != 0) { - len= my_snprintf(buff, sizeof(buff), "Warning detected at line %d: ", + dynstr_append(&ds_warning_messages, "Warning detected "); + if (cur_file && cur_file != file_stack) + { + len= my_snprintf(buff, sizeof(buff), "in included file %s ", + cur_file->file_name); + dynstr_append_mem(&ds_warning_messages, + buff, len); + } + len= my_snprintf(buff, sizeof(buff), "at line %d: ", start_lineno); dynstr_append_mem(&ds_warning_messages, buff, len); diff --git a/mysql-test/include/ctype_like_escape.inc b/mysql-test/include/ctype_like_escape.inc index ac97fbaa1a0..d4abc33c178 100644 --- a/mysql-test/include/ctype_like_escape.inc +++ b/mysql-test/include/ctype_like_escape.inc @@ -11,8 +11,8 @@ insert into t1 values('ab_def'); insert into t1 values('abc_ef'); insert into t1 values('abcd_f'); insert into t1 values('abcde_'); --- should return ab_def +# should return ab_def select c1 as c1u from t1 where c1 like 'ab\_def'; --- should return ab_def +# should return ab_def select c1 as c2h from t1 where c1 like 'ab#_def' escape '#'; drop table t1; diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 6c8befdafa6..23a9b30d76b 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1180,9 +1180,10 @@ sub check_mysqld_features () { # Look for version if ( $line =~ /^$exe_mysqld\s\sVer\s([0-9]*)\.([0-9]*)\.([0-9]*)/ ) { - print "Major: $1 Minor: $2 Build: $3\n"; + #print "Major: $1 Minor: $2 Build: $3\n"; $mysql_version_id= $1*10000 + $2*100 + $3; - print "mysql_version_id: $mysql_version_id\n"; + #print "mysql_version_id: $mysql_version_id\n"; + mtr_report("MySQL Version $1.$2.$3"); } } else @@ -2703,15 +2704,16 @@ sub do_before_run_mysqltest($) my $tinfo= shift; my $tname= $tinfo->{'name'}; - # Remove old reject file - if ( $opt_suite eq "main" ) + # Remove old files produced by mysqltest + my $result_dir= "r"; + if ( ! $opt_suite eq "main" ) { - unlink("r/$tname.reject"); - } - else - { - unlink("suite/$opt_suite/r/$tname.reject"); + $result_dir= "suite/$opt_suite/r"; } + unlink("$result_dir/$tname.reject"); + unlink("$result_dir/$tname.progress"); + unlink("$result_dir/$tname.log"); + unlink("$result_dir/$tname.warnings"); mtr_tonewfile($path_current_test_log,"$tname\n"); # Always tell where we are |