Recent changes in comm-central’s test mechanisms

There’s been a few changes around comm-central’s automated testing recently that I’ve been meaning to post about.

The most important changes to note are:

  • make check now only runs the compiled-code unit tests (we only have two of these in mailnews).
  • make xpcshell-tests now runs the xpcshell tests that were previously run as part of make check. I have just checked in the patch which means you can now do make -C objdir/mailnews xpcshell-tests like you could with the check command before.
  • The check-one and check-interactive commands remain the same.

I have also just updated the wiki page explaining the numbers on the Tinderbox pages.

The xpcshell-tests also now have shutdown leak statistics enabled. Unfortunately for mailnews we currently have a lot of leaks due to our test harness (which provides a consistent profile directory that isn’t the build directory and a few other things). We’re currently not cleaning the test harness leaks up as this would break check-interactive – a useful tool to developers. Hopefully this will be fixed soon (patch in review) and then we can tidy up our leak logs.