Bug #24711 regression tests non-functional in 5.0.30
Submitted: 30 Nov 2006 0:51 Modified: 30 Dec 2006 14:32
Reporter: [ name withheld ] Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.0.30 OS:
Assigned to: CPU Architecture:Any

[30 Nov 2006 0:51] [ name withheld ]
Description:
mysql-test-run.sh no longer works for running tests in a build tree, because it miscomputes $BASEDIR.

How to repeat:
unpack tarball
cd mysql-5.0.30
make
make test

Fails to run any tests :-(

Suggested fix:
diff -Naur mysql-5.0.30.orig/mysql-test/mysql-test-run.sh mysql-5.0.30/mysql-test/mysql-test-run.sh
--- mysql-5.0.30.orig/mysql-test/mysql-test-run.sh	2006-11-23 15:13:25.000000000 -0500
+++ mysql-5.0.30/mysql-test/mysql-test-run.sh	2006-11-29 19:29:28.000000000 -0500
@@ -192,7 +192,6 @@
    # so the existence of "/usr/share/bin/" would make this test fail.
    BASEDIR=`pwd`
 else
-   cd ..
    BASEDIR=`pwd`
 fi
[30 Nov 2006 14:32] Valeriy Kravchuk
Thank you for a problem report. In 5.0.32-BK we have now:

...
# BASEDIR is always above mysql-test directory ...
MYSQL_TEST_DIR=`pwd`
cd ..

if [ -d ./sql ] ; then
   SOURCE_DIST=1
else
   BINARY_DIST=1

  # ... one level for tar.gz, two levels for a RPM installation
  if [ ! -f ./bin/mysql_upgrade ] ; then
     # Has to be RPM installation
    cd ..
  fi
fi
BASEDIR=`pwd`

Please, check if this will work in your case. You may also try to use mysql-test-run.pl as a workaround.
[1 Jan 2007 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".