If you count the lines of code in the MySQL Cluster (NDB) test
suite (mysql-5.1/storage/ndb/test - and exclude the old ODBC
stuff) you come up with about 104000 lines of code. This is in
contrast to the approximate other 350,000 lines of code for the
NDB engine (excluding the handler, which is an additional 12,000
lines - this isn’t tested much by the NDB test suite…
mysql-test-run.pl is meant to take care of a lot of that).
If you go and check the MyISAM tree, it’s only 40545 lines of
code - for the entire engine. That’s right, the MySQL Cluster
test suite is about 2.5 times the size of MyISAM.
If you look at mysql-test-run.pl tests, which are just lists of
SQL commands with static data, it comes up at 250,000 lines (that
excludes result files). The NDB tests do things programmatically
- so can generate large amounts of data and different loads quite
easily.
The architecture of the NDB tests (commonly referred to …
[Read more]