This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] [NFC] Split fuzzer.test into smaller tests
ClosedPublic

Authored by george.karpenkov on May 7 2018, 3:55 PM.

Details

Summary

Keeping fuzzer.test together as a gigantic test has no advantages and multiple disadvantages:

  • Worse test parallelization (fuzzer.test is always blocking the test run on a machine with many cores)
  • Debugging test failures is made more difficult (not clear what fails from fuzzer.test failing)
  • Makes porting tests to new platforms more difficult (whenever fuzzer.test fails have to inspect the output to figure out what is going on, and then restart all of it)
  • Hides dead code (in our case, "Done1000000" FileCheck variable was never used, DISABLED: not %t-UninstrumentedTest-Uninstrumented was never compiled, and there was small amount of duplication vs. simple-cmp.test)
  • Makes correspondence between LIT .test files and .cpp files less straightforward

Diff Detail

Repository
rL LLVM

Event Timeline

vitalybuka accepted this revision.May 10 2018, 11:31 AM
This revision is now accepted and ready to land.May 10 2018, 11:31 AM

For consistency with existing tests, could you name the new test files with dashes as word separators?

This revision was automatically updated to reflect the committed changes.
compiler-rt/trunk/test/fuzzer/buffer-overflow-on-input.test