llvm-project/compiler-rt/test/fuzzer
Jonathan Metzman 6167c4ee74 [libfuzzer] Use cl driver mode for tests and enable another test on Windows
Summary:
When targeting MSVC: compile using clang's cl driver mode (this is needed for
libfuzzer's exit_on_src_pos feature). Don't use -lstdc++ when linking,
it isn't needed and causes a warning.
On Windows: Fix exit_on_src_pos.test by making sure debug info isn't
overwritten during compilation of second binary by using .exe extension.

Reviewers: morehouse

Reviewed By: morehouse

Subscribers: aprantl, JDevlieghere

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

llvm-svn: 341622
2018-09-07 01:11:31 +00:00
..
unit
AFLDriverTest.cpp
AbsNegAndConstant64Test.cpp [libFuzzer] Avoid optimization of "abs(x) < 0" 2018-05-25 18:27:12 +00:00
AbsNegAndConstantTest.cpp [libFuzzer] Avoid optimization of "abs(x) < 0" 2018-05-25 18:27:12 +00:00
AccumulateAllocationsTest.cpp
AcquireCrashStateTest.cpp [libFuzzer] Report at most one crash per input. 2018-05-01 21:01:53 +00:00
BadStrcmpTest.cpp
Bingo.h [libFuzzer] Guard symbolization with try-lock. 2018-05-08 23:45:05 +00:00
BogusInitializeTest.cpp
BufferOverflowOnInput.cpp
CMakeLists.txt [cmake][libFuzzer] fixup r337193 to ensure msan/dfsan are not added 2018-07-16 19:41:49 +00:00
CallerCalleeTest.cpp
CleanseTest.cpp [NFC] fix trivial typos in comments 2018-01-22 07:51:37 +00:00
CounterTest.cpp
CustomCrossOverAndMutateTest.cpp
CustomCrossOverTest.cpp [libFuzzer] simplify CustomCrossOverTest even more 2017-09-07 05:33:05 +00:00
CustomMutatorTest.cpp
CxxStringEqTest.cpp
DSO1.cpp
DSO2.cpp
DSOTestExtra.cpp
DSOTestMain.cpp
DeepRecursionTest.cpp
DivTest.cpp
EmptyTest.cpp
EquivalenceATest.cpp
EquivalenceBTest.cpp
ExplodeDFSanLabelsTest.cpp [libFuzzer] add a stress test for the DataFlow tracer 2018-05-23 20:23:33 +00:00
FlagsTest.cpp [libFuzzer] tweam use_feature_frequency to be less aggressive; run a dummy input before the seed corpus 2017-10-13 01:12:23 +00:00
FourIndependentBranchesTest.cpp
FullCoverageSetTest.cpp
GcSectionsTest.cpp [libFuzzer] add linux-specific test for gc-sections 2017-09-15 23:07:18 +00:00
ImplicitIntegerTruncationTest.cpp [compiler-rt][ubsan] Implicit Conversion Sanitizer - integer truncation - compiler-rt part 2018-07-30 18:58:30 +00:00
InitializeTest.cpp [libfuzzer] Replace memmem with strstr. 2018-09-05 21:03:43 +00:00
LargeTest.cpp
LeakTest.cpp [libFuzzer] Place volatile after pointer types. 2018-03-27 16:40:20 +00:00
LeakTimeoutTest.cpp
LoadTest.cpp
Memcmp64BytesTest.cpp
MemcmpTest.cpp
MultipleConstraintsOnSmallInputTest.cpp [libFuzzer] rename a test from .c to .cpp 2018-05-16 23:38:53 +00:00
NotinstrumentedTest.cpp
NthRunCrashTest.cpp
NullDerefOnEmptyTest.cpp
NullDerefTest.cpp [libFuzzer] simplify a test, hopefully to fix the bot 2018-06-07 01:18:43 +00:00
OneHugeAllocTest.cpp
OnlySomeBytesTest.cpp [libFuzzer] when -print_coverage=1 is given, print more stats (the number of seeds that hit every given function) 2018-07-19 22:00:48 +00:00
OutOfMemorySingleLargeMallocTest.cpp
OutOfMemoryTest.cpp
OverwriteInputTest.cpp
PrintFuncTest.cpp [libFuzzer] add -print_funcs=1 (on bey default): print newly discovered functions during fuzzing 2017-08-25 20:09:25 +00:00
PrintUnstableStatsTest.cpp [libFuzzer] Add unstable function printing to print_unstable_stats flag 2018-08-06 23:14:13 +00:00
RepeatedBytesTest.cpp
RepeatedMemcmp.cpp
ShrinkControlFlowSimpleTest.cpp
ShrinkControlFlowTest.cpp
ShrinkValueProfileTest.cpp [libFuzzer] add one more value profile metric, under a flag (experimental) 2018-07-03 22:33:09 +00:00
SignedIntOverflowTest.cpp
SimpleCmpTest.cpp [libFuzzer] Use OptForFuzzing attribute with -fsanitize=fuzzer. 2018-03-23 23:35:28 +00:00
SimpleDictionaryTest.cpp
SimpleHashTest.cpp
SimpleTest.cpp
SimpleTestStdio.cpp [libFuzzer] Avoid STL in MSan test. 2018-07-16 23:22:54 +00:00
SimpleThreadedTest.cpp
SingleByteInputTest.cpp
SingleMemcmpTest.cpp
SingleStrcmpTest.cpp
SingleStrncmpTest.cpp
SleepOneSecondTest.cpp [libFuzzer] handle SIGUSR1/SIGUSR2 and try to exit grafully on these signals 2017-11-09 20:30:19 +00:00
SpamyTest.cpp
StrcmpTest.cpp
StrncmpOOBTest.cpp
StrncmpTest.cpp
StrstrTest.cpp
SwapCmpTest.cpp [libFuzzer] Use OptForFuzzing attribute with -fsanitize=fuzzer. 2018-03-23 23:35:28 +00:00
Switch2Test.cpp
SwitchTest.cpp
SymbolizeDeadlock.cpp Enable symbolize-deadlock.test on Windows 2018-09-05 14:43:38 +00:00
TableLookupTest.cpp
ThreadedLeakTest.cpp [libFuzzer] Place volatile after pointer types. 2018-03-27 16:40:20 +00:00
ThreadedTest.cpp
ThreeBytes.cpp [libFuzzer] add a tiny and surprisingly hard puzzle 2018-07-03 21:17:55 +00:00
ThreeFunctionsTest.cpp [libFuzzer] initial implementation of -data_flow_trace. It parses the data flow trace and prints the summary, but doesn't use the information in any other way yet 2018-06-06 01:23:29 +00:00
TimeoutEmptyTest.cpp
TimeoutTest.cpp
TraceMallocTest.cpp
TraceMallocThreadedTest.cpp [libFuzzer] Place volatile after pointer types. 2018-03-27 16:40:20 +00:00
TwoDifferentBugsTest.cpp
UninitializedStrlen.cpp [libFuzzer] Make -fsanitize=memory,fuzzer work. 2018-07-09 23:51:08 +00:00
UseAfterDtor.cpp [libFuzzer] Make -fsanitize=memory,fuzzer work. 2018-07-09 23:51:08 +00:00
acquire-crash-state.test [libFuzzer] [NFC] Remaining minor fixes to support testing on devices. 2018-06-14 22:13:36 +00:00
afl-driver-extra-stats.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
afl-driver-stderr.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
afl-driver.test Revert "[Fuzzer] Afl driver changing iterations handling" 2018-07-10 19:58:42 +00:00
bad-strcmp.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
bogus-initialize.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
buffer-overflow-on-input.test [libFuzzer] [NFC] Split fuzzer.test into smaller tests 2018-05-11 21:29:53 +00:00
caller-callee.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
cleanse.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
counters.test [libFuzzer] Disable hanging tests on AArch64 2018-07-06 17:06:01 +00:00
coverage.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
cxxstring.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
dataflow.test [libFuzzer] Disable dataflow.test on AArch64. 2018-07-10 20:45:36 +00:00
deep-recursion.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
dict1.txt
disable-leaks.test [libFuzzer] Disable hanging tests on AArch64 2018-07-06 17:06:01 +00:00
dso.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
dump_coverage.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
equivalence-signals.test [libFuzzer] deprecate equivalence_server 2018-05-15 01:15:47 +00:00
equivalence.test [libFuzzer] deprecate equivalence_server 2018-05-15 01:15:47 +00:00
exit-report.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
exit_on_src_pos.test [libfuzzer] Use cl driver mode for tests and enable another test on Windows 2018-09-07 01:11:31 +00:00
extra-counters.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
full-coverage-set.test [libFuzzer] [NFC] Split fuzzer.test into smaller tests 2018-05-11 21:29:53 +00:00
fuzzer-customcrossover.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
fuzzer-customcrossoverandmutate.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-custommutator.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
fuzzer-dict.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-dirs.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-fdmask.test [libFuzzer] [NFC] Generalize fdmask test. 2018-05-24 23:55:54 +00:00
fuzzer-finalstats.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-flags.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
fuzzer-implicit-integer-truncation.test [NFC] Some small test updates for Implicit Conversion sanitizer. 2018-08-17 07:33:38 +00:00
fuzzer-leak.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-oom-with-profile.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-oom.test [libfuzzer] Fix fuzzer-oom.test on windows and reenable it. 2018-09-06 16:48:18 +00:00
fuzzer-printcovpcs.test [libFuzzer] Mark several tests UNSUPPORTED for aarch64. 2018-06-26 18:37:09 +00:00
fuzzer-runs.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-seed.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-segv.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-singleinputs.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-threaded.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-timeout.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
fuzzer-ubsan.test [libFuzzer] [NFC] Remaining minor fixes to support testing on devices. 2018-06-14 22:13:36 +00:00
gc-sections.test [SanitizerCoverage] Add associated metadata to PC guards. 2018-08-14 22:04:34 +00:00
handle-unstable.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
hi.txt
initialize.test [libfuzzer] Replace memmem with strstr. 2018-09-05 21:03:43 +00:00
lit.cfg [libfuzzer] Use cl driver mode for tests and enable another test on Windows 2018-09-07 01:11:31 +00:00
lit.site.cfg.in [libFuzzer] Use separate test directory for each config 2018-07-20 02:39:01 +00:00
max-number-of-runs.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
memcmp.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
memcmp64.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
merge-control-file.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
merge-posix.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
merge-sigusr.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
merge-summary.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
merge.test [libFuzzer] XFAIL a few libFuzzer tests on iOS. 2018-05-24 23:55:52 +00:00
minimize_crash.test [libfuzzer] Temporarily disable unittests failing on Windows. 2018-09-06 02:54:47 +00:00
minimize_two_crashes.test [libfuzzer] Correct typo in comment (test commit). 2018-09-06 17:50:01 +00:00
msan.test [libFuzzer] Avoid STL in MSan test. 2018-07-16 23:22:54 +00:00
not-instrumented.test [libFuzzer] [NFC] Split fuzzer.test into smaller tests 2018-05-11 21:29:53 +00:00
null-deref-on-empty.test [libfuzzer] Temporarily disable unittests failing on Windows. 2018-09-06 02:54:47 +00:00
null-deref.test [libfuzzer] Temporarily disable unittests failing on Windows. 2018-09-06 02:54:47 +00:00
only-some-bytes.test [libFuzzer] use absolute distance in addition to the hamming distance in value profiling; our A/B testing have (somewhat weak) indication that this provides an additional signal for corpus expansion 2018-08-02 00:24:49 +00:00
overwrite-input.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
print-func.test [libFuzzer] Mark several tests UNSUPPORTED for aarch64. 2018-06-26 18:37:09 +00:00
print_unstable_stats.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
recommended-dictionary.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
reduce_inputs.test [libFuzzer] [Tests] [NFC] Change seed for reduce_inputs.test 2018-06-28 00:39:50 +00:00
repeated-bytes.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
shrink.test [libFuzzer] Increase the iteration limit in shrink.test 2018-08-09 00:41:22 +00:00
sigusr.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
simple-cmp.test [libFuzzer] [NFC] Split fuzzer.test into smaller tests 2018-05-11 21:29:53 +00:00
simple.test [libFuzzer] [NFC] Split fuzzer.test into smaller tests 2018-05-11 21:29:53 +00:00
standalone.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
strcmp.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
strncmp-oob.test [libFuzzer] [NFC] Split fuzzer.test into smaller tests 2018-05-11 21:29:53 +00:00
strncmp.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
strstr.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
swap-cmp.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
symbolize-deadlock.test Enable symbolize-deadlock.test on Windows 2018-09-05 14:43:38 +00:00
target-function.test [libFuzzer] Mark several tests UNSUPPORTED for aarch64. 2018-06-26 18:37:09 +00:00
three-bytes.test libFuzzer: prevent irrelevant strings from leaking into auto-dictionary 2018-07-17 16:12:00 +00:00
trace-malloc-2.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
trace-malloc-threaded.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
trace-malloc-unbalanced.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
trace-malloc.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
trace-pc.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
ulimit.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
value-profile-cmp.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
value-profile-cmp2.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
value-profile-cmp3.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
value-profile-cmp4.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
value-profile-div.test [libFuzzer] Mark several tests UNSUPPORTED for aarch64. 2018-06-26 18:37:09 +00:00
value-profile-load.test [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
value-profile-mem.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
value-profile-set.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
value-profile-strcmp.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
value-profile-strncmp.test [libFuzzer] [NFC] Prefix all run lines with %run 2018-05-11 21:29:51 +00:00
value-profile-switch.test [libFuzzer] [NFC] XFAIL one of the tests on iOS. 2018-06-14 22:18:18 +00:00