[PATCH] D13359: [LibFuzzer] test_input option to run a single test case.

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 12:39:16 PDT 2015


kcc added a comment.

Also, please add a test to test/fuzzer.test, e.g. using LLVMFuzzer-SimpleTest


================
Comment at: lib/Fuzzer/FuzzerDriver.cpp:284
@@ -277,1 +283,3 @@
 
+  if (Flags.test_input) {
+    return RunOneTest(&F, Flags.test_input);
----------------
this code does not use {} in such cases. 

================
Comment at: lib/Fuzzer/FuzzerFlags.def:69
@@ -68,1 +68,2 @@
                                "trace-based-mutations (tbm)")
+FUZZER_FLAG_STRING(test_input, "Use specified file as test input.")
----------------
I would call it "test_single_input".
Description: 
  Use specified file as a single test input end exit


http://reviews.llvm.org/D13359





More information about the llvm-commits mailing list