Description:
with this patch (which makes create_mtr_suites.pl fail on non-windows):
Index: 70/storage/ndb/test/run-test/create_mtr_suites.pl
===================================================================
--- 70.orig/storage/ndb/test/run-test/create_mtr_suites.pl 2009-04-09 13:41
:29.040000000 +1000
+++ 70/storage/ndb/test/run-test/create_mtr_suites.pl 2009-04-22 13:46:49.2120
00000 +1000
@@ -73,8 +73,8 @@
{
my $name = $test->{name};
my $cmd = $test->{cmd};
- my $path = "../storage/ndb/test/ndbapi/$cmd";
- if (!-x $path)
+ my $path = "../storage/ndb/test/ndbapi/debug/$cmd.exe";
+ if (!-s $path)
{
print "Could not find: '$path', skipping it \n";
next;
@@ -92,10 +92,11 @@
if ($cmd eq "DbAsyncGenerator")
{
print $out "## DbCreate\n";
- print $out "--exec ../storage/ndb/test/ndbapi/DbCreate 2>&1\n";
+ print $out "--exec ..\\storage\\ndb\\test\\ndbapi\\debug\\DbCreate.exe\n"
;
}
print $out "## $cmd $args\n";
+ $path =~ s/\//\\/g;
print $out "--exec $path $args 2>&1\n";
print $out "exit;\n";
}
when run:
jack@asus /cygdrive/c/w/repo/70/mysql-test
$ ../storage/ndb/test/run-test/create_mtr_suites.pl
Reading tests from: '../storage/ndb/test/run-test/daily-basic-tests.txt'...
ok!
Creating suite 'suite/daily-basic-tests' ...
ok!
Copying my.cnf ...
from '../storage/ndb/test/run-test/mtr.cnf'
ok!
Generating .test files ...
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
Could not find: '../storage/ndb/test/ndbapi/debug/testSingleUserMode.exe', skipp
ing it
Could not find: '../storage/ndb/test/ndbapi/debug/testLimits.exe', skipping it
Could not find: '../storage/ndb/test/ndbapi/debug/testLimits.exe', skipping it
Could not find: '../storage/ndb/test/ndbapi/debug/testLimits.exe', skipping it
Could not find: '../storage/ndb/test/ndbapi/debug/testLimits.exe', skipping it
ok!
Reading tests from: '../storage/ndb/test/run-test/daily-devel-tests.txt'...
ok!
Creating suite 'suite/daily-devel-tests' ...
ok!
Copying my.cnf ...
from '../storage/ndb/test/run-test/mtr.cnf'
ok!
Generating .test files ...
Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping
it
ok!
but as it produces enough failing tests, i haven't worked further on the port.
How to repeat:
.
Description: with this patch (which makes create_mtr_suites.pl fail on non-windows): Index: 70/storage/ndb/test/run-test/create_mtr_suites.pl =================================================================== --- 70.orig/storage/ndb/test/run-test/create_mtr_suites.pl 2009-04-09 13:41 :29.040000000 +1000 +++ 70/storage/ndb/test/run-test/create_mtr_suites.pl 2009-04-22 13:46:49.2120 00000 +1000 @@ -73,8 +73,8 @@ { my $name = $test->{name}; my $cmd = $test->{cmd}; - my $path = "../storage/ndb/test/ndbapi/$cmd"; - if (!-x $path) + my $path = "../storage/ndb/test/ndbapi/debug/$cmd.exe"; + if (!-s $path) { print "Could not find: '$path', skipping it \n"; next; @@ -92,10 +92,11 @@ if ($cmd eq "DbAsyncGenerator") { print $out "## DbCreate\n"; - print $out "--exec ../storage/ndb/test/ndbapi/DbCreate 2>&1\n"; + print $out "--exec ..\\storage\\ndb\\test\\ndbapi\\debug\\DbCreate.exe\n" ; } print $out "## $cmd $args\n"; + $path =~ s/\//\\/g; print $out "--exec $path $args 2>&1\n"; print $out "exit;\n"; } when run: jack@asus /cygdrive/c/w/repo/70/mysql-test $ ../storage/ndb/test/run-test/create_mtr_suites.pl Reading tests from: '../storage/ndb/test/run-test/daily-basic-tests.txt'... ok! Creating suite 'suite/daily-basic-tests' ... ok! Copying my.cnf ... from '../storage/ndb/test/run-test/mtr.cnf' ok! Generating .test files ... Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/testSingleUserMode.exe', skipp ing it Could not find: '../storage/ndb/test/ndbapi/debug/testLimits.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/testLimits.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/testLimits.exe', skipping it Could not find: '../storage/ndb/test/ndbapi/debug/testLimits.exe', skipping it ok! Reading tests from: '../storage/ndb/test/run-test/daily-devel-tests.txt'... ok! Creating suite 'suite/daily-devel-tests' ... ok! Copying my.cnf ... from '../storage/ndb/test/run-test/mtr.cnf' ok! Generating .test files ... Could not find: '../storage/ndb/test/ndbapi/debug/atrt-testBackup.exe', skipping it ok! but as it produces enough failing tests, i haven't worked further on the port. How to repeat: .