summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/fuzzer/coverage.test
Commit message (Collapse)AuthorAgeFilesLines
* [libFuzzer] Make coverage.test work on ARM64Julian Lettner2019-02-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This test instruments the following code with coverage, runs the fuzzer once, and asserts that there are uncovered PCs. The ARM64 backend optimizes this code using the `csel` (Conditional select) instruction, which removes all branching from the resulting machine code. The test then fails because we do not have any uncovered PCs. The easiest solution for now is to turn off optimization for the DSOs used in this test. ``` int DSO1(int a) { if (a < 123456) return 0; return 1; } ``` rdar://47646400 Reviewers: kcc Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D58087 llvm-svn: 353780
* [libFuzzer] print uncovered functions when doing -print_coverage=1Kostya Serebryany2019-01-261-0/+1
| | | | llvm-svn: 352263
* [fuzzer] Fix test checks broken after license header updateVitaly Buka2019-01-211-1/+1
| | | | llvm-svn: 351717
* [libFuzzer] Generalize the code for getting the previous offset for ↵George Karpenkov2018-10-101-1/+1
| | | | | | | | | | | | | different architectures Without this change, tests in coverage.test and dump_coverage.test are failing on non-x86_64 platforms. The diff is copied from sanitizer_common library, an alternative would be to link it together with libFuzzer. Differential Revision: https://reviews.llvm.org/D53040 llvm-svn: 344104
* [libFuzzer] Enable tests on WindowsMatt Morehouse2018-09-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Enable tests on Windows and make check-fuzzer pass on it. Make check-fuzzer pass on Windows by fixing libFuzzer, fixing tests, and by disabling tests on Windows. Most of these are disabled temporarily as support for the tests and the features they test will be added incrementally. Other tests will not be enabled since they require things that are not on Windows (eg: afl_driver tests). Every test that was explicitly disabled on Windows has a comment explaining why (unless obvious like merge-posix.test). The lit.cfg file was modified to support running tests on windows. fuzzer-dirs.test was fixed by making the Windows implementation print the same error message as the posix version. merge-control-file.test was fixed by making the test binary end with the ".exe" extension (on all platforms). Patch By: metzman Reviewers: morehouse Reviewed By: morehouse Subscribers: srhines, mgorny Differential Revision: https://reviews.llvm.org/D51549 llvm-svn: 341385
* [libFuzzer] when -print_coverage=1 is given, print more stats (the number of ↵Kostya Serebryany2018-07-191-1/+1
| | | | | | seeds that hit every given function) llvm-svn: 337501
* [libFuzzer] Mark several tests UNSUPPORTED for aarch64.Matt Morehouse2018-06-261-0/+1
| | | | | | | Now that check-fuzzer runs as part of check-all, some aarch64 bots had tests failing. llvm-svn: 335639
* [libFuzzer] [NFC] Remaining minor fixes to support testing on devices.George Karpenkov2018-06-141-7/+7
| | | | | | XFAIL's and adding %run commands. llvm-svn: 334774
* [libFuzzer] [NFC] Prefix all run lines with %runGeorge Karpenkov2018-05-111-2/+2
| | | | | | | | | | This patch does not do anything, but paves the way for future changes, where %run command will be expanded into a script performing the testing on device. Differential Revision: https://reviews.llvm.org/D46553 llvm-svn: 332144
* [libFuzzer] refactor the implementation of -print_coverageKostya Serebryany2018-05-111-11/+7
| | | | llvm-svn: 332073
* Move libFuzzer to compiler_rt.George Karpenkov2017-08-211-0/+21
Resulting library binaries will be named libclang_rt.fuzzer*, and will be placed in Clang toolchain, allowing redistribution. Differential Revision: https://reviews.llvm.org/D36908 llvm-svn: 311407
OpenPOWER on IntegriCloud