<< previous page   --   table of contents   --   next page >>
| | | | | | | |
  • Return to Table of Contents
  • Table of Contents

    1. General Information
    2. MySQL Installation
    3. Tutorial Introduction
    4. Database Administration
    5. MySQL Optimisation
    6. MySQL Language Reference
    7. MySQL Table Types
    8. MySQL APIs
    9. Extending MySQL

    614 MySQL Technical Reference for Version 4.0.3 Until recently,  our main full-coverage  test  suite  was  based  on proprietary customer  data and  for  that  reason  has  not  been  publicly  available.   The  only  publicly  available  part  of our  testing  process  consisted  of  the  crash-me  test,  a  Perl  DBI/DBD  benchmark  found in the sql-bench directory, and miscellaneous tests located in tests directory.  The lack of  a  standardised  publicly  available  test  suite  has  made  it  dicult  for  our  users,  as  well developers, to do regression tests on the MySQL code.  To address this problem, we have created a new test system that is included in the source and binary distributions starting in Version 3.23.29. The current set of test cases doesn't test everything in MySQL, but it should catch most obvious bugs in the SQL processing code, OS/library issues, and is quite thorough in testing replication.  Our eventual goal is to have the tests cover 100% of the code.  We welcome contributions to our test suite.  You may especially want to contribute tests that examine the functionality critical to your system, as this will ensure that all future MySQL releases will work well with your applications. 9.1.2.1  Running the MySQL Test Suite The test system consist of a test language interpreter (mysqltest),  a shell script to run all  tests(mysql-test-run),  the  actual  test  cases  written  in  a  special  test  language,  and their  expected  results.   To  run  the  test  suite  on  your  system  after  a  build,  type  make test or mysql-test/mysql-test-run from the source root.  If you have installed a binary distribution, cd to the install root (eg.  /usr/local/mysql), and do scripts/mysql-test- run.  All tests should succeed.  If not, you should try to nd out why and report the problem if this is a bug in MySQL. See Section 9.1.2.3 [Reporting mysqltest bugs], page 615. If you have a copy of mysqld running on the machine where you want to run the test suite you do not have to stop it, as long as it is not using ports 9306 and 9307.  If one of those ports is taken, you should edit mysql-test-run and change the values of the master and/or slave port to one that is available. You can run one individual test case with mysql-test/mysql-test-run test_name. If one test fails, you should test running mysql-test-run with the --force option to check if any other tests fails. 9.1.2.2  Extending the MySQL Test Suite You can use the mysqltest language to write your own test cases.  Unfortunately, we have not yet written full documentation for it - we plan to do this shortly.  You can, however, look at our current test cases and use them as an example.  The following points should help you get started:    The tests are located in mysql-test/t/*.test    A test case consists of  ;  terminated statements and is similar to the input of  mysql command-line client.  A statement by default is a query to be sent to MySQL server, unless it is recognised as internal command (eg.  sleep).
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    MERCHANT ACCOUNTS
    DEDICATED SERVERS
    E-COMMERCE HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN
    REGISTRATION
    MANAGE
    YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    Corporate Info
    ABOUT US
    OUR NETWORK
    CONTACT US
    SITE MAP
    Copyright © 2002 Dyntex Group, Inc. All Rights Reserved
  • Return to Table of Contents
  • Back to top

  • Web Hosting: Manuals & FAQ's

    1. Unix-Based Web Hosting
    2. Unix Dedicated Servers
    3. Windows Dedicated Servers
    4. CuteFTP User’s Guide
    5. CuteHTML User’s Guide
    6. WS_FTP Pro User's Guide
    7. Miva Order User's Guide
    8. Miva Merchant User's Guide