The project uses Test::More for unit testing. All tests are located in the tests/ directory.
make unit-tests
# OR
perl build/audit_tests.plThe laboratory environment allows testing mysqltuner.pl against multiple database versions.
make vendor_setup# 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_nameAfter running tests, you can audit the generated logs:
make audit-logsEvery diagnostic change should ideally be validated in three scenarios:
- Standard:
./mysqltuner.pl --verbose - Container:
./mysqltuner.pl --verbose --container [ID] - Dumpdir:
./mysqltuner.pl --verbose --dumpdir=dumps