From Fedora Project Wiki

No edit summary
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests MySQL database server using upstream test suite.
|description=This test case tests MySQL database server using upstream test suite. Some tests are known to fail on one or more architectures and users can skip them using --skip-test-list option. Those tests are listed in rh-skipped-tests.list and documentation about the reasons for omitting such tests can be found in that file.
|setup=
|setup=
# Ensure that {{package|mysql-server}}, {{package|mysql}}, {{package|mysql-libs}} packages are installed.
# Ensure that {{package|mysql-server}}, {{package|mysql}}, {{package|mysql-libs}} packages are installed.
Line 8: Line 8:
# Start MySQL server:  {{command |service mysqld start}}
# Start MySQL server:  {{command |service mysqld start}}
# Go to the mysql-test directory: {{command |cd /usr/share/mysql-test/}}
# Go to the mysql-test directory: {{command |cd /usr/share/mysql-test/}}
# Run MySQL test suite:  {{command |./mysql-test-run.pl or ./mysql-test-run}}  
# Run MySQL test suite under mysql user:  {{command |sudo -u mysql ./mysql-test-run --skip-test-list rh-skipped-tests.list}}  
# Wait until the tests finish.
# Wait until the tests finish.
|results=
|results=
# The test-suite should finishes without error, some tests might be disabled or skipped.
# The test-suite should finish without error, some tests might be disabled or skipped.
}}
}}


[[Category:Package_mysql_test_cases]]
[[Category:Package_mysql_test_cases]]

Revision as of 11:54, 13 February 2013

Description

This test case tests MySQL database server using upstream test suite. Some tests are known to fail on one or more architectures and users can skip them using --skip-test-list option. Those tests are listed in rh-skipped-tests.list and documentation about the reasons for omitting such tests can be found in that file.

Setup

  1. Ensure that Package-x-generic-16.pngmysql-server, Package-x-generic-16.pngmysql, Package-x-generic-16.pngmysql-libs packages are installed.

How to test

  1. Switch to root user: su -
  2. Install MySQL test suite: yum -y install mysql-test
  3. Start MySQL server: service mysqld start
  4. Go to the mysql-test directory: cd /usr/share/mysql-test/
  5. Run MySQL test suite under mysql user: sudo -u mysql ./mysql-test-run --skip-test-list rh-skipped-tests.list
  6. Wait until the tests finish.

Expected Results

  1. The test-suite should finish without error, some tests might be disabled or skipped.