[libFuzzer] [NFC] Split fuzzer.test into smaller tests
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 11 May 2018 21:29:53 +0000 (21:29 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 11 May 2018 21:29:53 +0000 (21:29 +0000)
commit669375814c0aef15b7f018ccd9e91b3ec9883efc
treeff68056d9e6fe1e4d19e18f4cbdff906b8a5ece6
parentfa57519e317f05ba8c01814062125db1f4793829
[libFuzzer] [NFC] Split fuzzer.test into smaller tests

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

Differential Revision: https://reviews.llvm.org/D46557

llvm-svn: 332145
13 files changed:
compiler-rt/test/fuzzer/bogus-initialize.test [new file with mode: 0644]
compiler-rt/test/fuzzer/buffer-overflow-on-input.test [new file with mode: 0644]
compiler-rt/test/fuzzer/counters.test [new file with mode: 0644]
compiler-rt/test/fuzzer/dso.test [new file with mode: 0644]
compiler-rt/test/fuzzer/full-coverage-set.test [new file with mode: 0644]
compiler-rt/test/fuzzer/fuzzer.test [deleted file]
compiler-rt/test/fuzzer/initialize.test [new file with mode: 0644]
compiler-rt/test/fuzzer/not-instrumented.test [new file with mode: 0644]
compiler-rt/test/fuzzer/null-deref-on-empty.test [new file with mode: 0644]
compiler-rt/test/fuzzer/null-deref.test [new file with mode: 0644]
compiler-rt/test/fuzzer/simple-cmp.test
compiler-rt/test/fuzzer/simple.test [new file with mode: 0644]
compiler-rt/test/fuzzer/strncmp-oob.test [new file with mode: 0644]