Bug #5050 mysql-test-run fails on rpl_trunc_binlog after 'make install'
Submitted: 14 Aug 2004 0:58 Modified: 14 Aug 2004 15:30
Reporter: Patrick Lin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:5.0.1 OS:Linux (Fedora 2)
Assigned to: CPU Architecture:Any

[14 Aug 2004 0:58] Patrick Lin
Description:
Hi,

I built the 5.0.1-alpha snapshot.  Then I ran "mysql-test-run --local rpl_trunc_binlog" in the mysql-test from the BUILD_DIR.  This ran fine:

Installing Test Databases
Removing Stale Files
Installing Master Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables     --basedir=. --datadir=./var/master-data --skip-innodb --skip-ndbcluster --skip-bdb     --language=../sql/share/english/ --character-sets-dir=../sql/share/charsets/
Installing Slave Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables     --basedir=. --datadir=./var/slave-data --skip-innodb --skip-ndbcluster --skip-bdb     --language=../sql/share/english/ --character-sets-dir=../sql/share/charsets/
Manager disabled, skipping manager start.
Loading Standard Test Databases
Starting Tests

 TEST                           RESULT
------------------------------------------
rpl_trunc_binlog               [ pass ]
------------------------------------------

Ending Tests
Shutting-down MySQL daemon

Master shutdown finished
Slave shutdown finished
All 1 tests were successful.

Later, when I ran the same test after "make install", I got the following result:

Installing Test Databases
Removing Stale Files
Installing Master Databases
running  ../libexec/mysqld --no-defaults --bootstrap --skip-grant-tables     --basedir=.. --datadir=mysql-test/var/master-data --skip-innodb --skip-ndbcluster --skip-bdb     
Installing Slave Databases
running  ../libexec/mysqld --no-defaults --bootstrap --skip-grant-tables     --basedir=.. --datadir=mysql-test/var/slave-data --skip-innodb --skip-ndbcluster --skip-bdb     
Manager disabled, skipping manager start.
Loading Standard Test Databases
Starting Tests

 TEST                           RESULT
------------------------------------------
rpl_trunc_binlog               [ fail ]

Errors are (from /usr/local/mysql-test/var/log/mysqltest-time) :
cp: cannot stat `std_data/trunc_binlog.000001': No such file or directory
/usr/local/bin/mysqltest: system command 'cp std_data/trunc_binlog.000001 var/log/master-bin.000001' failed
(the last lines may be the most important ones)

Ending Tests
Shutting-down MySQL daemon

Master shutdown finished
Slave shutdown finished
Resuming Tests

------------------------------------------

Ending Tests
Shutting-down MySQL daemon

Master shutdown finished
Slave shutdown finished
Failed 1/1 tests, 00.0% successful.

The log files in /usr/local/mysql-test/var/log may give you some hint
of what when wrong.
If you want to report this error, please read first the documentation at
http://www.mysql.com/doc/en/MySQL_test_suite.html

It seems that the file:

mysql-test/std_data/trunc_binlog.000001 

failed to be copied during "make install".

Thanks,
Patrick

How to repeat:
1) Build 5.0.1-alpha snapshot.
2) Do "make install".
3) Run "mysql-test/mysql-test-run --local rpl_trunc_binlog" from INSTALL_DIR.

Suggested fix:
* Add install of "mysql-test/std_data/trunc_binlog.000001".
[14 Aug 2004 15:30] Guilhem Bichot
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Thanks a lot for the good explanation which made it easy to fix.
Fixed in 4.0 (and 4.1 and 5.0):
ChangeSet@1.1955.1.4, 2004-08-14 15:24:40+02:00, guilhem@mysql.com