summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/fuzzer.test
Commit message (Collapse)AuthorAgeFilesLines
* Moving libFuzzer from LLVM to compiler-rt.George Karpenkov2017-08-211-70/+0
| | | | | | | | | This change only removes libFuzzer tests and CMake machinery, the source copy temporarily remains at the old location. Differential Revision: https://reviews.llvm.org/D36980 llvm-svn: 311405
* [libFuzzer] explicitly use -fsanitize-coverage=trace-pc-guard in ↵Kostya Serebryany2017-08-141-1/+1
| | | | | | test/dump_coverage.test; mark print_coverage/dump_coverage as To-be-deprecated llvm-svn: 310877
* [libFuzzer] use the in-binary pc table (instead of PCs captured at run-time) ↵Kostya Serebryany2017-08-041-5/+0
| | | | | | to implement -exit_on_src_pos llvm-svn: 310151
* [libFuzzer] remove the now redundant 'LLVMFuzzer-' prefix from libFuzzer testsKostya Serebryany2017-08-041-35/+35
| | | | llvm-svn: 310110
* Port libFuzzer tests to LIT. Do not require two-stage build for check-fuzzer.George Karpenkov2017-08-041-20/+35
| | | | | | | | | | | | | | | | | | | | | This revision ports all libFuzzer tests apart from the unittest to LIT. The advantages of doing so include: - Tests being self-contained - Much easier debugging of a single test - No need for using a two-stage compilation The unit-test is still compiled using CMake, but it does not need a freshly built compiler. NOTE: The previous two-stage bot configuration will NOT work, as in the second stage build LLVM_USE_SANITIZER is set, which disables ASAN from being built. Thus bots will be reconfigured in the next few commits. Differential Revision: https://reviews.llvm.org/D36295 llvm-svn: 310075
* Generate error reports when a fuzz target exits.Matt Morehouse2017-07-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | Summary: Implements https://github.com/google/sanitizers/issues/835. Flush stdout before exiting in test cases. Since the atexit hook is used for exit reports, pending prints to stdout can be lost if they aren't flushed before calling exit(). Expect tests to have non-zero exit code if exit() is called. Reviewers: vitalybuka, kcc Reviewed By: kcc Subscribers: eraman, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D35602 llvm-svn: 308669
* [libFuzzer] Change Uninstrumented test name.Marcos Pividori2017-02-081-1/+1
| | | | | | | | | On Windows, executables with the word "uninst" included in their names are associated with administrator privileges. Differential Revision: https://reviews.llvm.org/D29549 llvm-svn: 294387
* [libFuzzer] Update fuzzer.test to properly set environment variables.Marcos Pividori2017-02-081-1/+1
| | | | | | | | Use env to set environment variables, so it works on Windows and Linux. Differential Revision: https://reviews.llvm.org/D29537 llvm-svn: 294385
* [libFuzzer] Update test to consider different exceptions.Marcos Pividori2017-02-081-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D29531 llvm-svn: 294377
* [libFuzzer] use print+exit(1) instead of assert to report an errorKostya Serebryany2017-01-211-1/+1
| | | | llvm-svn: 292685
* [libFuzzer] add an assert to protect against LLVMFuzzerInitialize changing ↵Kostya Serebryany2017-01-201-0/+3
| | | | | | argv[0] llvm-svn: 292652
* [libFuzzer] build libFuzzer itself with asanKostya Serebryany2016-12-121-1/+2
| | | | llvm-svn: 289469
* [libFuzzer] test cleanupKostya Serebryany2016-12-101-5/+3
| | | | llvm-svn: 289312
* [libFuzzer] switch all libFuzzer tests to use ↵Kostya Serebryany2016-12-101-5/+0
| | | | | | -fsanitize-coverage=trace-pc-guard. Support for the previosly used instrumentation will be removed in the following changes llvm-svn: 289311
* [libFuzzer] enable use_cmp by defaultKostya Serebryany2016-10-271-1/+1
| | | | llvm-svn: 285353
* [libFuzzer] add StandaloneFuzzTargetMain.c and a test for itKostya Serebryany2016-10-251-1/+1
| | | | llvm-svn: 285135
* [libFuzzer] add a test for asan's strict_string_checks=1Kostya Serebryany2016-10-221-0/+4
| | | | llvm-svn: 284902
* [libFuzzer] refactoring to make -shrink=1 work for value profile, added a test.Kostya Serebryany2016-10-051-5/+5
| | | | llvm-svn: 283409
* [libFuzzer] add ShrinkValueProfileTest, move code around, NFCKostya Serebryany2016-10-051-1/+1
| | | | llvm-svn: 283286
* [libFuzzer] add -exit_on_src_pos to test libFuzzer itself, add a test script ↵Kostya Serebryany2016-09-271-0/+4
| | | | | | for RE2 that uses this flag llvm-svn: 282458
* [libFuzzer] change trace-pc to use 8-byte guardsKostya Serebryany2016-09-171-0/+4
| | | | llvm-svn: 281810
* [libFuzzer] make caller-callee feedback work with trace-pc-guardKostya Serebryany2016-09-151-1/+2
| | | | llvm-svn: 281667
* [libFuzzer] add 8-bit counters to trace-pc-guard handlerKostya Serebryany2016-09-151-1/+7
| | | | llvm-svn: 281568
* [libFuzzer] start using trace-pc-guard as an alternative source of coverageKostya Serebryany2016-09-141-0/+1
| | | | llvm-svn: 281435
* [libFuzzer] add a test that is built w/o coverage instrumentation but has ↵Kostya Serebryany2016-06-081-0/+3
| | | | | | the coverage rt (it should now fail with a descriptive message) llvm-svn: 272090
* [libfuzzer] splitting fuzzer.testMike Aizatsky2016-06-031-97/+0
| | | | llvm-svn: 271697
* [libFuzzer] when an invalid flag is given, warn, but don't crashKostya Serebryany2016-06-011-0/+4
| | | | llvm-svn: 271404
* [libFuzzer] use __sanitizer_set_report_fd with -close_fd_mask. This allows ↵Kostya Serebryany2016-05-271-1/+3
| | | | | | us to keep asan reports when closing target's stderr llvm-svn: 271053
* [libFuzzer] reimplement the way we do -only_ascii to allow more 'const' in ↵Kostya Serebryany2016-05-261-0/+3
| | | | | | function declarations. Add a test for -only_ascii. NFC intended llvm-svn: 270900
* [libFuzzer] print stats if we crash on empty inputKostya Serebryany2016-05-251-0/+3
| | | | llvm-svn: 270639
* [libFuzzer] print the file name before executing the input so that if there ↵Kostya Serebryany2016-05-131-2/+2
| | | | | | is a crash we know which files has caused it llvm-svn: 269450
* [libFuzzer] print stats after running individual inputsKostya Serebryany2016-05-041-0/+4
| | | | llvm-svn: 268547
* [libFuzzer] warn if the corpus is emptyKostya Serebryany2016-04-181-0/+1
| | | | llvm-svn: 266670
* [libFuzzer] add a better warning for command line flags with -- (two dashes)Kostya Serebryany2016-04-151-0/+2
| | | | llvm-svn: 266480
* [libFuzzer] don't report memory leaks if we are dying due to a timeout (just ↵Kostya Serebryany2016-03-241-4/+0
| | | | | | use _Exit instead of exit in the timeout callback) llvm-svn: 264237
* [libFuzzer] add a flag close_fd_mask so that we can silence spammy targets ↵Kostya Serebryany2016-03-181-0/+29
| | | | | | by closing stderr/stdout llvm-svn: 263831
* [libFuzzer] read corpus dirs recursivelyKostya Serebryany2016-03-181-0/+9
| | | | llvm-svn: 263773
* [libFuzzer] deprecate several flagsKostya Serebryany2016-03-171-1/+1
| | | | llvm-svn: 263739
* [libFuzzer] add generic signal handlers so that libFuzzer can report at ↵Kostya Serebryany2016-03-011-0/+5
| | | | | | least something if ASan is not handlig the signals for us. Remove abort_on_timeout flag. llvm-svn: 262415
* [libFuzzer] add -print_final_stats=1 flagKostya Serebryany2016-02-261-0/+8
| | | | llvm-svn: 262084
* [libFuzzer] get rid of UserSuppliedFuzzer; NFCKostya Serebryany2016-02-131-0/+1
| | | | llvm-svn: 260798
* [libFuzzer] remove UserSuppliedFuzzer from the interface (it was a bad idea).Kostya Serebryany2016-02-131-2/+0
| | | | llvm-svn: 260796
* [libFuzzer] provide a plain C interface for custom mutators (experimental)Kostya Serebryany2016-02-131-0/+4
| | | | llvm-svn: 260794
* [libFuzzer] make -runs=N flag also affect the simple runner (will execute ↵Kostya Serebryany2016-02-121-1/+7
| | | | | | every input N times) llvm-svn: 260649
* [libFuzzer] hot fix a testKostya Serebryany2016-02-041-1/+1
| | | | llvm-svn: 259732
* [libFuzzer] don't write the test unit when a leak is detected (since we ↵Kostya Serebryany2016-02-041-0/+3
| | | | | | don't know which unit causes the leak) llvm-svn: 259731
* [libFuzzer] allow passing 1 or more files as individual inputsKostya Serebryany2016-02-021-0/+12
| | | | llvm-svn: 259459
* [libFuzzer] fail if the corpus dir does not existKostya Serebryany2016-02-021-0/+3
| | | | llvm-svn: 259454
* [libFuzzer] use std::mt19937 for generating random numbers by default. Fix ↵Kostya Serebryany2016-01-191-0/+3
| | | | | | MyStoll to handle negative values. Use std::any_of instead of std::find_if llvm-svn: 258178
* [libFuzzer] introduce LLVMFuzzerInitializeKostya Serebryany2016-01-161-0/+2
| | | | llvm-svn: 257980
OpenPOWER on IntegriCloud