Bug #31777 Make mysql-test-run.pl accept full (or relative) path names
Submitted: 23 Oct 2007 9:02 Modified: 23 Oct 2007 9:52
Reporter: Georgi Kodinov Email Updates:
Status: Can't repeat Impact on me:
None 
Category:Tests: Server Severity:S3 (Non-critical)
Version:5.1.23 (BK) OS:Linux
Assigned to: CPU Architecture:Any
Tags: regression

[23 Oct 2007 9:02] Georgi Kodinov
Description:
Can we please have mysql-test.pl accept full (or relative) path file names again ?
It was really convenient in 5.0.x when combined with the shell's auto-complete ability

How to repeat:
In 5.0.x:
cd mysql-test
./mysql-test-run.pl t/gis.test

works and finds the test

in 5.1.x:
cd mysql-test
./mysql-test-run.pl t/gis.test
...
mysql-test-run: *** ERROR: Test case gis (/home/kgeorge/mysql/work/B30825-5.1-opt/mysql-test/suite/binlog/t/gis.test) is not found

whereas :
./mysql-test-run.pl gis

works

Suggested fix:
strip the patch the same way it probably was done in 5.0.x's mysql-test-run.pl
[23 Oct 2007 9:32] Sveta Smirnova
I can not repeat described behaviour with today mysql-5.1 tree:

$./mysql-test-run.pl t/gis.test
Logging: ./mysql-test-run.pl t/gis.test
MySQL Version 5.1.23
Using binlog format 'mixed'
Using ndbcluster when necessary, mysqld supports it
Setting mysqld to support SSL connections
Binaries are debug compiled
Using MTR_BUILD_THREAD      = 0
Using MASTER_MYPORT         = 9306
Using MASTER_MYPORT1        = 9307
Using SLAVE_MYPORT          = 9308
Using SLAVE_MYPORT1         = 9309
Using SLAVE_MYPORT2         = 9310
Using NDBCLUSTER_PORT       = 9310
Using NDBCLUSTER_PORT_SLAVE = 9311
Using IM_PORT               = 9312
Using IM_MYSQLD1_PORT       = 9313
Using IM_MYSQLD2_PORT       = 9314
Killing Possible Leftover Processes
Removing Stale Files
Creating Directories
Installing Master Database
=======================================================

TEST                           RESULT         TIME (ms)
-------------------------------------------------------

main.gis                       [ pass ]           3752
-------------------------------------------------------
Stopping All Servers
All 1 tests were successful.
The servers were restarted 1 times
Spent 3.752 of 7 seconds executing testcases

$./mysql-test-run.pl `pwd`/t/alias.test
Logging: ./mysql-test-run.pl /users/ssmirnova/src/mysql-5.1/mysql-test/t/alias.test
MySQL Version 5.1.23
Using binlog format 'mixed'
Using ndbcluster when necessary, mysqld supports it
Setting mysqld to support SSL connections
Binaries are debug compiled
Using MTR_BUILD_THREAD      = 0
Using MASTER_MYPORT         = 9306
Using MASTER_MYPORT1        = 9307
Using SLAVE_MYPORT          = 9308
Using SLAVE_MYPORT1         = 9309
Using SLAVE_MYPORT2         = 9310
Using NDBCLUSTER_PORT       = 9310
Using NDBCLUSTER_PORT_SLAVE = 9311
Using IM_PORT               = 9312
Using IM_MYSQLD1_PORT       = 9313
Using IM_MYSQLD2_PORT       = 9314
Killing Possible Leftover Processes
Removing Stale Files
Creating Directories
Installing Master Database
=======================================================

TEST                           RESULT         TIME (ms)
-------------------------------------------------------

main.alias                     [ pass ]            256
-------------------------------------------------------
Stopping All Servers
All 1 tests were successful.
The servers were restarted 1 times
Spent 0.256 of 4 seconds executing testcases
[23 Oct 2007 9:52] Sveta Smirnova
Marked as "Can't repeat" after getting confirmation from reporter about bug is not repeatable with mysql-5.1 tree.