What is right with this picture?

Do you know what this is?

debian:~/mysql-cacti-templates/t# php mysql.php 

not ok 1 - basic test to check that the test suite works
#     Failed test (/root/mysql-cacti-templates/t/mysql.php at line 9)
#     got: Array
    [b] => 2

# Looks like you failed 1 tests of 1.

It is the beginning of a test suite, which is long overdue. Writing a test suite for this code would have saved a lot of work ages ago. But as I always say, if you don’t do it from the beginning, it’s much harder to do later. And this code began its life as a script someone else wrote, so I wasn’t there at the beginning. Better late than never.

See Also

I'm Baron Schwartz, the founder and CEO of VividCortex. I am the author of High Performance MySQL and lots of open-source software for performance analysis, monitoring, and system administration. I contribute to various database communities such as Oracle, PostgreSQL, Redis and MongoDB. More about me.