Bug #41258 mysql-test-run does not copy subdirectories of std_data on Windows (5.0 only)
Submitted: 5 Dec 2008 13:12 Modified: 6 Jan 2009 18:35
Reporter: Patrick Crews Email Updates:
Status: Closed Impact on me:
Category:Tests: Server Severity:S3 (Non-critical)
Version:5.0 OS:Microsoft Windows
Assigned to: Patrick Crews CPU Architecture:Any
Tags: mysql-test-run, std-data, windows

[5 Dec 2008 13:12] Patrick Crews
mysql-test-run.pl does not copy subdirectories of mysql-test/std_data on Windows.

While symbolic links are used on *Nix systems, on Windows, we directly copy the contents to a new folder - mysql-test/var/std_data_ln.

As it currently stands, only the files from std-data are copied, subdirectories and their contents are not.  This causes a number of failures of the funcs_1 suite on Windows.

This only occurs on 5.0.  5.1 and 6.0 versions of mysql-test-run.pl do not do this.

How to repeat:
Run the funcs_1 suite against a version of 5.0 on Windows and observe the failures:

innodb_storedproc_03           [ fail ]

--- C:/mysql-5.0-bugteam/mysql-test/suite/funcs_1/r/innodb_storedproc_03.result	2008-10-01 03:35:42 +03:00
+++ C:\mysql-5.0-bugteam\mysql-test\suite\funcs_1\r\innodb_storedproc_03.reject	2008-12-05 16:08:02 +03:00
@@ -12,55 +12,43 @@
 create table t1(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int)
 engine = <engine_to_be_tested>;
 load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t4.txt' into table t1;
+ERROR HY000: File '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t4.txt' not found (Errcode: 2)

^ The above data file *is* in mysql-test/std_data/funcs_1/ but is not copied.

Suggested fix:
Fix mysql-test-run.pl so that subdirectories and their contents are copied.  This is a very simple fix.
[5 Dec 2008 13:21] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:


2732 Patrick Crews	2008-12-05
      Bug#41258: mysql-test-run does not copy subdirectories of std_data on Windows (5.0 only)
      Altered how we copy data from mysql-test/std_data on Windows to match what we are doing in 5.1 and 6.0
[6 Jan 2009 13:57] Bugs System
Pushed into 5.0.76 (revid:joro@sun.com-20090105160414-8q9j4bi1klkfwiup) (version source revid:azundris@mysql.com-20081230114734-nmsc37ak330zlygn) (merge vers: 5.0.76) (pib:6)
[6 Jan 2009 18:35] Paul Dubois
Test suite changes. No changelog entry needed.
[15 Jan 2009 6:34] Bugs System
Pushed into 5.1.31 (revid:joro@sun.com-20090115053147-tx1oapthnzgvs1ro) (version source revid:azundris@mysql.com-20081230114838-cn52tu180wcrvh0h) (merge vers: 5.1.31) (pib:6)
[19 Jan 2009 11:23] Bugs System
Pushed into 5.1.31-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090119095303-uwwvxiibtr38djii) (version source revid:tomas.ulin@sun.com-20090115073240-1wanl85vlvw2she1) (merge vers: 5.1.31-ndb-6.2.17) (pib:6)
[19 Jan 2009 13:01] Bugs System
Pushed into 5.1.31-ndb-6.3.21 (revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (version source revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (merge vers: 5.1.31-ndb-6.3.21) (pib:6)
[19 Jan 2009 16:06] Bugs System
Pushed into 5.1.31-ndb-6.4.1 (revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (version source revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (merge vers: 5.1.31-ndb-6.4.1) (pib:6)
[20 Jan 2009 18:54] Bugs System
Pushed into 6.0.10-alpha (revid:joro@sun.com-20090119171328-2hemf2ndc1dxl0et) (version source revid:azundris@mysql.com-20081230114916-c290n83z25wkt6e4) (merge vers: 6.0.9-alpha) (pib:6)