Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.01 KB

File metadata and controls

43 lines (34 loc) · 1.01 KB

MySQLTuner-perl Testing Guide

Unit and Regression Tests

The project uses Test::More for unit testing. All tests are located in the tests/ directory.

Running Unit Tests

make unit-tests
# OR
perl build/audit_tests.pl

Laboratory Tests (Docker)

The laboratory environment allows testing mysqltuner.pl against multiple database versions.

Setup Vendor Repositories

make vendor_setup

Running Lab Tests

# Run tests against default environments (mysql84, mariadb1011, percona80)
make test

# Run all database lab tests
make test-all

# Run tests against a specific container
make test-container CONTAINER=my_db_name

Lab Audit

After running tests, you can audit the generated logs:

make audit-logs

Test Scenarios

Every diagnostic change should ideally be validated in three scenarios:

  1. Standard: ./mysqltuner.pl --verbose
  2. Container: ./mysqltuner.pl --verbose --container [ID]
  3. Dumpdir: ./mysqltuner.pl --verbose --dumpdir=dumps