Bug #44400 create_mtr_suites.pl port to windows
Submitted: 22 Apr 2009 3:56 Modified: 3 Feb 2010 6:42
Reporter: jack andrews Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-7.0 OS:Microsoft Windows
Assigned to: jack andrews CPU Architecture:Any
Triage: Triaged: D4 (Minor) / R6 (Needs Assessment) / E6 (Needs Assessment)

[22 Apr 2009 3:56] jack andrews
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:
.
[22 Apr 2009 4:13] jack andrews
this is the first run of suite=daily-basic-tests

Attachment: dbts (application/octet-stream, text), 167.88 KiB.

[22 Apr 2009 5:21] jack andrews
but with:

./mysql-test-run.pl  --suite=daily-basic-tests --force --retry=0 --do-test=Db
AsyncGenerator

all pass:

$ grep '\[ pass' mtrDbAsyncGen
daily-basic-tests.DbAsyncGeneratorime_60__1 [ pass ]  203034
daily-basic-tests.DbAsyncGeneratorime_60__100 [ pass ]  86820
daily-basic-tests.DbAsyncGeneratorime_60__1_roc_25 [ pass ]  86740
daily-basic-tests.DbAsyncGeneratorime_60__200 [ pass ]  86944
daily-basic-tests.DbAsyncGeneratorime_60__25 [ pass ]  85071
[3 Feb 2010 6:42] jack andrews
we now use autotest on windows and so we don't need this port.  i suppose.